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

NVIDIA D3D10 Driver Shader Functionality out-of-bounds read vulnerability

An out-of-bounds read vulnerability exists in the Shader functionality of the NVIDIA D3D10 driver. A specially crafted shader file can cause the driver to read arbitrary memory, potentially leaking data from the host to a guest or from a browser to the attacker.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 7.8 View original

An out-of-bounds read vulnerability exists in the Shader functionality of NVIDIA D3D10 Driver, Version 546.01, 31.0.15.4601. 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 fails to validate that the output register number in the shader bytecode is within the declared range, allowing an attacker-controlled value to be used in address calculation for a memory read.

Impact

An attacker could potentially leak sensitive memory data, such as host memory from a guest VM or browser process memory, and this could lead to further exploitation.

What the attacker needed

Ability to supply a shader to the driver; victim runs a crafted executable or visits a malicious page

The fix

The vulnerability was fixed by the vendor in a patch release.

How it was found

  1. Create a malformed shader that declares an output register number exceeding the allowed range.
  2. Supply the shader to the NVIDIA D3D10 driver (e.g., via a crafted executable or from a guest VM).
  3. The driver processes the shader and performs an out-of-bounds read, potentially leaking memory.

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 to draw images. The driver that loads shaders did not check that a register number in the shader was within the allowed range, so a malicious shader could make the driver read memory outside the intended area. This could let an attacker see data that should be private, such as memory from another virtual machine or from the browser process.

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.