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

Uninitialized Use in ANGLE (CVE-2026-11123)

A logic error in ANGLE's texture state management causes the aggregate initialization state to be incorrectly set to Initialized when only one mip level is updated, bypassing robust resource initialization checks. This could allow a WebGL application to sample uninitialized GPU memory and leak it to JavaScript via readPixels.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 54 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 Texture::signalDirtyStorage incorrectly clobbers a texture's aggregate initialization state when a single mip level is updated. This bypasses robust resource initialization checks, potentially allowing standard WebGL applications to sample uninitialized GPU memory.

Affected files:

  • third_party/angle/src/libANGLE/Texture.cpp
  • third_party/angle/src/libANGLE/State.cpp
  • third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cpp
  • third_party/angle/src/libANGLE/Texture.h

Estimated timestamp from git blame: 2021-10-25

Summary

There is a potential vulnerability in ANGLE's texture state management that allows for the bypass of robust resource initialization. By updating a single mip level of a texture with data, the texture's aggregate initialization state (mState.mInitState) is unconditionally set to Initialized, even if other mip levels remain uninitialized (MayNeedInit). This leads to uninitialized GPU memory being accessible via shader sampling, as the frontend's initialization checks are bypassed and backends (like Vulkan) rely on the frontend for clearing.

Root Cause Analysis

When setting image data via functions like Texture::setImage, ANGLE calculates whether the level needs initialization via DetermineInitState.

C++
    InitState initState = DetermineInitState(context, unpackBuffer, pixels);
    mState.setImageDesc(target, level, ImageDesc(size, Format(internalFormat, type), initState));

TextureState::setImageDesc updates the specific level's state. Crucially, it only promotes the aggregate mInitState to Initialized if all levels are initialized:

C++
        bool allImagesInitialized = true;
        for (const ImageDesc &initDesc : mImageDescs) {
            if (initDesc.initState == InitState::MayNeedInit) {
                allImagesInitialized = false;
                break;
            }
        }
        if (allImagesInitialized) mInitState = InitState::Initialized;

However, immediately after setImageDesc, Texture::setImage calls signalDirtyStorage:

C++
    signalDirtyStorage(initState);

Inside Texture::signalDirtyStorage, the aggregate state is unconditionally clobbered by the state of the single level just updated:

C++
void Texture::signalDirtyStorage(InitState initState)
{
    mState.mInitState = initState; // <-- The Flaw
    // ...
}

If level 0 is allocated without data (MayNeedInit), and then level 1 is allocated with data (Initialized), signalDirtyStorage forcibly sets the entire texture's state to Initialized.

When a draw call occurs, State::syncTexturesInit invokes Texture::ensureInitialized(const Context *context). Because mState.mInitState was incorrectly clobbered, this function early-returns:

C++
    if (!context->isRobustResourceInitEnabled() || mState.mInitState == InitState::Initialized)
    {
        return angle::Result::Continue;
    }

The uninitialized base level is never zero-cleared. Since backends (e.g., ImageHelper::stageClearIfEmulatedFormat in Vulkan) trust the frontend when robust initialization is enabled, the memory remains uninitialized.

Proposed Attack Scenario

Note: These are suggested steps to trigger the vulnerability; a working proof-of-concept has not been verified via execution.

  1. Allocate uninitialized level: Create a WebGL texture and call gl.texImage2D for level 0 with pixels=null. This sets level 0's state to MayNeedInit.
  2. Clobber aggregate state: Call gl.texImage2D for level 1 with a valid Uint8Array. This triggers signalDirtyStorage(Initialized), incorrectly promoting the texture's overall state to Initialized.
  3. Set completeness: Set gl.TEXTURE_MIN_FILTER and gl.TEXTURE_MAG_FILTER to gl.NEAREST so the texture is "complete" and samplable using only the base level (level 0).
  4. Sample and Leak: Create an FBO, bind a fragment shader that samples from level 0, and draw. The shader reads uninitialized GPU heap memory.
  5. Exfiltration: Call gl.readPixels on the FBO to retrieve the stale GPU memory into JavaScript, resulting in a cross-origin/cross-process information leak.

Suggested Fix

Remove the mState.mInitState = initState; assignment from Texture::signalDirtyStorage. The aggregate initialization state should be strictly managed by TextureState::setImageDesc (or a dedicated state update function that evaluates the whole mip chain), ensuring that mInitState only becomes Initialized when no levels remain as MayNeedInit.

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 `Texture::signalDirtyStorage` unconditionally sets the texture's overall initialization state to the state of the single mip level being updated, overriding the correct aggregate state computed by `TextureState::setImageDesc`.

Impact

Could allow a WebGL application to read uninitialized GPU memory, potentially leaking sensitive data across origins or processes.

What the attacker needed

WebGL support with robust resource initialization enabled; Ability to run JavaScript in a browser

The fix

The assignment that clobbers the aggregate state should be removed, and the aggregate initialization state should be managed solely by the function that evaluates the whole mip chain.

How it was found

  1. Create a WebGL texture and allocate level 0 without providing pixel data, so it is marked as needing initialization.
  2. Allocate level 1 with valid pixel data, which incorrectly sets the whole texture's state to initialized.
  3. Set the texture filtering parameters so that the texture is considered complete and can be sampled using only level 0.
  4. Render a draw call that samples from level 0 into a framebuffer object.
  5. Read back the pixels from the framebuffer to obtain the 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.

When a texture is created, some parts may not be filled with data yet. The browser is supposed to clear those parts to zero to avoid leaking old memory. A mistake in the code that tracks whether a texture is fully initialized causes the browser to skip that clearing, so a malicious website could read leftover data from the graphics card.

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.