NVIDIA NVWGF2UMX_CFG.DLL Shader functionality DCL_INDEXABLETEMP code execution vulnerability
A malformed pixel shader with an out-of-range index in an indexable temporary register causes an out-of-bounds memory write in NVIDIA's NVWGF2UMX_CFG.DLL driver. An attacker can supply such a shader from a VMware guest to corrupt memory in the vmware-vmx.exe process on the host, or theoretically through WebGL from a remote website.
Originally disclosed on Cisco Talos
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 out-of-bounds memory write.
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 the array index in the MOV instruction against the declared size of the indexable temporary register, leading to an incorrect destination address calculation.
Impact
An attacker could cause an out-of-bounds write in the host's vmware-vmx.exe process, potentially leading to code execution on the host; the report also notes a theoretical remote path 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
- Create a pixel shader that declares indexable temporary registers with a small number of elements.
- Modify the shader bytecode so a MOV instruction uses an array index larger than the declared size.
- Supply the malformed shader to the NVIDIA driver from within a VMware guest.
- The driver calculates an incorrect destination address and performs an out-of-bounds write, crashing vmware-vmx.exe 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 tells the graphics card how to colour each pixel. This report shows that if a shader uses an array index larger than the array's declared size, the NVIDIA driver calculates the wrong memory address and writes data outside the intended buffer. That memory corruption happens in the host's VMware process, so a malicious shader running inside a guest virtual machine could potentially affect 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.