Skip to content
Memory corruption Advisory Advanced CVE-2018-8342

Windows NDIS Elevation of Privilege Vulnerability (CVE-2018-8342)

The NDIS driver fails to check a buffer length before copying memory, so a local attacker who can run a crafted application could elevate privileges. The text does not show a working exploit or confirm that elevation was achieved.

Enrique Nissim - Senior Security Consultant - IOActive, Inc Follow

Originally disclosed on Microsoft

High 7.0 View original

Description

An elevation of privilege vulnerability exists in the Network Driver Interface Specification (NDIS) when ndis.sys fails to check the length of a buffer prior to copying memory to it. To exploit the vulnerability, in a local attack scenario, an attacker could run a specially crafted application to elevate the attacker's privilege level. An attacker who successfully exploited this vulnerability could run processes in an elevated context. However, an attacker must first gain access to the local system with the ability to execute a malicious application in order to exploit this vulnerability. The security update addresses the vulnerability by changing how ndis.sys validates buffer length.

Windows RNDIS

Windows RNDIS

The original report as published on the Microsoft Security Response Center, by Enrique Nissim - Senior Security Consultant - IOActive, Inc. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a missing length validation in ndis.sys before a memory copy, allowing a buffer overflow.

Impact

An attacker who already has local code execution could run processes in an elevated context; the text does not claim this was demonstrated.

What the attacker needed

Local access to the system; ability to run a crafted application

The fix

The security update was said to fix it by changing how ndis.sys validates buffer length.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A driver in Windows copies data into a memory buffer without first checking that the buffer is big enough. If a program can make that copy happen with the wrong size, it may overwrite nearby memory and run code with higher privileges. The attacker must already be able to run a program on the machine.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Enrique Nissim - Senior Security Consultant - IOActive, Inc

View all

1 more disclosed report, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.