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

Nvidia D3D10 Driver Pixel Shader Heap Memory Corruption Vulnerability

A heap buffer overflow in the NVIDIA D3D10 driver occurs when a specially crafted pixel shader causes an index to exceed the allocated heap buffer, leading to memory corruption. An attacker could trigger this to cause at least a denial of service, and potentially achieve code execution.

Piotr Bania Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

An exploitable heap memory corruption vulnerability exists in the NVIDIA D3D10 Driver 22.21.13.8607. A specially crafted pixel shader can cause heap memory corruption, resulting in at least denial of service, and potential code execution.

Piotr Bania, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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 the driver fails to validate that the index used to calculate a heap write address stays within the bounds of the allocated buffer.

Impact

The vulnerability could cause at least a denial of service, and potentially code execution, with the possibility of a guest-to-host escape in VMware.

What the attacker needed

Ability to supply a crafted shader; local access or VMware guest access; browser must not use ANGLE (for WebGL vector)

How it was found

  1. Craft a malformed pixel shader (text or binary) that causes the driver to call the vulnerable function repeatedly.
  2. Supply the shader to the NVIDIA driver via a D3D10 application or a VMware guest.
  3. The driver increments an index and writes to a calculated heap address, eventually overflowing the buffer.
  4. Observe heap corruption and a crash (e.g., HEAP_FAILURE_BUFFER_OVERRUN).

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 pixel shader is a small program that runs on your graphics card to colour pixels. The NVIDIA driver that handles these shaders has a bug: if you give it a specially made shader, it writes past the end of a memory buffer, which can crash the program or let an attacker run their own code.

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 Piotr Bania

View all

94 more disclosed reports, best first.

More from Cisco Talos

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.