NVIDIA D3D10 Driver Shader Functionality DCL_INDEXRANGE instruction memory corruption vulnerability
A memory corruption vulnerability exists in the NVIDIA D3D10 driver's handling of the DCL_INDEXRANGE shader instruction. A specially crafted compute shader can cause 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 DCLINDEXRANGE instruction 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
The driver fails to validate the maximum index value in the DCL_INDEXRANGE instruction, using an attacker-controlled 32-bit value directly as the repeat count for a memory write operation.
Impact
An attacker could achieve arbitrary code execution, potentially escaping from a guest virtual machine to the host or triggering the vulnerability from a web browser using WebGL and WebAssembly.
What the attacker needed
Ability to supply a crafted shader; NVIDIA D3D10 driver version 516.94 or 31.0.15.1694
The fix
The vulnerability was fixed by the vendor in a patch release.
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.
Graphics drivers translate instructions from programs (shaders) into commands for the GPU. A shader can declare a range of registers to use, but if the declared range is too large, the driver writes past the intended memory buffer. This can crash the system 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.