Skip to content
DoS Advisory Intermediate CVE-2024-6990

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.

gelatin dessert Follow

Originally disclosed on Chrome VRP

Critical View original
  • Fix shipped in 16 days

REPRODUCE

  1. Download Dawn as follow: https://dawn.googlesource.com/dawn/+/HEAD/docs/building.md
  2. gn gen out/tint
  3. ninja -C out/tint tint
  4. 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

The original report as published on the Chromium issue tracker, by gelatin dessert. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

  1. Download and build Dawn as per the documentation.
  2. Generate build files for Tint.
  3. Build the Tint compiler.
  4. 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.

More by gelatin dessert

View all

3 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.