NVIDIA D3D10 Driver Shader Functionality MOV instruction memory corruption vulnerability
A memory corruption vulnerability exists in the NVIDIA D3D10 driver's handling of the MOV instruction in compute shaders, where the driver uses an attacker-controlled index directly as a write address. An attacker could supply a malformed shader to trigger an out-of-bounds write, potentially leading to arbitrary code execution.
Originally disclosed on Cisco Talos
A memory corruption vulnerability exists in the Shader Functionality (MOV instruction index) functionality of NVIDIA D3D10 Driver Version 516.94 and 31.0.15.1694. A specially-crafted executable/shader file can lead to memory corruption.
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 the index value from the shader bytecode before using it as an offset in a memory write operation.
Impact
This vulnerability could allow an attacker to execute arbitrary code, potentially leading to guest-to-host escape in virtualized environments or triggering from a web browser using WebGL and WebAssembly.
What the attacker needed
Ability to supply a crafted shader; Target runs vulnerable NVIDIA driver
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 graphics driver is software that helps the computer talk to the graphics card. In this case, the driver did not check a number coming from a shader program (a small program that runs on the graphics card) before using it to calculate where to write data in memory. This allowed a malicious shader to write to an arbitrary memory location, which could 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.