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

Use after free in Dawn (CVE-2026-11154)

A logic error in Dawn's Vulkan backend causes a command pool to be registered for destruction twice when an error occurs during OnAfterSubmit, leading to a double-free and use-after-free of driver memory. An attacker with a compromised renderer could potentially exploit this to achieve remote code execution in the GPU process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 52 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.

Overview: A logic error in Dawn's Vulkan backend allows a VkCommandPool to be registered for destruction twice if an error occurs during OnAfterSubmit(). This leads to a potential double-free of driver-allocated memory, which could allow for remote code execution in the GPU process.

Affected files:

  • third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp
  • third_party/dawn/src/dawn/native/ExecutionQueue.cpp
  • third_party/dawn/src/dawn/native/Device.cpp
  • third_party/dawn/src/dawn/native/vulkan/TextureVk.cpp

Estimated timestamp from git blame: 2026-03-02

Summary

A logic error in the error-handling path of dawn::native::vulkan::Queue::SubmitPendingCommandsImpl can lead to a double-free of a VkCommandPool and VkCommandBuffer handle. This occurs because an early return bypasses the reset of the recording context, causing the same Vulkan handles to be destroyed once by a scheduled cleanup task and a second time during device destruction. This vulnerability could potentially be triggered from a compromised renderer process and may lead to remote code execution in the GPU process.

Technical Details

In third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp, the SubmitPendingCommandsImpl function handles the submission of recorded command buffers to the Vulkan queue. The issue unfolds as follows:

  1. Task Registration: After a successful vkQueueSubmit, the function registers a TrackSerialTask (line 347). This task captures the current VkCommandPool and VkCommandBuffer by value. When the task executes, it intends to reset the command pool and push it into mUnusedCommands for recycling. If the reset fails, it destroys the pool directly.
  2. Error Path & State Leak: The function then calls texture->OnAfterSubmit() for special sync textures (line 364). If this fails (e.g., due to file descriptor exhaustion when exporting a semaphore), the DAWN_TRY macro forces an early return. Crucially, this early return skips the code that resets mRecordingContext (line 367). As a result, mRecordingContext.used remains true, and it retains the exact Vulkan handles that were just scheduled for recycling in the task.
  3. Device Destruction Sequence: The propagated error causes the device to transition to a lost state and initiate an emergency shutdown via mQueue->WaitForIdleForDestruction().
  4. First Registration for Destruction: Inside WaitForIdleForDestructionImpl() (QueueVk.cpp:168), the code checks if mRecordingContext.used is true. Because of the state leak in step 2, it is true. The function then constructs a CommandPoolAndBuffer from the stale context and pushes it into mUnusedCommands for cleanup during shutdown.
  5. First Free: Next, the execution queue drains pending tasks, including the TrackSerialTask from step 1. Inside the task, vkResetCommandPool is called but fails because the device is now in a lost state (VK_ERROR_DEVICE_LOST). As per its error handling (QueueVk.cpp:355), the task calls DestroyCommandPoolAndBuffer, which legitimately frees the Vulkan handles.
  6. Second Free (Double-Free/UAF): Finally, during Queue::DestroyImpl (QueueVk.cpp:426), Dawn iterates over mUnusedCommands. It encounters the entry that was pushed in step 4. It calls DestroyCommandPoolAndBuffer on it, passing the exact same Vulkan handles that were already freed in step 5.

Impact

Double-destruction of a Vulkan handle is undefined behavior. In most Vulkan driver implementations, VkCommandPool represents a heap allocation, and this sequence results in a double-free in the driver's memory allocator. Additionally, the second call to vkFreeCommandBuffers will attempt to dereference the already-freed pool handle, leading to a Use-After-Free (UAF) condition.

Because VkCommandPool handles represent driver-internal memory, this corruption occurs completely outside of the PartitionAlloc heap and is not protected by MiraclePtr. On platforms where the GPU process has elevated privileges or a weaker sandbox (such as Android), this provides a potential path for a compromised renderer to achieve a sandbox escape.

Suggested Reproduction Steps

Note: These are theoretical steps; our tooling agent does not currently run code to verify them.

  1. From a compromised renderer, create a WebGPU device using the Vulkan backend.
  2. Create or import a shared texture (e.g., via importExternalTexture or a SharedImage-backed texture) so it is managed as an ImportedTextureBase.
  3. Deliberately exhaust the file descriptor (FD) table in the GPU process (e.g., by repeatedly creating AHardwareBuffer-backed SharedImages via the GPU channel without releasing them).
  4. Submit a command buffer using the shared texture. The initial vkQueueSubmit will succeed, but the subsequent OnAfterSubmit will fail when vkGetSemaphoreFdKHR cannot allocate a new FD, triggering the early return.
  5. The device will transition to a lost state and initiate destruction, executing the double-free during cleanup.

Suggested Fix

Ensure that mRecordingContext is always properly reset, even on error paths. This could be achieved by using an RAII helper (scope guard) within SubmitPendingCommandsImpl to guarantee that mRecordingContext = CommandRecordingContext(); executes regardless of how the function exits, preventing stale handles from being picked up during destruction.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 an early return on an error path skips resetting the recording context, leaving stale Vulkan handles that are later destroyed twice.

Impact

This could allow a compromised renderer to achieve remote code execution in the GPU process, potentially leading to a sandbox escape on platforms with weaker sandboxing.

What the attacker needed

Compromised renderer process; ability to exhaust file descriptors

The fix

The recording context should always be reset, even on error paths, for example by using an RAII helper (scope guard) to guarantee the reset executes regardless of how the function exits.

How it was found

  1. From a compromised renderer, create a WebGPU device using the Vulkan backend.
  2. Create or import a shared texture so it is managed as an ImportedTextureBase.
  3. Exhaust the file descriptor table in the GPU process.
  4. Submit a command buffer using the shared texture; vkQueueSubmit succeeds but OnAfterSubmit fails.
  5. The device transitions to a lost state and initiates destruction, executing the double-free during cleanup.

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 is used by the Chrome browser to talk to the graphics card. When an error happens during a graphics operation, the code fails to clean up properly, so the same memory is freed twice. That can corrupt memory and, in the worst case, let an attacker run their own code on the computer.

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.