Uninitialized resource in ANGLE (CVE-2026-78965)
A logic error in ANGLE's dirty-state synchronisation means a texture flagged for initialisation during a draw's state sync is not fully processed, so a staged zero-clear is never flushed to the underlying Vulkan image. A WebGL application could then sample uninitialised GPU memory that may hold data from other origins or processes, leaking it via the framebuffer.
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. 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 ANGLE's Vulkan state synchronization potentially allows robust resource initialization (zero-clearing) to be bypassed. A new dirty state triggered during synchronization is not processed before the draw call, allowing a shader to sample uninitialized GPU memory. This could lead to a cross-origin information leak.
Affected files:
third_party/angle/src/libANGLE/State.hthird_party/angle/src/libANGLE/State.cppthird_party/angle/src/libANGLE/renderer/vulkan/TextureVk.cppthird_party/angle/src/libANGLE/Texture.cpp
Estimated timestamp from git blame: Unknown (Google3 checkout)
Summary
A potential vulnerability exists in ANGLE's Vulkan backend that allows a WebGL application to bypass robust resource initialization (zero-clearing) for textures. By exploiting a snapshotting behavior in how dirty objects are synchronized in gl::State, an attacker can sample uninitialized GPU memory that may contain data from previous allocations. This results in a potential cross-origin information leak if the memory was previously used by other processes or origins.
Root Cause Analysis
The core issue is a state synchronization logic error in State::syncDirtyObjects (located in third_party/angle/src/libANGLE/State.h). This function synchronizes dirty objects before operations like draw calls:
const state::DirtyObjects &dirtyObjects = mDirtyObjects & bitset; // SNAPSHOT
for (size_t dirtyObject : dirtyObjects) {
ANGLE_TRY(dirtyObjectHandler(dirtyObject, context, command));
}
mDirtyObjects &= ~dirtyObjects; // clear processed objects
The function takes a snapshot of the dirty objects bitset (dirtyObjects) and iterates over it. However, processing one dirty object can trigger another dirty object state with a higher index. Specifically, processing DIRTY_OBJECT_TEXTURES_INIT (index 1) calls State::syncTexturesInit, which eventually triggers the flagging of DIRTY_OBJECT_TEXTURES (index 8) via an observer chain. Since DIRTY_OBJECT_TEXTURES was not in the snapshot, the loop skips it, and its synchronization handler (State::syncTextures) is not called before the draw operation proceeds.
In the Vulkan backend, TextureVk::initializeContents stages a clear operation but does not immediately flush it. The flush is intended to occur during syncTextures -> TextureVk::syncState. Because syncTextures is skipped, the staged clear is never applied to the underlying VkImage before the shader uses it.
Potential Attack Sequence
Note: These are suggested steps to trigger the issue; our tooling has not yet executed a working proof of concept.
- Texture Setup: Create a texture and initialize it with data. Perform a draw call to ensure all states are clean.
- Compatible Redefinition: Call
glTexImage2Dwithnullptrusing the same dimensions and format. In the Vulkan backend, this triggers a compatible redefinition which allocates new uninitialized memory from the Vulkan Memory Allocator (VMA) but skips setting dirty bits on the frontend texture. The texture is only marked as needing initialization (InitState::MayNeedInit). - The Draw Call: The attacker issues a draw call, triggering
Context::prepareForDraw->State::syncDirtyObjects. - Snapshot and Init:
State::syncDirtyObjectstakes a snapshot containingDIRTY_OBJECT_TEXTURES_INIT(index 1). Processing this callssyncTexturesInit->Texture::ensureInitialized->TextureVk::initializeContents. - Staging the Clear:
TextureVk::initializeContentsstages a zero-clear inImageHelperand callsappendSubresourceUpdate. This triggers an observer chain notification (SubjectChanged). - Observer Chain: The notification bubbles up from
TextureVkto the frontendTexture, which flagsDIRTY_BIT_IMPLEMENTATION. This sends aDirtyBitsFlaggednotification to theContext, which updatesState::mDirtyObjectsto includeDIRTY_OBJECT_TEXTURES(index 8). - The Bypass: The
syncDirtyObjectsloop finishes iterating over the original snapshot. BecauseDIRTY_OBJECT_TEXTURES(index 8) was not in the snapshot, it is skipped. Thus,State::syncTexturesis not called. - Execution:
ContextVk::handleDirtyTexturesImpltransitions the image layout for reading, incorrectly assuming initialization is complete. The draw call executes, and the shader samples from the uninitialized VMA memory since the zero-clear was never flushed. - Data Leak: The attacker reads the framebuffer to capture the leaked GPU memory contents.
Impact
This is a potential high-severity security issue allowing cross-origin information disclosure. An attacker can read GPU memory that might contain sensitive data from other browser tabs, the OS compositor (e.g., UI fragments or desktop screenshots), or other processes. The GPU process is unsandboxed on Android and shared globally on other platforms.
Suggested Fix
Modify syncDirtyObjects to ensure that any new dirty bits set during the synchronization of earlier bits are also processed within the same pass (e.g., by re-evaluating mDirtyObjects or using a while loop instead of iterating over a single snapshot). Alternatively, TextureVk::initializeContents could be modified to immediately flush staged clears when robust resource initialization is enabled.
Evaluated with Chrome root at commit: 65b3256311f3ab6fb9870eaa522de7e6dd2663bb
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 a snapshot of the dirty-objects bitset is taken before the sync loop, so a new dirty flag raised as a side effect of processing an earlier flag is never handled in that pass.
Impact
This could disclose GPU memory contents from other tabs, the OS compositor or other processes, and the GPU process is unsandboxed on Android; the text notes no working proof of concept has been executed.
What the attacker needed
Ability to run WebGL content in the browser; victim visits attacker-controlled page; GPU memory previously held other data
The fix
The sync loop should keep processing newly raised dirty bits within the same pass, or the staged clear should be flushed immediately when robust resource initialisation is enabled.
How it was found
- Create a texture, fill it with data and draw once so all state is clean.
- Redefine the texture with the same size and format but no data, which allocates fresh uninitialised memory without marking the frontend texture dirty.
- Issue a draw call so the state synchronisation runs and takes its snapshot.
- Processing the texture-init flag stages a zero-clear and raises a further dirty flag through the observer chain.
- The loop finishes over the original snapshot, so the texture sync that would flush the clear is skipped.
- The draw executes and the shader samples the uninitialised memory, which the attacker reads back from the framebuffer.
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.
WebGL lets a web page draw 3D graphics, and the browser's graphics layer (ANGLE) is supposed to wipe new textures to zero so a page never sees leftover memory. Here, a bookkeeping mistake means the wipe is queued but never actually carried out before the page draws with the texture. The page could then read whatever was left in that graphics memory, which might belong to another site or another program.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.