Skip to content
Memory corruption Advisory Advanced

NVIDIA NVWGF2UMX_CFG.DLL Shader functionality DCL_INDEXABLETEMP code execution vulnerability

A malformed pixel shader with an out-of-bounds index into an indexable temporary register array causes an untrusted pointer dereference in NVIDIA's NVWGF2UMX_CFG.DLL driver. An attacker can supply such a shader from a VMware guest to potentially corrupt memory in the vmware-vmx.exe process on the host, or theoretically via WebGL from a remote website.

Piotr Bania Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

An exploitable memory corruption vulnerability exists in NVIDIA NVWGF2UMXCFG driver, versions 25.21.14.2531 and 425.31. A specially crafted pixel shader can cause an untrusted pointer dereference.

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 the index used in a MOV instruction targeting an indexable temporary register array stays within the declared array bounds, leading to an out-of-bounds pointer dereference.

Impact

The vulnerability could allow memory corruption in the vmware-vmx.exe process on the host, potentially leading to code execution, and may theoretically be triggered remotely through WebGL.

What the attacker needed

Ability to run a shader in a VMware guest; NVIDIA driver version 25.21.14.2531 or 425.31

How it was found

  1. Create a pixel shader that declares an indexable temporary register array with 65 elements.
  2. Modify the shader bytecode so a MOV instruction uses an index larger than 65.
  3. Supply the malformed shader to the NVIDIA driver from within a VMware guest.
  4. Observe the untrusted pointer dereference and crash in the vmware-vmx.exe process on the host.

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. This report shows that a deliberately broken shader can make the graphics driver write to a memory address it should not, which can crash the program or possibly let an attacker run their own code. The attack is interesting because the shader is created inside a virtual machine but the crash happens in the VMware process on the real 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.