NVIDIA D3D10 Driver nvwgf2umx_cfg.dll nvwg FTOI code execution vulnerability
A malformed pixel shader can cause an out-of-bounds write in the NVIDIA D3D10 driver, allowing an attacker to execute code. This could enable guest-to-host escape through Hyper-V RemoteFX.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in the nvwg functionality of NVIDIA Corporation NVIDIA D3D10 driver nvwgf2umxcfg.dll, version 442.50 - 26.21.14.4250. A specially crafted shader could allow an adversary to execute remote code.
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 destination register operand of the ftoi instruction, allowing an out-of-bounds write.
Impact
An attacker could execute remote code and potentially achieve guest-to-host escape through Hyper-V RemoteFX.
What the attacker needed
Ability to supply a shader to the driver; Hyper-V with RemoteFX for guest-to-host escape
How it was found
- Craft a pixel shader that includes an ftoi instruction with a destination register operand outside the typical range.
- Supply the malformed shader to the NVIDIA driver (e.g., through Hyper-V RemoteFX).
- The driver executes the shader and performs an out-of-bounds write, leading to 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 calculate colours for each pixel. The NVIDIA driver that processes these shaders has a bug: if a shader uses a special instruction with an unusual register number, the driver writes data to the wrong memory location. An attacker can exploit this to run their own code on the machine, potentially escaping from a virtual machine to 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.