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

NVIDIA nvwgf2umx_cfg.dll shader DCL_UNORDERED_ACCESS_VIEW_STRUCTURED memory corruption vulnerability

A memory corruption vulnerability exists in the NVIDIA D3D10 driver when processing a malformed compute shader, specifically the DCL_UNORDERED_ACCESS_VIEW_STRUCTURED opcode. An attacker could trigger this from a guest virtual machine to potentially escape to the host, or theoretically from a web browser using WebGL and WebAssembly.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.5 View original

A memory corruption vulnerability exists in the shader DCLUNORDEREDACCESSVIEWSTRUCTURED functionality of NVIDIA D3D10 Driver version 496.76, 30.0.14.9676. A specially-crafted executable / shader file 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 properly validate the operands of the DCL_UNORDERED_ACCESS_VIEW_STRUCTURED shader opcode, allowing an attacker-controlled value to be used as a destination address in a memory write.

Impact

An attacker could achieve arbitrary memory write with partial control over the destination address, potentially leading to guest-to-host escape in virtualized environments or code execution in the host process; the report notes this was demonstrated in HYPER-V with RemoteFX, and theoretically could be triggered from a web browser.

What the attacker needed

Ability to supply a crafted shader; NVIDIA driver version 496.76

The fix

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

How it was found

  1. Craft a compute shader with a malformed dcl_unordered_access_view_structured instruction.
  2. Supply the shader to the NVIDIA driver, for example from a HYPER-V guest using RemoteFX.
  3. The driver processes the shader and performs an out-of-bounds write, leading to 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 translate instructions from programs into commands the GPU can understand. A specially crafted shader program can cause the driver to write data to an unintended memory location, which can crash the system or allow an attacker to run their own code. This is serious because it could let someone break out of a virtual machine or attack a web browser.

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.