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

Intel IGC64.DLL shader functionality DCL_INDEXABLETEMP code execution vulnerability

A malformed vertex shader using the DCL_INDEXABLETEMP instruction causes an out-of-bounds write in Intel's IGC64.DLL shader compiler, with the destination index taken directly from the shader. An attacker could use this to write to an arbitrary memory address, potentially leading to code execution, and possibly escape a guest virtual machine to the host.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.5 View original

An exploitable memory corruption vulnerability exists in Intel’s IGC64.DLL graphics driver, version 26.20.100.7584. A specially crafted vertex shader can cause an out-of-bounds write, which could lead to arbitrary 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 shader compiler failed to validate the index value supplied by the DCL_INDEXABLETEMP instruction before using it in a destination address calculation, allowing an out-of-bounds write.

Impact

An attacker could achieve arbitrary code execution, and the bug could potentially be triggered from guest machines to perform a guest-to-host escape, though browser-based triggering via WebGL was not confirmed.

What the attacker needed

Ability to supply a crafted shader; affected Intel graphics driver installed

How it was found

  1. Supply a malformed vertex or compute shader containing a crafted DCL_INDEXABLETEMP instruction to the Intel graphics driver.
  2. The driver uses the attacker-controlled index from the shader to compute the destination address.
  3. The write instruction stores data at the resulting address, causing an out-of-bounds write and 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 contains a compiler that turns small programs called shaders into machine instructions for the graphics chip. This compiler trusted a number written inside the shader when deciding where to store data, so a crafted shader could make it write outside its intended memory. Writing to the wrong memory can crash the program or, in the worst case, 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.