NVIDIA D3D10 Driver Shader Functionality LD instruction out-of-bounds read vulnerability
A malformed shader bytecode for the LD instruction causes an out-of-bounds read in the NVIDIA D3D10 driver. An attacker could supply a crafted shader to read arbitrary memory, potentially leading to 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 fails to validate an index from the shader bytecode before using it to compute a memory address for the LD instruction.
Impact
An attacker could read arbitrary memory, potentially leading to guest-to-host escape in virtualisation environments or code execution from a web browser.
What the attacker needed
Ability to supply a crafted shader file; local access or guest VM access
The fix
The vendor released a patch on 2024-10-22.
How it was found
- Modify and corrupt the shader bytecode corresponding to the LD instruction.
- Supply the malformed shader to the NVIDIA driver.
- The driver computes a memory address from the corrupted bytecode and performs an 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 shader is a small program that runs on the graphics card. The driver that loads shaders did not check a value taken from the shader file, so it used that value as an address and read memory outside the intended buffer. This could let an attacker read sensitive data or crash the system.
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.