Uninitialized Use in Dawn (CVE-2024-6990)
The Tint shader compiler, part of Dawn, crashed with an internal compiler error when processing a crafted WGSL shader. An attacker could potentially cause a denial of service by supplying such a shader to a system using Dawn.
Originally disclosed on Chrome VRP
- Fix shipped in 16 days
REPRODUCE
- Download Dawn as follow: https://dawn.googlesource.com/dawn/+/HEAD/docs/building.md
- gn gen out/tint
- ninja -C out/tint tint
- out/tint/tint poc.wgsl
CRASH LOG
../../src/tint/lang/wgsl/resolver/uniformity.cc:157 internal compiler error: TINT_ASSERT(to != nullptr)
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
* Please help us fix this issue by submitting a bug report at *
* crbug.com/tint with the source program that triggered the bug. *
********************************************************************
[1] 249973 illegal hardware instruction out/tint/tint poc.wgsl
CRASH INFO AND CREDIT
Type of crash: gpu
Reporter credit: gelatin dessert
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 an uninitialized variable or null pointer dereference in the uniformity analysis code of the Tint compiler.
Impact
A crafted shader could cause the Tint compiler to crash, leading to a denial of service.
What the attacker needed
Ability to supply a WGSL shader to Tint
How it was found
- Download and build Dawn as per the documentation.
- Generate build files for Tint.
- Build the Tint compiler.
- Run the Tint compiler on the proof-of-concept WGSL file.
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 shader compiler is a program that translates code for graphics processing units (GPUs). This report shows that a specially crafted shader file can make the compiler crash, which could be used to disrupt a service that compiles shaders.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.