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

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

A malformed pixel shader using the round_ni instruction with an out-of-range source register causes an out-of-bounds write in the AMD DirectX 11 driver. An attacker could supply such a shader to corrupt memory and potentially execute code, including from a Hyper-V guest via RemoteFX onto the host.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.5 View original

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.

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 fails to validate the source register index of the round_ni shader instruction, so an out-of-range register leads to an out-of-bounds write during a memset.

Impact

An attacker could achieve code execution, and when triggered from a Hyper-V guest using RemoteFX the vulnerable code runs on the Hyper-V host; the text says it could theoretically also be triggered from a web browser using WebGL and WebAssembly.

What the attacker needed

Ability to supply a crafted shader; AMD Radeon DirectX 11 driver installed; for host impact, RemoteFX in a Hyper-V guest

How it was found

  1. Craft a pixel shader that uses the round_ni instruction with an out-of-range source register.
  2. Supply the malformed shader to the AMD DirectX 11 driver so it is compiled.
  3. The driver performs an out-of-bounds write, causing an access violation.

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 the software that lets programs talk to the graphics card. It reads small programs called shaders that describe how to draw pixels, and here one badly formed shader makes the driver write past the end of a memory buffer. That kind of memory corruption can let an attacker take control of the program, or in a virtual machine setup, the machine hosting it.

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.