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, allowing an attacker to influence a memory write address. This could lead to memory corruption and potentially code execution.
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
The driver uses an array index taken directly from the shader bytecode without validating it, leading to an out-of-bounds write.
Impact
This could allow an attacker to cause memory corruption, potentially leading to code execution or a guest-to-host escape in virtualised environments.
What the attacker needed
Ability to supply a shader file; vulnerable AMD driver installed
The fix
The vendor released a patch; the driver should validate the array index taken from shader bytecode before using it in memory operations.
How it was found
- Create a malformed shader file containing a crafted instruction.
- Load the shader through the DirectX 11 API, causing the driver to process it.
- The driver reads the attacker-controlled index from the shader bytecode.
- The driver uses that index in a memory write, causing an out-of-bounds write and 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 processes instructions called shaders to draw things on screen. The driver failed to check a number taken from the shader file, so a malicious shader could make the driver write to a memory location chosen by the attacker. This memory corruption could crash the system 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.