AMD Radeon DirectX 11 Driver atidxx64.dll Shader Functionality arbitrary write vulnerability
A specially crafted shader file can cause an out-of-bounds write in the AMD Radeon DirectX 11 driver, leading to memory corruption. An attacker could exploit this to potentially execute code or cause a denial of service.
Originally disclosed on Cisco Talos
An arbitrary write vulnerability exists in the Shader Functionality of AMD Radeon DirectX 11 Driver atidxx64.dll 31.0.21018.6011. A specially crafted executable/shader file can lead to an out-of-bounds 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 a 32-bit truncation of a size value computed from shader bytecode, leading to a heap buffer overflow during allocation and memset.
Impact
This could allow an attacker to execute arbitrary code with the privileges of the driver, potentially leading to guest-to-host escape in virtualized environments or code execution from a web browser using WebGL and WebAssembly.
What the attacker needed
Ability to supply a malformed shader; local access or guest VM access; vulnerable AMD driver installed
The fix
The vendor has released a patch; users should update to the latest driver version.
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 AMD driver that handles shaders has a bug: if you give it a specially made shader, it writes data past the end of a memory buffer, which can crash the program or 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.