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

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

Dawn's Vulkan backend creates a fallback error object when a query pool allocation fails due to GPU memory exhaustion, but a later code path blindly casts that object to the full backend type and reads a field that does not exist in it. This causes a heap out-of-bounds read in the GPU process.

Anonymous Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 58 days

VULNERABILITY DETAILS

A heap OOB access vulnerability exists in the WebGPU Dawn Vulkan backend when handling a GPU device OOM condition during an empty render pass.

The issue stems from Device::GetEmptyPassQuerySet() which dynamically creates an occlusion QuerySet to inject dummy work into empty render passes [0].

C++
QuerySetBase* Device::GetEmptyPassQuerySet() {
    DAWN_ASSERT(IsToggleEnabled(Toggle::VulkanAddWorkToEmptyResolvePass));

    if (!mEmptyPassQuerySet) {
        QuerySetDescriptor descriptor;
        descriptor.type = wgpu::QueryType::Occlusion;
        descriptor.count = 1;
        mEmptyPassQuerySet = APICreateQuerySet(&descriptor); // [0]
    }
    return mEmptyPassQuerySet.Get();
}

When the underlying Vulkan driver fails to create the query pool and returns an error such as VK_ERROR_OUT_OF_DEVICE_MEMORY or VK_ERROR_OUT_OF_HOST_MEMORY, Dawn catches this via its CheckVkOOMThenSuccess fault-tolerance mechanism and gracefully downgrades the allocation by silently emitting an ErrorQuerySet object instead of a full vulkan::QuerySet.

ErrorQuerySet only occupies the memory footprint of its base class QuerySetBase and completely lacks backend-specific variables, including the VkQueryPool mHandle.

However, the subsequent caller in CommandBuffer::RecordRenderPass does not verify if the returned QuerySetBase is actually an ErrorQuerySet (e.g., via querySet->IsError()). It immediately up-casts the memory instance directly to the backend representation via ToBackend and begins the query loop using the GetHandle() method [1] [2].

C++
if (workCommandCount == 0 &&
    device->IsToggleEnabled(Toggle::VulkanAddWorkToEmptyResolvePass)) {
    QuerySetBase* querySet = device->GetEmptyPassQuerySet();
    device->fn.CmdBeginQuery(commands, ToBackend(querySet)->GetHandle(), 0, 0); // [1]
    device->fn.CmdEndQuery(commands, ToBackend(querySet)->GetHandle(), 0); // [2]
}

This blind up-casting to vulkan::QuerySet results in a Type Confusion. When GetHandle() attempts to load mHandle [3], it reads past the truncated allocation size of the ErrorQuerySet object, triggering a Heap OOB access memory corruption.

C++
VkQueryPool QuerySet::GetHandle() const {
    return mHandle; // [3]
}

[0] https://source.chromium.org/chromium/chromium/src/+/main:third_party/dawn/src/dawn/native/vulkan/DeviceVk.cpp;drc=cde13c6d417485b7cf3edadf6edc2605faf13e22;l=1233

[1] https://source.chromium.org/chromium/chromium/src/+/main:third_party/dawn/src/dawn/native/vulkan/CommandBufferVk.cpp;drc=cde13c6d417485b7cf3edadf6edc2605faf13e22;l=1929

[2] https://source.chromium.org/chromium/chromium/src/+/main:third_party/dawn/src/dawn/native/vulkan/CommandBufferVk.cpp;drc=cde13c6d417485b7cf3edadf6edc2605faf13e22;l=1930

[3] https://source.chromium.org/chromium/chromium/src/+/main:third_party/dawn/src/dawn/native/vulkan/QuerySetVk.cpp;drc=cde13c6d417485b7cf3edadf6edc2605faf13e22;l=80

BISECTION

Introduced by Dawn upstream commit [0] which added the VulkanAddWorkToEmptyResolvePass toggle and its workaround mechanism involving GetEmptyPassQuerySet().

This regression was rolled into Chromium in commit [1].

[0] https://dawn.googlesource.com/dawn/+/a76b32ec053451a479ba6989ba1d020a302580a4 (Add VulkanAddWorkToEmptyResolvePass Toggle)

[1] https://chromium.googlesource.com/chromium/src/+/7bc869b0e849bed0329997b711b9be73ffede928 (Roll Dawn from 1bdb72cd216e to d074fa41df60 (17 revisions))

VERSION

Chrome Version: HEAD

Operating System: Linux

REPRODUCTION CASE

To reliably simulate a GPU device OOM and prove the underlying vulnerability in Dawn's error handling, inject_oom.patch is provided. It minimally modifies SwiftShader to force vkCreateQueryPool to return VK_ERROR_OUT_OF_HOST_MEMORY. The vulnerability itself resides within Dawn and is independent of the Vulkan backend driver.

  1. Apply inject_oom.patch to third_party/swiftshader, then build Chromium with ASan.
  2. Host the poc.html on an HTTP server.
  3. Run Chrome against the PoC.
Bash
$ python3 -m http.server
$ ./out/asan/chrome --enable-unsafe-webgpu --enable-dawn-features=vulkan_add_work_to_empty_resolve_pass "http://localhost:8000/poc.html"

CRASH INFORMATION

Type of crash: GPU process

Crash log: see the attached asan.txt ASan trace.

CREDIT INFORMATION

Reporter credit: Anonymous

The original report as published on the Chromium issue tracker, by Anonymous. 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 caller does not check whether the returned QuerySet is an error placeholder before casting it to the backend type and reading its handle.

Impact

A heap out-of-bounds read occurs in the GPU process, which could crash it and potentially lead to memory corruption; the report does not demonstrate code execution.

What the attacker needed

GPU device runs out of memory; WebGPU enabled in the browser; Vulkan empty-pass toggle enabled

How it was found

  1. Apply the provided patch to SwiftShader so query pool creation fails with an out-of-memory error, then build Chromium with ASan.
  2. Serve the proof-of-concept page over HTTP.
  3. Launch Chrome with the unsafe WebGPU flag and the empty-resolve-pass toggle enabled, pointing at the page.

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.

When the graphics driver runs out of memory, the software creates a small placeholder object instead of the real one. Later code assumes it is the real object and reads a value from a spot that the placeholder does not have, so it reads memory it should not touch. This can crash the graphics process and, in principle, corrupt memory.

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 by Anonymous

View all

2,270 more disclosed reports, best first.

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.