Skip to content
Access control Advisory Advanced CVE-2026-10983

Insufficient validation of untrusted input in Dawn (CVE-2026-10983)

Dawn's state tracker failed to clear a validation bit when the index buffer format changed, so a later draw could skip the compatibility check between the pipeline's strip index format and the bound index buffer. On D3D12 this could produce a PSO mismatch that violates the driver contract and may lead to out-of-bounds GPU memory access or a denial of service.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 17 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 state tracking fails to invalidate previous validation results when the index buffer format changes. This allows WebGPU content to bypass mandatory compatibility checks between the pipeline's strip index format and the bound index buffer. On D3D12 backends, this results in a Pipeline State Object (PSO) mismatch that violates the driver API contract.

Affected files:

  • third_party/dawn/src/dawn/native/CommandBufferStateTracker.cpp
  • third_party/dawn/src/dawn/native/RenderEncoderBase.cpp
  • third_party/dawn/src/dawn/native/d3d12/RenderPipelineD3D12.cpp
  • third_party/dawn/src/dawn/native/d3d12/CommandBufferD3D12.cpp

Estimated timestamp from git blame: Unknown (Google3 checkout)

Description

A potential vulnerability exists in Dawn's CommandBufferStateTracker where updating the index buffer format via SetIndexBuffer fails to reset the VALIDATION_ASPECT_INDEX_BUFFER state bit. This bit is used as a 'lazy aspect' to determine if re-validation is required before a draw call. Because the bit is not cleared when the format changes, subsequent draw calls may follow a 'fast-path' that assumes previous validation results remain valid, even if the new format is incompatible with the current pipeline.

Technical Details

Root Cause

In third_party/dawn/src/dawn/native/CommandBufferStateTracker.cpp, the SetIndexBuffer method updates internal state but missing a reset of the corresponding validation bit:

C++
void CommandBufferStateTracker::SetIndexBuffer(BufferBase* buffer,
                                               wgpu::IndexFormat format,
                                               uint64_t offset,
                                               uint64_t size) {
    mIndexBuffer = buffer;
    mIndexFormat = format;
    mIndexBufferSize = size;
    mIndexBufferOffset = offset;
    // Potential Bug: mAspects.reset(VALIDATION_ASPECT_INDEX_BUFFER) is missing.
}

When ValidateOperation is called during a draw, it checks the mAspects bitset. If VALIDATION_ASPECT_INDEX_BUFFER is already set, it returns early, skipping the call to RecomputeLazyAspects where the mandatory WebGPU compatibility checks (WebGPU §10.3.6) are performed.

Potential Impact

On the D3D12 backend, the IBStripCutValue (the primitive restart sentinel) is baked into the Pipeline State Object (PSO) at creation time based on the pipeline's stripIndexFormat. If a draw call proceeds where the bound index buffer format (e.g., 16-bit) does not match the PSO's expected format (e.g., 32-bit), it violates the D3D12 API contract. This mismatch can lead to unexpected GPU behavior, including out-of-bounds memory access within the GPU driver or a Denial of Service (TDR).

Suggested Reproduction Steps (Potential)

  1. Create a GPURenderPipeline with primitive: { topology: 'triangle-strip', stripIndexFormat: 'uint32' }.
  2. In a render pass:
    • Call setPipeline(pipeline).
    • Call setIndexBuffer(buffer32, 'uint32') and perform an indexed draw. This successfully validates and sets the VALIDATION_ASPECT_INDEX_BUFFER bit.
    • Call setIndexBuffer(buffer16, 'uint16').
    • Perform another indexed draw.
  3. Observe that the second draw call proceeds without a validation error, despite the 16-bit format being incompatible with the pipeline's 32-bit strip index format requirement.

Recommended Fix

In third_party/dawn/src/dawn/native/CommandBufferStateTracker.cpp, update SetIndexBuffer to reset the index buffer validation aspect:

C++
void CommandBufferStateTracker::SetIndexBuffer(...) {
    // ... existing updates ...
    mAspects.reset(VALIDATION_ASPECT_INDEX_BUFFER);
}

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 SetIndexBuffer method updates the stored index format but does not reset the VALIDATION_ASPECT_INDEX_BUFFER bit, so later draws take a fast path that assumes earlier validation still holds.

Impact

On the D3D12 backend the mismatch could lead to unexpected GPU behaviour, including out-of-bounds memory access within the GPU driver or a denial of service (TDR); the report presents this as potential and does not demonstrate it.

What the attacker needed

WebGPU content running in a browser; D3D12 backend for the stated impact

The fix

The SetIndexBuffer method should reset the index buffer validation aspect so the compatibility check runs again after a format change.

How it was found

  1. Create a render pipeline with triangle-strip topology and a 32-bit strip index format.
  2. In a render pass, set the pipeline and bind a 32-bit index buffer, then perform an indexed draw so validation runs and sets the index buffer aspect bit.
  3. Bind a 16-bit index buffer instead.
  4. Perform another indexed draw and observe it proceeds without a validation error despite the format mismatch.

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 drawing with the GPU. Before a draw, the browser checks that the index buffer (a list of vertex numbers) matches what the pipeline expects. Here, after changing the index buffer format, that check was skipped, so an incompatible draw could reach the graphics driver.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.