Skip to content
Memory corruption Advisory Advanced

NVIDIA NVWGF2UMX_CFG.DLL shader functionality code execution vulnerability

A malformed pixel shader can reference an undeclared texture register, causing the NVIDIA D3D driver to dereference an untrusted pointer and write to an arbitrary address. An attacker supplying such a shader from a VMware guest could corrupt memory in the host's vmware-vmx.exe process, potentially leading to code execution.

Piotr Bania Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

An exploitable untrusted pointer dereference vulnerability exists in NVIDIA NVWGF2UMXCFG driver, versions 24.21.14.1216 and 412.16. A specially crafted pixel shader can cause an untrusted pointer dereference, potentially resulting in 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

Root cause

Likely the driver fails to validate that a SAMPLE instruction's texture register operand refers to a resource that was actually declared, so an out-of-range register index is used as a pointer.

Impact

A crafted shader could cause memory corruption in the host's vmware-vmx.exe process, potentially resulting in code execution; the report also suggests this could theoretically be reached through WebGL from a remote website.

What the attacker needed

Ability to run code in a VMware guest; crafted pixel shader bytecode

How it was found

  1. Create a pixel shader that declares a resource at one register number.
  2. Modify the shader bytecode so a SAMPLE instruction references a different, undeclared resource register.
  3. Supply the malformed shader from inside the VMware guest.
  4. Observe the untrusted pointer dereference and crash in the host's vmware-vmx.exe process.

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 shader is a small program that tells the graphics card how to draw pixels. The driver that runs these programs did not check that a shader only uses texture slots it had declared, so a crafted shader could make the driver write to a memory address it should never touch. That memory corruption happens in the virtual machine's host process, not just inside the guest.

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.