AMD ATI Radeon ATIDXX64.DLL shader functionality remote code execution vulnerability
A malformed pixel shader supplied to the AMD ATIDXX64.DLL driver causes an out-of-bounds memory write because the driver fails to properly bounds-check a shader-controlled value used in address calculation. An attacker can trigger this from a VMware guest to corrupt memory in the host's vmware-vmx.exe process, potentially leading to code execution.
Originally disclosed on Cisco Talos
An exploitable memory corruption vulnerability exists in AMD ATIDXX64.DLL driver, versions 25.20.15031.5004 and 25.20.15031.9002. 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 a shader-supplied constant buffer index before using it to calculate a write address, leading to an out-of-bounds write.
Impact
An attacker could cause memory corruption in the host's vmware-vmx.exe process, potentially leading to code execution, and the vulnerability may also be reachable through WebGL from a remote website.
What the attacker needed
Ability to supply a shader to the driver; VMware guest with AMD driver; or WebGL in a browser
The fix
The vendor patched the vulnerability.
How it was found
- Craft a pixel shader with a modified constant buffer reference in a MUL instruction.
- Supply the malformed shader to the AMD driver from within a VMware guest.
- The driver processes the shader and 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 pixel shader is a small program that runs on your graphics card to decide the colour of each pixel. The AMD graphics driver processes these shaders, and if a shader contains a specially crafted value, the driver writes to memory outside the intended area. This can crash the program or let an attacker run their own code, and because the driver runs on the host, an attack from inside a virtual machine can affect the host computer.
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.