Skip to content
Memory corruption Advisory Advanced CVE-2024-0119

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.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 7.8 View original

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.

Piotr Bania, on Cisco Talos

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

  1. Modify and corrupt the shader bytecode corresponding to the MOV instruction.
  2. Run the crafted shader through the NVIDIA D3D10 driver.
  3. 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.

More by Piotr Bania

View all

94 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.