Skip to content
Info disclosure Advisory Advanced CVE-2026-9935

Uninitialized Use in ANGLE (CVE-2026-9935)

A logic error in ANGLE's OpenGL backend causes a texture's global initialization state to be marked as initialized after a framebuffer status check, even though the texture's memory was never cleared. This could allow a WebGL application to read uninitialized GPU memory, potentially disclosing cross-origin data such as compositor tiles or video frames.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 47 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 ANGLE's OpenGL backend potentially allows WebGL applications to bypass robust resource initialization and read uninitialized GPU memory. Calling glCheckFramebufferStatus on an FBO with a dirty texture attachment improperly sets the texture's global state to initialized. This causes subsequent draw calls to skip clearing the texture, potentially disclosing cross-origin VRAM contents.

Affected files:

  • third_party/angle/src/libANGLE/Texture.cpp
  • third_party/angle/src/libANGLE/Framebuffer.cpp
  • third_party/angle/src/libANGLE/renderer/gl/FramebufferGL.cpp
  • third_party/angle/src/libANGLE/renderer/gl/TextureGL.cpp
  • third_party/angle/src/libANGLE/State.cpp
  • third_party/angle/src/libANGLE/FramebufferAttachment.cpp

Estimated timestamp from git blame: 2021-08-16

Summary

A potential logic error in ANGLE's OpenGL backend allows WebGL renderers to bypass robust resource initialization. This vulnerability can lead to the disclosure of uninitialized GPU memory (VRAM), which may contain sensitive cross-origin data such as compositor tiles, video frames, or canvas contents from other processes.

Technical Details

When robust_resource_initialization is enabled, ANGLE defers the zero-clearing of new textures for performance reasons. The texture is allocated but its state is marked as InitState::MayNeedInit. The actual clearing is performed just-in-time before a draw or read operation.

However, a bypass exists in how Framebuffer Object (FBO) status checks are handled in the GL backend. When glCheckFramebufferStatus is called, gl::Framebuffer::checkStatusImpl checks if backend synchronization is required. For the GL backend, rx::FramebufferGL::shouldSyncStateBeforeCheckStatus() unconditionally returns true.

This forces a call to syncAllDrawAttachmentState, which iterates through attachments. If an attached texture has any dirty bits (e.g., from a modified texture parameter), it calls gl::Texture::syncState (third_party/angle/src/libANGLE/Texture.cpp).

The vulnerability is located at the end of gl::Texture::syncState:

C++
angle::Result Texture::syncState(const Context *context, Command source)
{
    ASSERT(hasAnyDirtyBit() || source == Command::GenerateMipmap);
    ANGLE_TRY(mTexture->syncState(context, mDirtyBits, source));
    mDirtyBits.reset();
    mState.mInitState = InitState::Initialized; // <-- Flaw
    return angle::Result::Continue;
}

Here, mState.mInitState is unconditionally marked as Initialized. The GL backend's syncState routine only synchronizes state parameters (like filters) and does not perform the robust resource clearing.

This creates a dangerous state mismatch: the texture's global mState.mInitState claims the texture is clean, while the underlying per-level ImageDesc states and actual VRAM remain uninitialized. When the texture is subsequently bound as a sampler for a draw call, Texture::ensureInitialized uses the global mState.mInitState as a fast-path optimization, returns early, and completely skips the initialization step.

Potential Reproduction Steps

Note: These are suggested steps based on static analysis. Our tooling agent cannot dynamically run code to verify them.

  1. In a browser using the ANGLE GL backend, create a WebGL context.
  2. Create a WebGL texture and allocate empty storage: gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 1024, 1024, 0, gl.RGBA, gl.UNSIGNED_BYTE, null).
  3. Modify a texture parameter to set a dirty bit: gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST).
  4. Create a Framebuffer Object (FBO) and attach the texture to it.
  5. Call gl.checkFramebufferStatus(gl.FRAMEBUFFER). This triggers the sync logic and improperly marks the texture as initialized.
  6. Bind the default framebuffer (the canvas).
  7. Draw a full-screen quad using the poisoned texture as the source sampler. The shader will sample directly from uninitialized VRAM.
  8. Call gl.readPixels() on the default canvas to capture the leaked VRAM contents.

Suggested Fix

Remove the unconditional mState.mInitState = InitState::Initialized; assignment from gl::Texture::syncState in third_party/angle/src/libANGLE/Texture.cpp.

Synchronizing dirty state bits (like texture parameters) should not implicitly fulfill the robust resource initialization requirements. If syncState needs to update the global initialization state, it should strictly re-derive it by checking the initialization status of all its underlying ImageDesc components.

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, the function that synchronises texture state unconditionally sets the global initialization state to 'Initialized' without actually clearing the texture's memory, creating a mismatch with the per-level image states.

Impact

A WebGL application could potentially read uninitialized GPU memory, which may contain sensitive cross-origin data such as compositor tiles, video frames, or canvas contents from other processes.

What the attacker needed

Browser using ANGLE GL backend; WebGL support; victim visits malicious page

The fix

The unconditional assignment of the global initialization state in Texture::syncState should be removed, and the state should be re-derived from the underlying image descriptions.

How it was found

  1. Create a WebGL context in a browser using the ANGLE GL backend.
  2. Create a WebGL texture and allocate empty storage with texImage2D.
  3. Modify a texture parameter to set a dirty bit.
  4. Create a Framebuffer Object and attach the texture to it.
  5. Call checkFramebufferStatus on the framebuffer, which triggers the sync logic and improperly marks the texture as initialized.
  6. Bind the default framebuffer, draw a full-screen quad using the texture as a sampler, and call readPixels to capture the leaked VRAM contents.

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 creates a new texture in graphics memory, it is supposed to clear it first so that old data from other programs cannot be read. A bug in the graphics library ANGLE makes the program think the texture is already cleared after a certain check, so it skips the clearing step. An attacker could then draw with that texture and read back whatever leftover data was in memory, which might belong to other websites or applications.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.