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

Uninitialized resource in ANGLE (CVE-2026-79120)

ANGLE's front-end marks textures and framebuffer attachments as initialized before the backend write or clear actually succeeds, so a failed backend operation leaves the resource flagged as initialized while its GPU memory is unwritten. An attacker who can force a non-OOM backend error could then sample or read back recycled GPU memory, potentially leaking cross-origin data.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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 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: ANGLE's front-end robust resource initialization logic marks textures and framebuffers as initialized before executing the underlying backend operation. If the backend operation fails, the resource's state remains marked as initialized despite the GPU memory being unwritten. This could allow an attacker to sample uninitialized GPU memory, leading to a potential cross-origin information leak.

Affected files:

  • third_party/angle/src/libANGLE/Texture.cpp
  • third_party/angle/src/libANGLE/Framebuffer.cpp
  • third_party/angle/src/libANGLE/Context.cpp

Estimated timestamp from git blame: Unknown (Google3 checkout)

Root Cause Analysis

In ANGLE's front-end, the robust-resource-init feature tracks whether a resource (like a texture level or a framebuffer attachment) has been initialized to prevent reading uninitialized GPU memory. A logic flaw exists where the front-end commits the InitState::Initialized state before the backend implementation executes the write. If the backend operation subsequently fails, the resource is falsely flagged as initialized.

Texture Initialization

In third_party/angle/src/libANGLE/Texture.cpp, ensureSubImageInitialized is called before dispatching to the backend at sub-image entry points (e.g., setSubImage).

C++
angle::Result Texture::ensureSubImageInitialized(..., const Box &area) {
    if (doesSubImageNeedInit(context, imageIndex, area)) {
        ANGLE_TRY(initializeContents(context, GL_NONE, imageIndex));
    }
    setInitState(GL_NONE, imageIndex, InitState::Initialized); // Always committed
    return angle::Result::Continue;
}

When an attacker issues an upload that exactly covers the full extent of the resource, doesSubImageNeedInit returns false, bypassing explicit zero-fill initialization. setInitState(Initialized) is then unconditionally called, expecting the backend to fully overwrite the texture.

Subsequently, Texture::setSubImage calls mTexture->setSubImage(...). If this backend operation fails (returning an error), the ANGLE_TRY macro aborts the function. However, the InitState::Initialized state is never rolled back.

Framebuffer Initialization

A similar pattern exists in third_party/angle/src/libANGLE/Framebuffer.cpp within ensureClearAttachmentsInitialized. The front-end marks attachments as initialized before calling the backend's clear method. A comment in the code explicitly acknowledges this:

// If the impl encounters an error during a a full (non-partial) clear, the attachments will // still be marked initialized. This simplifies design, allowing this method to be called before // the clear.

Impact

If an attacker can induce a backend failure during a full-resource upload or clear, the resource's GPU memory remains completely uninitialized but ANGLE considers it initialized. Subsequent sampling or readPixels operations will bypass zero-fill mitigations, allowing the attacker to read recycled GPU memory. This memory may contain cross-origin data, leading to an information leak.

Crucially, while an Out-Of-Memory (OOM) error typically triggers context loss (mitigating the leak), a non-OOM error does not. For example, in the Metal backend (TextureMtl.mm), ANGLE_CHECK_GL_MATH is used to validate pitch and skip bytes. If these calculations overflow, a GL_INVALID_OPERATION is generated. According to ErrorSet::handleError in Context.cpp, GL_INVALID_OPERATION does not trigger context loss. The WebGL context survives, allowing the attacker to read the uninitialized texture.

Suggested Steps to Trigger (Potential)

Note: These are potential steps as our tooling agent cannot execute code to verify them.

  1. Establish a WebGL context in a browser window.
  2. Create a texture and allocate its storage using gl.texStorage2D(). Its state is MayNeedInit.
  3. Issue a gl.texSubImage2D() call where the upload area exactly matches the entire texture dimensions.
  4. Craft the parameters (e.g., unpack alignment, row length, or offsets) such that they pass front-end validation but cause an integer overflow or validation failure in the specific backend implementation (e.g., triggering ANGLE_CHECK_GL_MATH in Metal's setSubImageImpl).
  5. The front-end marks the texture as Initialized, but the backend fails and returns GL_INVALID_OPERATION.
  6. Because the error is not an OOM, the context survives.
  7. Execute gl.readPixels() or sample the texture in a shader. Because the state is Initialized, ANGLE permits the read without zeroing the memory, exposing uninitialized GPU memory.

Proposed Fix

Do not commit the InitState::Initialized state until the backend operation has successfully completed. This could be achieved by modifying ensureSubImageInitialized and ensureClearAttachmentsInitialized to return a state update token or an RAII helper that only applies the Initialized state upon successful return of the surrounding function. Alternatively, move the setInitState calls to occur immediately after the ANGLE_TRY(mTexture->setSubImage(...)) and ANGLE_CONTEXT_TRY(mState.getDrawFramebuffer()->clear(...)) calls succeed.

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.

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

The front-end sets the resource's init state to Initialized before dispatching the backend write or clear, and never rolls it back when the backend call fails.

Impact

Could allow an attacker to read recycled GPU memory that may contain cross-origin data; an OOM error would trigger context loss and block this, but a non-OOM error such as GL_INVALID_OPERATION does not, so the leak is only reachable on backends where such a failure can be induced.

What the attacker needed

WebGL context in a browser; backend that can fail without context loss; crafted upload parameters

The fix

The init state should only be committed after the backend operation succeeds, for example by moving the setInitState calls after the backend setSubImage and clear calls return successfully.

How it was found

  1. Establish a WebGL context in a browser window.
  2. Create a texture and allocate its storage with texStorage2D, leaving it in the MayNeedInit state.
  3. Issue a texSubImage2D upload whose area exactly matches the whole texture.
  4. Craft parameters that pass front-end validation but cause an integer overflow or validation failure in the backend.
  5. The front-end marks the texture Initialized while the backend returns GL_INVALID_OPERATION, and the context survives because the error is not an OOM.
  6. Read the texture back with readPixels or sample it in a shader 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.

A graphics library keeps a note saying 'this texture has been filled in' so it never hands out leftover memory from other programs. Here it writes that note before the actual filling happens, so if the filling fails the note is still there and the browser hands back memory that was never cleared. That leftover memory could contain data from another website.

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.