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

Uninitialized Use in ANGLE (CVE-2026-11109)

ANGLE's native OpenGL backend fails to disable GL_RASTERIZER_DISCARD before performing robust resource initialization clears, so the driver ignores the clear while ANGLE marks the buffer as initialized. An attacker could then read uninitialized GPU memory, potentially leaking data from other contexts.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 56 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 native OpenGL backend allows robust resource initialization to be bypassed when GL_RASTERIZER_DISCARD is enabled. This results in the driver ignoring glClear commands while the front-end marks the buffer as initialized, potentially leading to the disclosure of uninitialized GPU memory.

Affected files:

  • third_party/angle/src/libANGLE/renderer/gl/BlitGL.cpp
  • third_party/angle/src/libANGLE/renderer/gl/FramebufferGL.cpp
  • third_party/angle/src/libANGLE/renderer/gl/RenderbufferGL.cpp
  • third_party/angle/src/libANGLE/renderer/gl/StateManagerGL.cpp
  • third_party/angle/src/libANGLE/Framebuffer.cpp
  • third_party/angle/src/libANGLE/Context.cpp

Estimated timestamp from git blame: 2018-12-06

Summary

The ANGLE native OpenGL backend fails to disable GL_RASTERIZER_DISCARD before performing robust resource initialization clears. This leads to a situation where the driver ignores the clear command (per the OpenGL specification), but ANGLE's state tracking incorrectly marks the resource as initialized. This bypasses the security guarantee that all allocated GPU memory is zero-initialized before use, leading to a potential cross-origin information leak of recycled GPU VRAM.

Details

In ANGLE, robust resource initialization ensures that newly allocated textures, renderbuffers, and framebuffers are cleared to zero before they are accessed by a WebGL context. On the native GL backend, this is handled by BlitGL.cpp through functions like clearFramebuffer.

These functions rely on SetClearState (third_party/angle/src/libANGLE/renderer/gl/BlitGL.cpp:139-167) to configure the OpenGL state for the clear operation. However, SetClearState fails to explicitly disable GL_RASTERIZER_DISCARD.

Crucially, during Context::prepareForDraw (third_party/angle/src/libANGLE/Context.inl.h), syncDirtyObjects (which triggers robust resource initialization) is called before syncDirtyBits (which pushes context state to the native driver). This means if a user previously enabled rasterizer discard and latched it to the driver, that state remains active in the native driver when ensureDrawAttachmentsInitialized triggers a clear via BlitGL.

Per the OpenGL specification, when GL_RASTERIZER_DISCARD is enabled, glClear and glClearBuffer* commands are silently ignored by the driver.

As a result, the robust initialization clear is skipped by the driver, but ANGLE incorrectly marks the resource as initialized. An attacker can then disable rasterizer discard and read the uninitialized GPU memory.

Potential Reproduction Steps

Note: These steps describe the theoretical path an attacker would take to trigger this issue. A working PoC has not been executed in this environment.

  1. Initialize a WebGL2 context using the ANGLE native-GL backend.
  2. Enable rasterizer discard: gl.enable(gl.RASTERIZER_DISCARD).
  3. Perform a dummy draw call to push the GL_RASTERIZER_DISCARD state to the native driver.
  4. Create a new FBO with a fresh, uninitialized color renderbuffer and bind it.
  5. Perform a draw call (e.g., gl.drawArrays(gl.TRIANGLES, 0, 3)).
    • ANGLE's prepareForDraw calls syncDirtyObjects, which attempts robust initialization via BlitGL::clearFramebuffer.
    • Because GL_RASTERIZER_DISCARD is still active natively, the driver ignores the glClear command.
    • ANGLE incorrectly marks the FBO attachments as InitState::Initialized.
  6. Disable rasterizer discard: gl.disable(gl.RASTERIZER_DISCARD).
  7. Call gl.readPixels on the FBO. Because it is marked as initialized, ANGLE allows the read, returning uninitialized, recycled GPU memory.

Suggested Fix

Modify SetClearState in third_party/angle/src/libANGLE/renderer/gl/BlitGL.cpp to explicitly disable GL_RASTERIZER_DISCARD before any clearing operations are performed:

C++
angle::Result SetClearState(StateManagerGL *stateManager,
                            bool colorClear,
                            bool depthClear,
                            bool stencilClear,
                            GLbitfield *outClearMask)
{
    // ... existing code ...
    stateManager->setScissorTestEnabled(false);
    stateManager->setRasterizerDiscardEnabled(false); // Add this line

    return angle::Result::Continue;
}

Evaluated with Chrome root at commit: 137d451a126685dd5010e6609db9f6d4a78d8234


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 clear routine does not disable GL_RASTERIZER_DISCARD, so the driver ignores the clear while ANGLE's state tracking marks the resource as initialized.

Impact

An attacker could read uninitialized GPU memory, potentially disclosing data from other contexts; the report notes a working proof of concept has not been executed.

What the attacker needed

WebGL2 context with ANGLE native-GL backend; Ability to enable rasterizer discard

The fix

The clear routine should explicitly disable GL_RASTERIZER_DISCARD before performing any clearing operations.

How it was found

  1. Initialize a WebGL2 context using the ANGLE native-GL backend.
  2. Enable rasterizer discard.
  3. Perform a dummy draw call to push the rasterizer discard state to the native driver.
  4. Create a new framebuffer with a fresh, uninitialized color renderbuffer and bind it.
  5. Perform a draw call, which triggers robust initialization but the driver ignores the clear due to rasterizer discard.
  6. Disable rasterizer discard and read pixels from the framebuffer, returning 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 program asks for new graphics memory, the system should wipe it clean first so no leftover data from other programs is visible. Here, a setting called 'rasterizer discard' made the graphics driver skip that wipe, but the software still thought the memory was clean. That could let a malicious website read whatever was left in that memory from before.

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.