AMD Radeon DirectX 11 Driver atidxx64.dll Shader Functionality RESOURCE Code Execution Vulnerability
A malformed pixel shader can cause an out-of-bounds write in the AMD Radeon DirectX 11 driver, allowing an attacker to control the destination address and potentially execute code. This can be triggered from a Hyper-V guest using RemoteFX, leading to code execution on the host, and theoretically from a web browser using WebGL and WebAssembly.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in the Shader functionality of AMD Radeon DirectX 11 Driver atidxx64.dll 26.20.15019.19000. An attacker can provide a a specially crafted shader file to trigger this vulnerability, resulting in 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
Impact
An attacker could execute code on the Hyper-V host from a guest using RemoteFX, and theoretically from a web browser using WebGL and WebAssembly.
What the attacker needed
Ability to supply a crafted shader; Hyper-V guest with RemoteFX (for host impact); web browser with WebGL/WebAssembly (theoretical)
How it was found
- Craft a pixel shader with a modified dcl_resource_texture2d operand size.
- Supply the malformed shader to the AMD DirectX 11 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 graphics driver is software that lets programs talk to the graphics card. A pixel shader is a small program that runs on the graphics card to decide the colour of each pixel. Here, a specially crafted shader with a bad resource size makes the driver write data outside the intended memory area, which can let an attacker run their own code.
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.