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.
Originally disclosed on Cisco Talos
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.
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
- Craft a malformed pixel shader (text or binary) that causes the driver to call the vulnerable function repeatedly.
- Supply the shader to the NVIDIA driver via a D3D10 application or a VMware guest.
- The driver increments an index and writes to a calculated heap address, eventually overflowing the buffer.
- 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.