Uninitialized Use in GPU (CVE-2026-11064)
The GPU service's DawnEGLImageRepresentation::BeginAccess ignores the return value of its underlying GL access call, allowing a compromised renderer to map the same SharedImage mailbox to multiple WebGPU textures concurrently. This can trigger a GPU-side data race, potentially letting an attacker read uninitialized memory or cross-origin texture residue on older Android devices.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 months
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 security team.
Overview: In Chrome's GPU service, DawnEGLImageRepresentation::BeginAccess ignores the return value of its underlying GL representation access call. This allows a compromised renderer to bypass GPU synchronization and clear-state tracking by mapping the same SharedImage mailbox to multiple WebGPU textures concurrently. As a result, an attacker can potentially trigger a GPU-side data race to read uninitialized memory or cross-origin texture residue on older Android devices.
Affected files:
gpu/command_buffer/service/shared_image/dawn_egl_image_representation.ccgpu/command_buffer/service/webgpu_decoder_impl.ccgpu/command_buffer/service/shared_image/shared_image_representation.h
Estimated timestamp from git blame: 2024-06-03
Background
On Android devices lacking Vulkan support, Chrome's WebGPU implementation falls back to OpenGLES. In this path, DawnEGLImageRepresentation is used to wrap EGLImage-backed SharedImages so they can be accessed by Dawn. Proper synchronization between Dawn and other GL contexts relies on acquiring exclusive read/write access to the SharedImage backing and emitting GL fences.
The Vulnerability
In gpu/command_buffer/service/shared_image/dawn_egl_image_representation.cc:67, the boolean return value of gl_representation_->BeginAccess(...) is ignored:
64: wgpu::Texture DawnEGLImageRepresentation::BeginAccess(...) {
65: gl_representation_->BeginAccess(ToSharedImageAccessGLMode(usage)); // Return value ignored
66: // ... proceeds to successfully wrap the EGLImage and return a wgpu::Texture ...
67: }
If the SharedImage is already locked by another writer, gl_representation_->BeginAccess() safely returns false, and its internal state mode_ remains kNone. However, because DawnEGLImageRepresentation ignores this failure, it proceeds to hand Dawn a valid wgpu::Texture handle for a texture it does not exclusively own.
Potential Exploit Steps
Note: These are suggested/potential steps derived from code analysis; our tooling agent does not run code to produce a live proof-of-concept.
An attacker in a compromised renderer could trigger a GPU data race using the following sequence:
- Create SharedImage: The attacker creates an uninitialized SharedImage via GPU IPC.
- Associate ID 1: The attacker sends an
AssociateMailboxImmediatecommand to the WebGPU decoder, associating the mailbox with a WebGPU textureid=1and requestingWEBGPU_WRITEusage. This successfully acquires the write lock on theEGLImageBacking. - Associate ID 2: The attacker associates the same mailbox with a second WebGPU texture
id=2.WebGPUDecoderImplpermits multiple IDs for the same mailbox. Becauseid=1holds the lock,BeginWrite()fails, but the failure is ignored.id=2successfully wraps the texture, but its internal accessmode_remainskNone. - Generate Stale Fence: The attacker dissociates
id=1. TheEndAccesscall drops the write lock and generates a newwrite_fence_(e.g.,GLFenceEGL), representing the GPU state before any commands forid=2are submitted. - Submit Unfenced Work: The attacker uses
id=2to submit a lazy-clear or compute operation in Dawn. These GL commands execute asynchronously on the GPU. - Bypass New Fence Generation: The attacker dissociates
id=2. Dawn marks the backing as fully initialized (SetCleared()). However, whengl_representation_->EndAccess()is called, it early-returns becausemode_iskNone. Crucially, no newwrite_fence_is generated to synchronize the Dawn commands from step 5. - Race Condition and Data Leak: The attacker immediately reads the same SharedImage from a WebGL context. WebGL sees the texture is marked as cleared and skips its own security lazy-clear. It waits on the backing's
write_fence_, but this is the stale fence from step 4, which is already signaled. WebGL reads the memory immediately, racing with the asynchronous clear from step 5.
This race allows the attacker to read uninitialized GPU memory or cross-origin texture residue.
Suggested Fix
Check the return value of gl_representation_->BeginAccess(...) inside DawnEGLImageRepresentation::BeginAccess. If it returns false, fail gracefully by returning a null wgpu::Texture or an error texture, preventing Dawn from accessing a backing it failed to lock:
wgpu::Texture DawnEGLImageRepresentation::BeginAccess(
wgpu::TextureUsage usage,
wgpu::TextureUsage internal_usage) {
if (!gl_representation_->BeginAccess(ToSharedImageAccessGLMode(usage))) {
return nullptr;
}
// ...
}
Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33
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.
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 code ignores the boolean return value of gl_representation_->BeginAccess, so it proceeds to wrap the EGLImage even when exclusive access was not acquired.
Impact
This race could allow the attacker to read uninitialized GPU memory or cross-origin texture residue, but only on older Android devices lacking Vulkan support.
What the attacker needed
Compromised renderer; older Android device without Vulkan
The fix
The fix should check the return value of gl_representation_->BeginAccess and fail gracefully by returning a null wgpu::Texture if it returns false.
How it was found
- Create an uninitialized SharedImage via GPU IPC.
- Associate the mailbox with WebGPU texture id=1 and request write usage, acquiring the write lock.
- Associate the same mailbox with WebGPU texture id=2; BeginWrite fails but the failure is ignored, so id=2 wraps the texture with internal mode_ still kNone.
- Dissociate id=1, which drops the write lock and generates a new write_fence_ representing GPU state before any id=2 commands.
- Use id=2 to submit a lazy-clear or compute operation in Dawn, executing asynchronously on the GPU.
- Dissociate id=2; EndAccess early-returns because mode_ is kNone, so no new write_fence_ is generated to synchronize the Dawn commands.
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 GPU service in Chrome manages shared images between different graphics APIs. When one part of the code fails to check whether it successfully locked an image, another part can use it at the same time, causing a race condition. This could let an attacker read leftover data from other websites or uninitialized memory.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.