AMD ATI Radeon ATIDXX64.DLL shader functionality VTABLE remote code execution vulnerability
A specially crafted pixel shader supplied to the AMD ATIDXX64.DLL driver causes a type confusion that lets the shader exceed vtable bounds and semi-control the control flow. An attacker could potentially achieve code execution, and the issue can be triggered from a VMware guest, affecting the host process.
Originally disclosed on Cisco Talos
An exploitable type confusion vulnerability exists in AMD ATIDXX64.DLL driver, versions 26.20.13031.10003, 26.20.13031.15006 and 26.20.13031.18002. A specially crafted pixel shader can cause a type confusion issue, leading to potential code execution.
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 fails to validate the type of an object before calling a method through its vtable, so crafted shader data is treated as a valid object pointer.
Impact
An attacker could potentially achieve code execution in the host's vmware-vmx.exe process, or theoretically through WebGL from a remote website.
What the attacker needed
Ability to run a crafted shader in a VMware guest; or a victim visiting a WebGL page (theoretical)
The fix
The vendor confirmed a fix, with no issues found on VMware Workstation 15.5.1 with AMD driver 20.1.1.
How it was found
- Supply a malformed pixel shader inside a VMware guest.
- The driver compiles the shader and dereferences a vtable pointer derived from shader data.
- The call reads an invalid address and crashes, or with further shader modifications executes a different vtable method.
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 takes small programs called shaders from applications and runs them to draw images. Here the driver trusted the shader's data too much and used it as if it were a different kind of object, so a malicious shader could make the driver jump to an address the attacker partly chooses. Because a virtual machine's graphics are handled by a process on the real machine, a shader from inside the guest could reach 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.