NVIDIA D3D10 Driver Shader Functionality dcl_resource_structured index memory corruption vulnerability
A memory corruption vulnerability exists in the NVIDIA D3D10 driver when processing a shader with an out-of-bounds index in a dcl_resource_structured declaration. An attacker could supply a specially crafted shader to trigger memory corruption, potentially leading to guest-to-host escape in virtualisation environments or code execution on the host.
Originally disclosed on Cisco Talos
A memory corruption vulnerability exists in the Shader Functionality of NVIDIA D3D10 Driver NVIDIA D3D10 Driver, Version 528.24, 31.0.15.2824. A specially crafted executable/shader file containing a dclresourcestructured declaration with an out-of-bounds index 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 register index in the dcl_resource_structured shader instruction, allowing an out-of-bounds write.
Impact
This vulnerability potentially could be triggered from guest machines running virtualization environments to perform guest-to-host escape, and theoretically from a web browser using WebGL and WebAssembly.
What the attacker needed
Ability to supply a crafted shader; vulnerable NVIDIA driver version
The fix
NVIDIA released a patch for the issue.
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 resources using a specific instruction, and if it provides an invalid index, the driver writes to memory outside the intended area. This can crash the driver or let an attacker run their own code, especially in virtual machines where it might break out to the host.
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.