NVIDIA D3D10 Driver Shader Functionality dcl_input index memory corruption vulnerability
A memory corruption vulnerability exists in the NVIDIA D3D10 driver when processing a shader with an out-of-bounds index in a dcl_input declaration. An attacker could supply a specially crafted shader to trigger memory corruption, potentially leading to guest-to-host escape in virtualized environments or code execution on the host.
Originally disclosed on Cisco Talos
A memory corruption vulnerability exists in the Shader Functionality of NVIDIA D3D10 Driver NVIDIA D3D10 Driver, Version 528.24, 31.0.15.2824. A specially crafted executable/shader file containing a dclinput declaration with an out-of-bounds index can lead to memory corruption.
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 index value in a dcl_input declaration, allowing an attacker-controlled index to be used in memory address calculation without bounds checking.
Impact
An attacker could potentially achieve guest-to-host escape in virtualized environments or code execution on the host, and theoretically trigger it from a web browser using WebGL and WebAssembly.
What the attacker needed
Victim runs a crafted shader; vulnerable NVIDIA driver installed
The fix
The vulnerability was fixed by NVIDIA in a driver update released on 2023-06-27.
How it was found
- Craft a shader with a dcl_input declaration containing an out-of-bounds index.
- Supply the shader to the NVIDIA D3D10 driver.
- The driver uses the index to calculate a memory address and performs an out-of-bounds read/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 your graphics card to draw things on screen. The NVIDIA driver that handles shaders has a bug: if a shader asks for an input with a very large or negative index, the driver writes to memory it shouldn't. This could let an attacker run harmful code on your computer, especially if you open a malicious file or visit a malicious website.
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.