NVIDIA D3D10 Driver Shader Functionality STORE_STRUCTURED instruction out-of-bounds read vulnerability
An out-of-bounds read vulnerability exists in the NVIDIA D3D10 driver's handling of the STORE_STRUCTURED shader instruction. A specially crafted shader file can cause the driver to read from an arbitrary memory address, potentially leading to a guest-to-host escape or code execution.
Originally disclosed on Cisco Talos
An out-of-bounds read vulnerability exists in the Shader Functionality functionality of NVIDIA D3D10 Driver 555.99, 32.0.15.5599. A specially crafted executable / shader file can lead to an out-of-bounds read.
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 does not validate that the memory address computed from the shader bytecode for the STORE_STRUCTURED instruction falls within the allocated buffer, leading to an out-of-bounds read.
Impact
An attacker could potentially achieve guest-to-host escape from a virtual machine or execute arbitrary code, though this may be limited to certain environments such as older Hyper-V with RemoteFX.
What the attacker needed
Ability to supply a crafted shader file; target runs vulnerable NVIDIA driver
The fix
The vulnerability was fixed in a vendor patch release.
How it was found
- Modify and corrupt the shader bytecode corresponding to the STORE_STRUCTURED instruction.
- Run the specially crafted shader file to trigger the out-of-bounds read.
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 processes instructions from shader programs, which are small programs that run on the GPU. The driver failed to check that a memory address calculated from a shader instruction was within valid bounds, so a malicious shader could make it read from any memory location. This could let an attacker break out of a virtual machine or run harmful 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.