Skip to content
Memory corruption Advisory Advanced CVE-2024-21972

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.

Piotr Bania Follow

Originally disclosed on Cisco Talos

Medium 5.3 View original

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.

Piotr Bania, on Cisco Talos

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

  1. Create a malformed shader file containing a crafted instruction.
  2. Load the shader through the DirectX 11 API, causing the driver to process it.
  3. The driver reads the attacker-controlled index from the shader bytecode.
  4. 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.

More by Piotr Bania

View all

94 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.