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

NVIDIA nvwgf2umx_cfg.dll shader DCL_INDEXABLE memory corruption vulnerability

A memory corruption vulnerability exists in the shader dcl_indexable functionality of the NVIDIA D3D10 driver. A specially crafted shader can cause an out-of-bounds write, potentially leading to arbitrary memory write and guest-to-host escape in virtualised environments.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.5 View original

A memory corruption vulnerability exists in the shader dclindexable 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

Impact

This could allow an attacker to cause memory corruption and potentially perform a guest-to-host escape in virtualised environments, or theoretically trigger the vulnerability from a web browser using WebGL and WebAssembly.

What the attacker needed

NVIDIA D3D10 driver version 496.76; Ability to supply a malformed shader

The fix

The vendor released a patch on 2022-05-16.

How it was found

  1. Craft a malformed compute shader that uses dcl_indexable_temp and accesses the temporary register outside its defined size.
  2. Supply the shader to the NVIDIA D3D10 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 process shaders, which are small programs that tell the GPU how to draw things. A bug in how the driver handles a particular shader instruction lets a malicious shader write to memory it should not touch, which can crash the driver or let an attacker run code. This is especially dangerous in virtual machines because it could let a guest break out onto 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.