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

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

Dawn's frontend validation checked a texture's public usage mask to enforce load/store restrictions on transient attachments, while the Metal backend decided memoryless allocation from internal usage. A compromised renderer could mark a texture transient only as an internal usage, bypass the restrictions, and potentially read stale GPU tile memory, disclosing cross-origin graphics data.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 13 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 validation logic mismatch in Dawn allows a compromised renderer to bypass transient attachment load/store operation restrictions. By specifying transient usage internally, the frontend validation is bypassed while the Metal backend allocates a memoryless texture. On Apple Silicon, this mismatch can potentially be used to read uncleared GPU tile memory, leading to cross-origin graphics data disclosure.

Affected files:

  • third_party/dawn/src/dawn/native/CommandEncoder.cpp
  • third_party/dawn/src/dawn/native/metal/TextureMTL.mm

Estimated timestamp from git blame: 2024-10-01

Description

There is a potential validation discrepancy in Dawn regarding how transient texture attachments are handled between the frontend validation and the Metal backend.

In third_party/dawn/src/dawn/native/CommandEncoder.cpp (lines 667 and 782), frontend validation functions such as ValidateRenderPassColorAttachment and ValidateRenderPassDepthStencilAttachment enforce load and store restrictions (e.g., forcing loadOp to be Clear and storeOp to be Discard) on transient attachments by checking the view's public usage mask:

C++
if (attachment->GetUsage() & wgpu::TextureUsage::TransientAttachment) {
    // Enforce loadOp / storeOp restrictions
}

However, in the Metal backend (third_party/dawn/src/dawn/native/metal/TextureMTL.mm at line 238), Dawn decides whether to allocate a texture using MTLStorageModeMemoryless based on its internal usage:

OBJC
if (GetInternalUsage() & wgpu::TextureUsage::TransientAttachment &&
    [ToBackend(GetDevice())->GetMTLDevice() supportsFamily:MTLGPUFamilyApple2]) {
    mtlDesc.storageMode = MTLStorageModeMemoryless;
}

Because Chrome automatically requests and enables wgpu::FeatureName::DawnInternalUsages under the hood for WebGPU devices (in gpu/command_buffer/service/webgpu_decoder_impl.cc at line 1513), a compromised renderer can pass a chained DawnTextureInternalUsageDescriptor upon texture creation to specify wgpu::TextureUsage::TransientAttachment only as an internal usage, while keeping the public usage set to a standard RenderAttachment.

Since attachment->GetUsage() returns the public usage mask (which does not contain the transient bit), the frontend's load and store restrictions are bypassed, permitting arbitrary operations such as loadOp = Load and storeOp = Store. Meanwhile, on the Metal backend, the texture is allocated as memoryless. On Apple Silicon, executing MTLLoadActionLoad against memoryless textures can allow reading the uncleared, stale contents of the GPU's on-chip tile memory, representing a potential cross-origin GPU memory disclosure vulnerability.

Note: These are potential steps and analysis; our current tooling has not executed a live proof-of-concept.

Potential Steps to Reproduce

A compromised renderer acting over dawn_wire could potentially perform the following sequence:

  1. Call DeviceCreateTexture with descriptor.usage = RenderAttachment and a chained DawnTextureInternalUsageDescriptor specifying internalUsage = TransientAttachment.
  2. Call TextureCreateView on the created texture to obtain a view. The view's public mUsage will inherit RenderAttachment, while its mInternalUsage will resolve to RenderAttachment | TransientAttachment.
  3. Execute a first dummy render pass on the view with loadOp = Clear to initialize the subresource state.
  4. Execute a second render pass on the view specifying loadOp = Load, storeOp = Discard, and a non-transient texture resolve as the resolveTarget.
  5. Copy the resolved texture to a buffer and map it back to the renderer process to read the stale GPU tile memory loaded during the pass.

Suggested Fix

The frontend validation in CommandEncoder.cpp should enforce transient attachment constraints based on the texture's internal usage (GetInternalUsage()) rather than its public usage (GetUsage()):

C++
if (attachment->GetInternalUsage() & wgpu::TextureUsage::TransientAttachment) {
    // Enforce loadOp / storeOp restrictions
}

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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 frontend validated transient attachment restrictions against the public usage mask while the Metal backend selected memoryless allocation from the internal usage mask, so the two checks disagreed.

Impact

On Apple Silicon this could disclose uncleared GPU tile memory across origins, but the report states no live proof-of-concept was executed and the steps are only potential.

What the attacker needed

Compromised renderer process; Apple Silicon GPU; WebGPU with internal usages enabled

The fix

The frontend validation should check the texture's internal usage rather than its public usage when enforcing transient attachment load and store restrictions.

How it was found

  1. Create a texture whose public usage is a render attachment, with a chained descriptor setting transient attachment as internal usage.
  2. Create a view on that texture, which inherits the public usage but resolves internal usage to include transient.
  3. Run a dummy render pass with a clear load operation to initialise the subresource state.
  4. Run a second render pass with a load operation, a discard store operation and a non-transient resolve target.
  5. Copy the resolved texture into a buffer and map it back to the renderer to read the stale tile memory.

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 graphics card, and Dawn is the part of Chrome that implements it. Some textures are meant to live only briefly in fast on-chip memory and must never be read back, so the code is supposed to force them to be cleared and discarded. Here two parts of the code disagreed about which textures those were, so a malicious page could ask to read the leftover contents of that fast memory, which may hold another site's images.

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.