Skip to content
Memory corruption Advisory Advanced CVE-2017-0296

Windows TDX Elevation of Privilege Vulnerability (CVE-2017-0296)

The Windows TDX driver (tdx.sys) failed to check a buffer's length before copying memory into it, so a local attacker running a crafted application could elevate their privileges. Successful exploitation would let the attacker run processes in an elevated context.

pgboy Follow

Originally disclosed on Microsoft

High 7.0 View original

Description

An elevation of privilege vulnerability exists when tdx.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 tdx.sys validates buffer length.

Microsoft Windows

Microsoft Windows

The original report as published on the Microsoft Security Response Center, by pgboy and zhong_sf of Qihoo 360 Vulcan Team working with Trend Micro’s Zero Day Initiative (ZDI). 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 bounds check on the destination buffer length before a memory copy in tdx.sys.

Impact

An attacker who could already run code locally could elevate their privileges and run processes in an elevated context.

What the attacker needed

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

The fix

The security update was fixed by changing how tdx.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 is a low-level program that runs with high trust inside the operating system. This driver copied data into a memory area without first checking that the area was big enough, so a malicious program could overwrite nearby memory and gain higher permissions. 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 pgboy

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.