Skip to content
Memory corruption Advisory Advanced CVE-2026-11665

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

A logic error in Dawn's indirect draw validation allows merging incompatible validation batches, causing a command layout mismatch on the D3D12 backend. An attacker could control draw parameters and trigger an out-of-bounds read of GPU memory, potentially exfiltrating cross-origin GPU VRAM contents.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 23 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A logic error in Dawn's indirect draw validation allows merging incompatible validation batches, leading to a command layout mismatch on the D3D12 backend. This mismatch allows an attacker to control sensitive draw parameters, potentially resulting in an out-of-bounds read of GPU memory. The issue is reachable via WebGPU and could be used to exfiltrate cross-origin GPU VRAM contents.

Affected files:

  • third_party/dawn/src/dawn/native/IndirectDrawValidationEncoder.cpp
  • third_party/dawn/src/dawn/native/d3d12/RenderPipelineD3D12.cpp
  • third_party/dawn/src/dawn/native/d3d12/CommandBufferD3D12.cpp
  • third_party/dawn/src/dawn/native/IndirectDrawMetadata.cpp

Estimated timestamp from git blame: 2022-04-21

Summary

A logic error exists in Dawn's IndirectDrawValidationEncoder where validation batches are merged into existing validation passes without verifying the compatibility of the duplicateBaseVertexInstance flag. On D3D12, this flag determines whether draw parameters are duplicated into root constants to support @builtin(vertex_index) and @builtin(instance_index). A mismatch between the validation shader's output layout and the backend's command signature leads to the misinterpretation of attacker-controlled data as GPU draw parameters.

Vulnerability Details

In IndirectDrawValidationEncoder.cpp, the function EncodeIndirectDrawValidationCommands iterates through a sorted map of validation metadata. For each entry, it attempts to merge the batch into the current validation pass. The merge condition (lines 534-537) incorrectly assumes that matching the indirect buffer pointer and the draw type is sufficient:

C++
// third_party/dawn/src/dawn/native/IndirectDrawValidationEncoder.cpp
if (currentPass &&
    reinterpret_cast<uintptr_t>(currentPass->inputIndirectBuffer.get()) ==
        config.inputIndirectBufferPtr &&
    currentPass->drawType == config.drawType) {
    // ... merge batch into currentPass
}

The IndexedIndirectConfig map key is sorted such that batches with duplicateBaseVertexInstance = false are processed before those with duplicateBaseVertexInstance = true for the same buffer. Consequently, a batch requiring parameter duplication can be merged into a pass initialized for a non-duplicating batch. This results in the pass flags failing to include kDuplicateBaseVertexInstance even when it contains batches that require it.

This leads to a layout mismatch during execution:

  1. Validation Shader Output: The shader relies on the pass flags. If kDuplicateBaseVertexInstance is absent, it writes a 5-u32 record per draw: [indexCount, instanceCount, firstIndex, baseVertex, firstInstance].
  2. D3D12 Execution: For pipelines using vertex/instance indices, the D3D12 backend selects a 7-u32 command signature (2 u32s for root constants + 5 u32s for draw arguments).

When D3D12 processes the 5-u32 record using a 7-u32 signature, the data is shifted. Specifically, the attacker-controlled firstInstance field from the 5-u32 record is read as the StartIndexLocation for the D3D12 draw call. Because firstInstance validation is skipped when the IndirectFirstInstance feature is enabled (standard on D3D12), an attacker can specify an arbitrary offset into the index buffer.

Potential Impact

An attacker could trigger an out-of-bounds read from the index buffer into arbitrary GPU VRAM. The fetched values would be delivered to the attacker's vertex shader as @builtin(vertex_index), allowing them to be exfiltrated to a storage buffer or render target. This represents a cross-origin information leak of GPU memory.

Potential Steps to Reproduce

  1. Initialize a WebGPU device on Windows (D3D12 backend) with IndirectFirstInstance support.
  2. Create a "non-duplicating" Pipeline A (no vertex/instance index usage) and a "duplicating" Pipeline B (uses @builtin(vertex_index)).
  3. Create an indirect buffer containing draw parameters, where the firstInstance field for Pipeline B's draw is set to a malicious, large value.
  4. In a single render pass, encode an indirect draw using Pipeline A followed by an indirect draw using Pipeline B, both referencing the same indirect buffer.
  5. Observe that the D3D12 backend executes Pipeline B's draw call with a StartIndexLocation derived from the attacker-controlled firstInstance value.

Suggested Fix

Update the merge condition in third_party/dawn/src/dawn/native/IndirectDrawValidationEncoder.cpp to ensure that batches are only merged if their duplicateBaseVertexInstance requirement matches the existing pass:

C++
if (currentPass &&
    reinterpret_cast<uintptr_t>(currentPass->inputIndirectBuffer.get()) ==
        config.inputIndirectBufferPtr &&
    currentPass->drawType == config.drawType &&
    ((currentPass->flags & kDuplicateBaseVertexInstance) != 0) == config.duplicateBaseVertexInstance) {
    // ...
}

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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

The merge condition in IndirectDrawValidationEncoder.cpp fails to check the duplicateBaseVertexInstance flag, allowing batches with different requirements to be merged into one validation pass.

Impact

An attacker could trigger an out-of-bounds read from the index buffer into arbitrary GPU VRAM, potentially exfiltrating cross-origin GPU memory contents.

What the attacker needed

Windows with D3D12 backend; WebGPU support; IndirectFirstInstance feature enabled

The fix

The merge condition should be updated to also check that the duplicateBaseVertexInstance flag matches between the batch and the existing pass.

How it was found

  1. Initialize a WebGPU device on Windows (D3D12 backend) with IndirectFirstInstance support.
  2. Create a non-duplicating Pipeline A and a duplicating Pipeline B.
  3. Create an indirect buffer with a malicious firstInstance value for Pipeline B's draw.
  4. Encode an indirect draw with Pipeline A followed by Pipeline B, both using the same indirect buffer.
  5. Observe that Pipeline B's draw uses a StartIndexLocation derived from the malicious firstInstance value.

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.

This report describes a bug in a graphics component called Dawn, which helps web pages use the GPU. The bug lets a malicious web page trick the GPU into reading memory it should not access, which could leak data from other websites. It only affects Windows computers using a specific graphics technology called D3D12.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.