Skip to content
Memory corruption Advisory Advanced CVE-2020-6100

AMD Radeon DirectX 11 Driver atidxx64.dll Shader Functionality MOV REG Code Execution Vulnerability

A malformed pixel shader can cause an out-of-bounds write in the AMD graphics driver because an output register is used outside its declared range. An attacker could control the write address via shader bytecode, potentially leading to code execution, including guest-to-host escape in virtualised environments.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.5 View original

An exploitable memory corruption vulnerability exists in AMD atidxx64.dll graphics driver. A specially crafted pixel shader can cause memory corruption vulnerability.

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

Likely the driver does not validate that output register operands in shader bytecode stay within the range declared by the shader, allowing an out-of-bounds write.

Impact

An attacker could achieve code execution in the driver's context, and the text notes this potentially could be triggered from guest machines to perform guest-to-host escape, or theoretically from a web browser using WebGL and WebAssembly.

What the attacker needed

Ability to supply a crafted shader; AMD graphics driver installed; for guest escape: virtualised guest with GPU passthrough

How it was found

  1. Craft a pixel shader that uses an output register outside the declared range in a mov instruction.
  2. Supply the malformed shader to the AMD driver, for example through Direct3D or a virtualised environment.
  3. The driver processes the shader and performs an out-of-bounds write, causing a crash or 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 small programs called shaders that tell the GPU how to draw pixels. This driver failed to check that a shader only wrote to the output slots it had declared, so a crafted shader could make it write to an arbitrary memory address. That kind of memory corruption can let an attacker run their own code, and in a virtual machine it might even break out onto the host.

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.