NVIDIA D3D10 driver nvwgf2umx_cfg.dll nvwg MUL code execution vulnerability
A malformed compute shader with a negative register number in a MUL instruction causes an out-of-bounds write in the NVIDIA D3D10 driver. An attacker could use this to achieve guest-to-host escape through Hyper-V RemoteFX.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in the nvwg MUL functionality of NVIDIA D3D10 Driver Version 442.50 - 26.21.14.4250. A specially crafted shader can cause remote code execution.
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 register index in a MUL instruction, allowing a negative value that leads to an out-of-bounds write.
Impact
An attacker could achieve remote code execution and guest-to-host escape through Hyper-V RemoteFX.
What the attacker needed
Ability to supply a shader to the driver; Hyper-V RemoteFX environment
How it was found
- Craft a compute shader with a MUL instruction using a negative register number.
- Supply the malformed shader to the NVIDIA D3D10 driver.
- The driver 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 shader is a small program that runs on the graphics card. The driver that runs it did not check that a register number was valid, so a negative number caused it to write to memory it should not touch. This could let an attacker break out of a virtual machine and run code on 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.