Skip to content
Memory corruption Advisory Advanced CVE-2022-34671

NVIDIA D3D10 Driver Shader Functionality undeclared dcl_output memory corruption vulnerability

A memory corruption vulnerability exists in the NVIDIA D3D10 driver's shader handling. A specially crafted shader file that references an undeclared output register can cause an out-of-bounds write, potentially leading to code execution on the host from a guest virtual machine or from a web browser.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.5 View original

A memory corruption vulnerability exists in the Shader functionality of NVIDIA D3D10 Driver NVIDIA D3D10 Driver, Version 528.24, 31.0.15.2824. A specially crafted executable/shader file referencing an undeclared dcloutput can lead to memory corruption.

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 a shader's output register index is within the declared bounds before using it to compute a write address.

Impact

This could allow an attacker to execute code on the host from a guest virtual machine (e.g., via RemoteFX) or potentially from a web browser using WebGL and WebAssembly, though the CVSS vector indicates high attack complexity.

What the attacker needed

Ability to supply a crafted shader; vulnerable NVIDIA driver version; for guest-to-host: virtualization with GPU passthrough

The fix

The vendor released a patch; the driver should validate that output register indices are within declared bounds before computing write addresses.

How it was found

  1. Craft a shader that declares some outputs but then writes to an undeclared output register.
  2. Supply the malformed shader to the NVIDIA D3D10 driver.
  3. The driver computes a destination address from the shader-provided index and performs an out-of-bounds write, causing memory corruption.

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.

Graphics drivers process shader programs that tell the GPU how to draw things. This report found that if a shader uses a register (a small storage slot) without first declaring it, the driver writes data outside the intended memory area. An attacker could use this to crash the system or possibly run their own code, especially from inside a virtual machine.

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.