Uninitialized Use in ANGLE (CVE-2026-11087)
A missing check in glCopyTextureCHROMIUM lets a texture be copied onto itself, so the GL backend orphans the storage and replaces it with uninitialized GPU memory while the frontend still marks it as initialized. A compromised renderer could then read that memory back, potentially leaking cross-origin data.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 57 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 security team.
Overview: A potential vulnerability in ANGLE's GL backend may allow a compromised renderer to disclose uninitialized GPU memory. By performing a self-copy using glCopyTextureCHROMIUM, the backend orphans the texture storage, replacing initialized memory with uninitialized driver memory. This bypasses robust resource initialization checks and allows for a cross-origin information leak.
Affected files:
third_party/angle/src/libANGLE/renderer/gl/TextureGL.cppthird_party/angle/src/libANGLE/validationES2.cppgpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
Estimated timestamp from git blame: 2025-09-04
Summary
A missing source and destination identity check in glCopyTextureCHROMIUM allows a compromised renderer to trick the ANGLE GL backend into disclosing uninitialized GPU memory. When a texture is copied to itself, the backend orphans the destination (and inadvertently the source, since they are the same), replacing it with uninitialized driver memory. The frontend then marks the texture as initialized, entirely bypassing robust resource initialization safeguards.
Vulnerability Details
The sequence of events leading to the potential leak is as follows:
- Missing Validation: Neither the passthrough command decoder (
gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc) nor ANGLE's frontend validation (third_party/angle/src/libANGLE/validationES2.cpp) checks if the source and destination textures are the same forglCopyTextureCHROMIUM. (The legacy validating decoder previously rejected this). - Frontend Initialization Check: In
Texture::copyTexture(third_party/angle/src/libANGLE/Texture.cpp),source->ensureInitialized()is called. If the attacker previously initialized the texture, this returns immediately, and the frontend considers the source texture safe to read. - Backend Orphaning: The frontend delegates to the GL backend's
TextureGL::copyTexture(third_party/angle/src/libANGLE/renderer/gl/TextureGL.cpp). This function unconditionally callsreserveTexImageToBeFilled(), which issues a nativeglTexImage2Dcommand with anullptrdata pointer. - Storage Replacement: The
nullptrargument orphans the existing texture storage and allocates new, uninitialized memory from the GPU driver. Since the source and destination point to the exact same native texture, the initialized source data is destroyed and replaced by this uninitialized memory. - State Corruption: The backend attempts to copy the uninitialized memory onto itself. Regardless of whether this native operation fails or copies garbage, execution returns to the frontend, which mistakenly updates the texture's state to
InitState::Initialized(mState.setImageDesc(..., InitState::Initialized)). - Information Leak: The texture now contains uninitialized GPU memory (which may contain cross-origin data or compositor frames) but is incorrectly locked as initialized. Subsequent reads by the renderer via
glReadPixelsor shaders will successfully exfiltrate this memory without triggering robust clears.
Suggested Reproduction Steps
Note: These are potential steps as our tooling agent does not yet have the ability to run code to verify with a working proof of concept.
- From a compromised renderer, create a WebGL context using the passthrough decoder and ANGLE-on-GL backend.
- Create a texture
Tand explicitly initialize level 0 (e.g., viatexImage2Dwith dummy data) so the frontend marks it asInitState::Initialized. - Issue a raw
CopyTextureCHROMIUMcommand-buffer command setting bothsourceIdanddestIdtoT, and both levels to0. - Read back the texture data using
glReadPixels. The resulting data will contain uninitialized native GPU memory instead of the initialized dummy data.
Suggested Fix
Add a validation check in ValidateCopyTextureCHROMIUM (third_party/angle/src/libANGLE/validationES2.cpp) to reject calls where the source and destination texture objects and levels are identical, returning GL_INVALID_OPERATION. Additionally, consider adding a similar check in the passthrough command decoder (GLES2DecoderPassthroughImpl::DoCopyTextureCHROMIUM) to match the behavior of the legacy validating decoder.
Evaluated with Chrome root at commit: f200f57a19490707ff8bc7aa5de3cbc443a3afad
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 missing source/destination identity check in glCopyTextureCHROMIUM, combined with the backend unconditionally orphaning storage before the frontend marks the texture initialized.
Impact
A compromised renderer could disclose uninitialized GPU memory that may contain cross-origin data or compositor frames; the steps are unverified and the report notes they are potential.
What the attacker needed
Compromised renderer; passthrough decoder with ANGLE-on-GL
The fix
Validation should reject calls where source and destination texture objects and levels are identical, returning GL_INVALID_OPERATION, and the passthrough decoder should match the legacy decoder's behaviour.
How it was found
- Create a WebGL context using the passthrough decoder and ANGLE-on-GL backend.
- Create a texture and initialize level 0 so the frontend marks it initialized.
- Issue a raw CopyTextureCHROMIUM command with the same source and destination texture and level 0.
- Read the texture back with glReadPixels to obtain uninitialized 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.
Graphics code keeps textures in GPU memory, and the browser normally clears new textures so one website cannot see another's leftover data. Here, copying a texture onto itself made the driver throw away the cleared memory and hand back fresh, uncleared memory, but the browser still believed the texture was safe. A malicious page that already controls the graphics process could then read that leftover memory.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.