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

NVIDIA nvwgf2umx_cfg.dll shader DCL_RESOURCE_STRUCTURED memory corruption vulnerability

A memory corruption vulnerability exists in the NVIDIA D3D10 driver's handling of the DCL_RESOURCE_STRUCTURED shader opcode. A malformed compute shader can cause an out-of-bounds write, potentially allowing an attacker to execute code on the host from a guest virtual machine or via a web browser.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.5 View original

A memory corruption vulnerability exists in the shader DCLRESOURCESTRUCTURED functionality of NVIDIA D3D10 Driver, version 496.76, 30.0.14.9676. A specially-crafted executable/shader file can lead to an out-of-bounds write.

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

Impact

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

What the attacker needed

Ability to supply a malformed shader; NVIDIA driver version 496.76

The fix

The vulnerability was fixed in a vendor patch release.

How it was found

  1. Craft a malformed compute shader with a modified dcl_resource_structured opcode operand.
  2. Supply the shader to the NVIDIA driver, for example via a Direct3D application or from a guest VM using RemoteFX.
  3. The driver processes the shader and performs an out-of-bounds write, causing a crash or potential code execution.

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 instructions called shaders to draw images. A specially crafted shader can make the driver write data to a memory location it should not, which is called an out-of-bounds write. This could let an attacker run their own code on the computer, possibly escaping from a virtual machine to the host.

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.