Skip to content
DoS Advisory Advanced CVE-2026-14399

Uninitialized Use in Dawn (CVE-2026-14399)

An uninitialized field in a Dawn pipeline cache key can take on indeterminate stack values, so identical render passes may produce different cache keys. This could let a renderer grow the internal pipeline cache without bound and time cache hits to learn about GPU-process stack memory.

Google Chrome

Originally disclosed on Chrome VRP

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

Overview: The KeyOfApplyClearColorValueWithDrawPipelines struct in Dawn contains an uninitialized totalPixelLocalStorageSize field used in pipeline cache hash and equality operations. This allows indeterminate GPU-process stack residue to influence cache keys, potentially leading to unbounded memory exhaustion and a timing side-channel for stack information. The issue primarily affects platforms using draw-based clear workarounds, such as Windows D3D backends.

Affected files:

  • third_party/dawn/src/dawn/native/ApplyClearColorValueWithDrawHelper.h
  • third_party/dawn/src/dawn/native/ApplyClearColorValueWithDrawHelper.cpp
  • third_party/dawn/src/dawn/native/CommandEncoder.cpp
  • third_party/dawn/src/dawn/native/InternalPipelineStore.h

Estimated timestamp from git blame: 2024-09-12

Root Cause Analysis

In third_party/dawn/src/dawn/native/ApplyClearColorValueWithDrawHelper.h, the struct KeyOfApplyClearColorValueWithDrawPipelines is used as a key for caching internal pipelines. The struct defines totalPixelLocalStorageSize without a default member initializer:

C++
struct KeyOfApplyClearColorValueWithDrawPipelines {
    uint8_t colorAttachmentCount = 0;
    PerColorAttachment<wgpu::TextureFormat> colorTargetFormats;
    ColorAttachmentMask colorTargetsToApplyClearColorValue;
    uint32_t sampleCount = 0;
    wgpu::TextureFormat depthStencilFormat = wgpu::TextureFormat::Undefined;
    bool hasPLS = false;
    uint64_t totalPixelLocalStorageSize;          // <--- Uninitialized
    std::vector<wgpu::PipelineLayoutStorageAttachment> plsAttachments;
};

Because the struct contains a std::vector, its implicitly-defined default constructor is non-trivial. It default-initializes members that have initializers (like hasPLS), but leaves primitive members like totalPixelLocalStorageSize with an indeterminate value if they are not explicitly initialized.

In third_party/dawn/src/dawn/native/CommandEncoder.cpp, the BeginRenderPass method stack-allocates a ClearWithDrawHelper object, which includes this key as a member. The initialization logic in GetKeyOfApplyClearColorValueWithDrawPipelines only assigns a value to totalPixelLocalStorageSize if a RenderPassPixelLocalStorage chained struct is provided in the render pass descriptor. When this struct is absent, totalPixelLocalStorageSize retains indeterminate stack residue.

The hash and equality functors for this key (used by InternalPipelineStore) read this field unconditionally:

C++
// ApplyClearColorValueWithDrawHelper.cpp:511
HashCombine(&hash, key.totalPixelLocalStorageSize);

// ApplyClearColorValueWithDrawHelper.cpp:538
if (key1.hasPLS != key2.hasPLS ||
    key1.totalPixelLocalStorageSize != key2.totalPixelLocalStorageSize ||
    key1.plsAttachments.size() != key2.plsAttachments.size()) {
    return false;
}

Potential Impact

  1. Unbounded Internal Pipeline Cache Growth (DoS): When performing color clears that trigger the draw-based workaround (enabled by default on D3D11/D3D12 for large integer values), semantically identical render passes may result in different cache keys due to varying stack residue. This causes the per-device applyClearColorValueWithDrawPipelines map in InternalPipelineStore to grow indefinitely as new RenderPipelineBase objects are compiled and stored for each unique (but uninitialized) key, leading to memory exhaustion in the GPU process.

  2. Information Leak (Timing Side-Channel): Since a cache miss triggers a multi-millisecond shader compilation while a cache hit is significantly faster, a malicious renderer process can time beginRenderPass operations. This creates an equality oracle for 8 bytes of GPU-process stack memory residue.

Suggested Potential Reproduction Steps

  1. On a Windows machine using the D3D12 WebGPU backend, create a WebGPU device.
  2. Create a texture with an rgba32sint format and RENDER_ATTACHMENT usage.
  3. Repeatedly call commandEncoder.beginRenderPass with a clear value that triggers the workaround (e.g., 2147483647) without providing a RenderPassPixelLocalStorage struct.
  4. Observe the GPU process memory usage increasing or use high-resolution timing to detect cache hits/misses based on stack residue.

Suggested Fix

Initialize the totalPixelLocalStorageSize field in the struct definition in third_party/dawn/src/dawn/native/ApplyClearColorValueWithDrawHelper.h:

C++
uint64_t totalPixelLocalStorageSize = 0;

Alternatively, modify the hash and equality functions to only access totalPixelLocalStorageSize when hasPLS is true.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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 struct member totalPixelLocalStorageSize has no default initializer and is only assigned when a RenderPassPixelLocalStorage struct is present, so the hash and equality functions read an indeterminate value.

Impact

A malicious renderer could cause unbounded memory growth in the GPU process and use timing differences to learn 8 bytes of GPU-process stack residue; the issue is described as primarily affecting Windows D3D backends.

What the attacker needed

Windows with D3D12 WebGPU backend; Ability to run WebGPU render passes

The fix

The field should be given a default initializer of zero, or the hash and equality functions should only read it when hasPLS is true.

How it was found

  1. On a Windows machine using the D3D12 WebGPU backend, create a WebGPU device.
  2. Create a texture with an rgba32sint format and RENDER_ATTACHMENT usage.
  3. Repeatedly call beginRenderPass with a clear value that triggers the workaround, without providing a RenderPassPixelLocalStorage struct.
  4. Observe GPU process memory growth or use high-resolution timing to detect cache hits and misses.

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.

A cache key is a value used to look up a saved result. Here one part of that key was never given a starting value, so it could contain leftover data from the program's stack, which is temporary memory. That made the same request look different each time, filling the cache and letting an attacker guess leftover memory values by timing how long operations take.

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.