Skip to content
Info disclosure Advisory Advanced CVE-2026-9907

Out of bounds read in Dawn (CVE-2026-9907)

A coordinate mismatch between Dawn's D3D12 backend and Tint's robustness transform allows a shader to bypass bounds checking for dynamic uniform buffers. An attacker could read out-of-bounds GPU memory, potentially leaking cross-origin data.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 55 days

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 without the security team.

Overview: A coordinate system mismatch between Dawn's D3D12 backend and Tint's robustness transform allows an attacker to bypass bounds checking for dynamic uniform buffers. By forcing a coordinate collision in the bind group layout, a shader can perform out-of-bounds reads via Root CBVs. This can result in a cross-origin information leak of adjacent GPU heap memory.

Affected files:

  • third_party/dawn/src/dawn/native/d3d12/ShaderModuleD3D12.cpp
  • third_party/dawn/src/tint/lang/hlsl/writer/raise/raise.cc
  • third_party/dawn/src/tint/lang/hlsl/writer/common/option_helpers.cc
  • third_party/dawn/src/tint/lang/core/ir/transform/robustness.cc

Estimated timestamp from git blame: 2025-09-24

Summary

A potential vulnerability exists in Dawn's D3D12 backend where a coordinate mismatch between WGSL bindings and HLSL registers can cause Tint to erroneously disable software robustness clamping for dynamic uniform buffers. Because D3D12 uses Root Descriptor CBVs for dynamic uniform buffers—which lack hardware bounds checking—this bypass allows an attacker to read out-of-bounds GPU memory, leading to a cross-origin information leak.

Root Cause Analysis

The issue stems from how Dawn specifies which buffers should bypass Tint's software bounds clamping (to prevent HLSL compiler errors on fixed-size arrays) and the order in which Tint applies its internal IR transformations.

  1. Sorting and Register Assignment: In BindGroupLayoutInternal::SortBindingsCompare, Dawn sorts bindings by type. BindingTypeOrder_DynamicBuffer has the highest priority (0). If a layout contains a dynamic uniform buffer and a non-dynamic storage buffer, the dynamic buffer is sorted first and assigned BindingIndex 0 (which becomes HLSL register b0). The storage buffer is assigned BindingIndex 1 (e.g., u1).
  2. Poisoning the Ignore List: In ShaderModuleD3D12.cpp, Dawn iterates over the layout to populate the ignored_by_robustness list with non-dynamic storage buffers. However, it records the buffer using its original WGSL coordinate, not its assigned HLSL register. If the storage buffer was at WGSL @binding(0), the entry {group: 0, binding: 0} is added to the ignore list.
  3. Tint Transformation Mismatch: In the Tint HLSL writer (raise.cc), the BindingRemapper transform runs first, mutating the IR variables from their WGSL coordinates to their new HLSL register assignments. The dynamic uniform buffer's coordinate is changed to {0, 0} (because it was assigned register b0).
  4. Robustness Bypass: The Robustness transform runs immediately after. When processing pointer accesses to the dynamic uniform buffer, ShouldClamp checks IsRootVarIgnored. This function reads the buffer's current (remapped) coordinate {0, 0} and checks the ignored_by_robustness list. Because the storage buffer previously added {0, 0} based on its WGSL index, the check returns true, and bounds clamping is erroneously disabled.

Potential Exploitation Steps

Note: These are theoretical steps based on code analysis; our tooling agent cannot execute code to verify.

  1. Setup Layout: An attacker creates a WebGPU BindGroupLayout with:
    • A non-dynamic Storage buffer at @group(0) @binding(0).
    • A Uniform buffer with hasDynamicOffset: true at a higher binding, e.g., @group(0) @binding(7).
  2. Trigger Collision: Due to Dawn's sorting, the dynamic uniform buffer is assigned HLSL register 0 (b0). The storage buffer causes the WGSL coordinate {0, 0} to be added to the ignored_by_robustness list. Tint remaps the uniform buffer to {0, 0}, matching the ignore list and bypassing software clamping.
  3. OOB Read: The attacker dispatches a shader that accesses an array inside the uniform buffer using a large out-of-bounds index.
  4. Hardware execution: In PipelineLayoutD3D12.cpp, dynamic uniform buffers are mapped as D3D12_ROOT_DESCRIPTOR1 (Root CBVs). Because Root CBVs do not contain size information, the D3D12 hardware relies entirely on the (now bypassed) software clamping. The shader successfully reads arbitrary adjacent memory within the D3D12 GPU heap (up to the ~64KB constant buffer limit).
  5. Exfiltration: The leaked cross-origin data is written to an output buffer and mapped back to the CPU.

Suggested Fix

In the Tint HLSL writer (third_party/dawn/src/tint/lang/hlsl/writer/common/option_helpers.cc), the ignored_by_robustness_transform list should be remapped to HLSL registers using the RemapperData before the Robustness pass is executed. This logic should be integrated into PopulateBindingRelatedOptions, mirroring how the array_length_from_uniform configuration is already handled.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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, Dawn records buffers to ignore for robustness clamping using their original WGSL coordinates, but Tint later remaps those coordinates to HLSL registers before the robustness pass, causing a collision that disables clamping.

Impact

An attacker could read out-of-bounds GPU memory, potentially leaking cross-origin data, though the report notes these are theoretical steps not executed.

What the attacker needed

WebGPU support in browser; Ability to run a shader; D3D12 backend

The fix

The ignored_by_robustness list should be remapped to HLSL registers using RemapperData before the Robustness pass, integrated into PopulateBindingRelatedOptions.

How it was found

  1. Create a bind group layout with a non-dynamic storage buffer at binding 0 and a dynamic uniform buffer at a higher binding.
  2. Due to sorting, the dynamic uniform buffer is assigned HLSL register b0, and the storage buffer's WGSL coordinate {0,0} is added to the ignore list.
  3. Tint remaps the uniform buffer to {0,0}, matching the ignore list and bypassing software clamping.
  4. Dispatch a shader that accesses an array inside the uniform buffer with a large out-of-bounds index.
  5. The shader reads adjacent GPU heap memory because Root CBVs lack hardware bounds checking.
  6. Write the leaked data to an output buffer and map it back to the CPU.

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.

WebGPU is a browser API for running code on the graphics card. A shader is a small program that runs on the GPU. Normally, the browser checks that a shader only reads from its own memory, but a mistake in how two parts of the system name memory locations meant that check could be skipped, letting a malicious shader read nearby memory that might belong to another website.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.