Skip to content
DoS Advisory Advanced CVE-2026-79111

Improper input validation in Dawn (CVE-2026-79111)

ANGLE's parser-level size check on shader variables returns early for shader stages other than vertex and fragment, so compute shaders compiled through Dawn's OpenGLES backend on hardened contexts skip the 2 GiB limit. A web page could then pass a storage buffer block of up to 4 GiB to the native GPU driver's shader compiler in the unsandboxed GPU process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: ANGLE's parser-level guard checkVariableSize enforces a 2 GiB size limit on hardened contexts but early-returns for shader stages other than vertex and fragment. Consequently, WebGPU compute shaders using Dawn's OpenGLES backend can potentially compile storage buffer blocks (SSBOs) up to 4 GiB. This delivers oversized layouts directly to the native GPU driver's shader compiler in the unsandboxed GPU process.

Affected files:

  • third_party/angle/src/compiler/translator/ParseContext.cpp

Estimated timestamp from git blame: 2026-01-14

Description

ANGLE's checkVariableSize is a parser-level security check designed to prevent driver crash bugs triggered by extremely large variables (such as integer overflows in driver shader compilers) by enforcing a 2 GiB limit (kWebGLMaxVariableSizeInBytes) on hardened contexts. However, this check contains an early-return optimization designed for WebGL that ignores shader stages other than vertex and fragment shaders:

C++
// third_party/angle/src/compiler/translator/ParseContext.cpp:1858-1861
if (!mCompileOptions.rejectWebglShadersWithLargeVariables ||
    (mShaderType != GL_VERTEX_SHADER && mShaderType != GL_FRAGMENT_SHADER))
{
    return true;   // GL_COMPUTE_SHADER bypasses the size check here
}

This early-return was written under the assumption that the hardening is only relevant for WebGL shaders. However, Dawn's OpenGLES backend (specifically on Android devices running in compatibility mode) utilizes ANGLE as its GLES provider and explicitly requests a hardened ANGLE context:

C++
// third_party/dawn/src/dawn/native/opengl/ContextEGL.cpp:199-201
if (egl.HasExt(EGLExt::ANGLECreateContextWebGLCompatibility)) {
    AddAttrib(EGL_CONTEXT_HARDENED_ANGLE, EGL_TRUE);
}

When EGL_CONTEXT_HARDENED_ANGLE is set, ANGLE configures rejectWebglShadersWithLargeVariables = true. Because Dawn supports WebGPU compute shaders (GL_COMPUTE_SHADER), this is now a hardened client that compiles compute-stage interface blocks (SSBOs). Due to the stage filter in checkVariableSize, compute shaders compiling storage buffers bypass the 2 GiB check entirely.

Potential Attack Vector

Our static analysis suggests the following potential path to trigger the issue from web content:

  1. A web page running on an Android device where WebGPU compatibility mode is active (and falling back to the OpenGLES backend) requests a WebGPU adapter and device.

  2. The attacker creates a compute shader module (device.createShaderModule) declaring a large storage buffer of up to 4 GiB (just under Tint's 0xFFFFFFFF limit):

    WGSL
    @group(0) @binding(0) var<storage, read> x : array<mat4x4f, 67108863>; // ~4 GiB
    @compute @workgroup_size(1) fn main() { _ = x[0]; }
    
  3. Tint accepts the type (since storage buffers are exempt from the kMaxArrayElementCount limit) and generates GLSL ES 3.10 code containing a layout(std430) buffer with the massive array size.

  4. Dawn attempts to compile this shader using the statically linked ANGLE GLES context via glCompileShader.

  5. In ANGLE, the checkVariableSize function returns true early without checking the size of the block because mShaderType is GL_COMPUTE_SHADER.

  6. ANGLE's GL backend forwards the translated GLSL directly to the native Android GPU vendor's shader compiler via glCompileShader inside the unsandboxed GPU process, bypassing the safety firewall.

Note: These steps are based on static code analysis; our tooling agent does not currently have the capability to run code or verify this dynamically on a target device.

Proposed Fix

Modify checkVariableSize to evaluate compute shaders on hardened contexts, and ensure that the size calculation properly handles the std430 layout rules typically used by storage buffer blocks (EvqBuffer / BLOCKLAYOUT_STD430).

Evaluated with Chrome root at commit: 75203b87cbf6681eb7c7dda8e1d0bf781538c76a


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. 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 the early-return in checkVariableSize was written assuming only WebGL vertex and fragment shaders reach it, so compute shaders on hardened ANGLE contexts are never size-checked.

Impact

Oversized layouts could reach the native driver compiler in the unsandboxed GPU process, potentially triggering driver crash bugs; the report is based on static analysis only and was not verified dynamically.

What the attacker needed

Android device; WebGPU compatibility mode active; OpenGLES backend in use

The fix

checkVariableSize should be changed to evaluate compute shaders on hardened contexts and to apply std430 layout rules when sizing storage buffer blocks.

How it was found

  1. On an Android device with WebGPU compatibility mode active, request a WebGPU adapter and device.
  2. Create a compute shader module declaring a storage buffer of up to 4 GiB.
  3. Tint accepts the type and emits GLSL ES 3.10 with a large std430 buffer block.
  4. Dawn compiles the shader through its statically linked ANGLE GLES context.
  5. ANGLE's checkVariableSize returns early because the stage is compute, so no size check happens.
  6. ANGLE forwards the GLSL to the native GPU vendor's compiler in the unsandboxed GPU process.

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.

Shaders are small programs sent to the graphics card, and the browser has a safety check that refuses absurdly large variables because some graphics card drivers crash or misbehave on them. That check was written only for the two classic shader types and quietly skips the newer 'compute' type, which WebGPU uses. So a web page could hand a huge data block straight to the driver, which runs outside the browser's usual protection.

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 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.