Skip to content
Memory corruption Advisory Advanced

NVIDIA D3D10 Driver nvwgf2umx_cfg.dll nvwg DCL_CONSTANT_BUFFER code execution vulnerability

A malformed pixel shader can cause an out-of-bounds write in the NVIDIA D3D10 driver, allowing an attacker to control the memory write address and potentially achieve code execution. This could enable a guest-to-host escape when the driver is used by Hyper-V RemoteFX.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.5 View original

An exploitable code execution vulnerability exists in the nvwg DCLCONSTANTBUFFER functionality of NVIDIA D3D10 Driver Version 442.50 - 26.21.14.4250. A specially crafted shader can cause remote code execution.

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

An attacker could achieve remote code execution and potentially escape from a guest virtual machine to the host through Hyper-V RemoteFX.

What the attacker needed

Ability to supply a shader to the driver; Hyper-V RemoteFX environment for guest-to-host escape

How it was found

  1. Craft a pixel shader that declares a constant buffer with an index exceeding the maximum allowed.
  2. Supply the malformed shader to the NVIDIA D3D10 driver (for example, through Hyper-V RemoteFX).
  3. The driver processes the shader 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.

A pixel shader is a small program that runs on the graphics card to decide the colour of each pixel. The NVIDIA driver that processes these shaders has a bug: if a shader declares too many constant buffers (a kind of memory area), the driver writes data outside the intended memory. An attacker who can supply a shader (for example, from a virtual machine using RemoteFX) could use this to run their own code on the host 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.