Uninitialized Use in Dawn (CVE-2026-10976)
A logic error in Dawn's OpenGL ES 3.1 blit fallback for cube maps causes destination subresources to be marked as initialized before the copy succeeds, allowing a renderer to read back uninitialized GPU memory. An attacker could potentially leak cross-origin data from the GPU heap.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 20 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: A logic error in Dawn's OpenGL ES 3.1 blit fallback for cube maps can result in destination subresources being incorrectly marked as initialized. This leads to a potential cross-origin information leak of uninitialized GPU memory when reading back texture data.
Affected files:
third_party/dawn/src/dawn/native/opengl/UtilsGL.cppthird_party/dawn/src/dawn/native/opengl/CommandBufferGL.cppthird_party/dawn/src/dawn/native/CommandBuffer.cppthird_party/dawn/src/dawn/native/opengl/TextureGL.cpp
Estimated timestamp from git blame: 2022-03-25
Summary
A potential cross-origin information leak exists in Dawn's OpenGL backend when utilizing the CopyImageSubData fallback path. This fallback is active on hardware supporting only OpenGL ES 3.1 (standard in WebGPU Compatibility Mode on many Android devices). Two logic errors in the fallback implementation result in either incorrect data being written to cube map faces or the copy operation failing entirely. Because Dawn updates the initialization state of the destination texture before the backend copy attempt, this allows a renderer to read back uninitialized GPU heap memory.
Root Cause Analysis
The issues are located in third_party/dawn/src/dawn/native/opengl/UtilsGL.cpp within the CopyImageSubData fallback (triggered when native glCopyImageSubData is unavailable).
1. Destination Face Indexing Error (Bug A)
In UtilsGL.cpp:151, the code calculates the target cube map face for the destination attachment by ignoring the dst.z offset:
GLenum target = GL_TEXTURE_CUBE_MAP_POSITIVE_X + layer;
If an attacker targets a specific face (e.g., z=3), the loop binds Face 0 to the Draw Framebuffer instead, leaving the intended face unmodified.
2. Invalid Source Attachment (Bug B)
In UtilsGL.cpp:144, if the source is a cube map, the fallback uses glFramebufferTextureLayer. On OpenGL ES 3.1, this function is only valid for 3D and 2D Array textures. Using it with a cube map generates a GL_INVALID_OPERATION error. In release builds, the DAWN_GL_TRY macro (defined in UtilsGL.h) expands to a bare call that ignores GL errors, causing the blit to silently fail or behave unpredictably.
Exploitation Path (Potential)
In third_party/dawn/src/dawn/native/opengl/CommandBufferGL.cpp:1063-1073, Dawn checks if a copy covers the full subresource. For cube maps (represented as 2D textures with layers), IsCompleteSubresourceCopiedTo only validates width and height. If these match, Dawn marks the destination subresource as initialized before calling the backend CopyImageSubData.
An attacker could potential trigger this via the following steps:
- Initialize a WebGPU device in Compatibility Mode (default on many Android GLES devices).
- Create a destination cube map texture.
- Issue a
copyTextureToTexturecommand targeting a specific face (e.g.,z=3) covering the full width and height of that face. - Due to the bugs above, Face 3 remains uninitialized, but Dawn's metadata now considers it initialized.
- Perform a
copyTextureToBufferreadback of Face 3. Dawn skips the security-critical 'lazy clear' (zero-fill) and returns the stale contents of the GPU memory heap.
Suggested Fix
- Correct the destination face calculation in
UtilsGL.cppto include thedst.zoffset:GLenum target = GL_TEXTURE_CUBE_MAP_POSITIVE_X + dst.z + layer;. - Ensure the source attachment binding correctly handles cube map faces on GLES 3.1 by using
glFramebufferTexture2Dwith the appropriate face target instead ofglFramebufferTextureLayer. - Consider moving the
SetIsSubresourceContentInitializedcall to occur only after a successful backend copy, or add robust error checking for the blit fallback.
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.
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 fallback code for copying cube map faces on OpenGL ES 3.1 has two bugs: it ignores the destination face index and uses an invalid function for the source, and Dawn marks the destination as initialized before the copy is attempted.
Impact
An attacker could potentially read uninitialized GPU memory, leading to a cross-origin information leak.
What the attacker needed
WebGPU device in Compatibility Mode; OpenGL ES 3.1 hardware
The fix
The destination face calculation should include the z offset, the source attachment should use the correct function for cube maps, and the initialization state should be updated only after a successful copy.
How it was found
- Initialize a WebGPU device in Compatibility Mode.
- Create a destination cube map texture.
- Issue a copyTextureToTexture command targeting a specific face covering the full width and height.
- Due to the bugs, the face remains uninitialized but Dawn's metadata considers it initialized.
- Perform a copyTextureToBuffer readback of that face to obtain stale GPU 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.
When a program copies data on the graphics card, it sometimes marks the destination as 'ready' before the copy actually happens. If the copy fails, the program still thinks the data is there, so it returns whatever was left in memory from other programs. This could let an attacker see data from other websites.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.