NVIDIA D3D10 Driver Shader Functionality MOV instruction out-of-bounds read vulnerability
The NVIDIA D3D10 driver computes a memory address from attacker-controlled shader bytecode when handling the MOV instruction, so a crafted shader file causes an out-of-bounds read. An attacker could use this to read arbitrary memory regions, and the report notes it was triggered from a Hyper-V guest via RemoteFX to run the vulnerable code on the host.
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 uses a value taken directly from the shader bytecode as an index into a memory table without validating it, so a corrupted MOV instruction produces an out-of-bounds read.
Impact
The driver could read arbitrary memory regions, and the report says the bug could potentially be triggered from a guest virtual machine to perform a guest-to-host escape, or theoretically from a web browser using WebGL and WebAssembly.
What the attacker needed
Crafted shader file; ability to run code or a guest VM
The fix
The vendor released a patch, as shown in the timeline.
How it was found
- Modify and corrupt the shader bytecode corresponding to the MOV instruction.
- Run the crafted shader through the NVIDIA D3D10 driver.
- Observe the out-of-bounds read and access violation in the 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 takes small programs called shaders and runs them to draw things on screen. Here the driver trusted a number inside the shader when working out where to read memory, so a tampered shader made it read outside the intended area. That can crash the driver or leak memory contents, and in a virtual machine setup it could affect the machine hosting the guest.
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.