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

Uninitialized Use in GPU (CVE-2026-13950)

The GLES2 passthrough decoder's EnsureClear function does not disable GL_RASTERIZER_DISCARD before issuing a glClear, so a compromised renderer can enable that state to skip the mandatory memory clear while the GPU process still marks the SharedImage as cleared. The renderer can then read uninitialized GPU memory that may contain data from other tabs or processes.

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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The GLES2 passthrough decoder fails to disable GL_RASTERIZER_DISCARD during its internal SharedImage initialization clears. A compromised renderer can exploit this by enabling the discard state to silently skip mandatory memory clearing, allowing it to exfiltrate uninitialized GPU memory.

Affected files:

  • gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc
  • gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc

Estimated timestamp from git blame: 2019-12-19

Summary

A potential security vulnerability exists in PassthroughResources::SharedImageData::EnsureClear within the GLES2 passthrough decoder. This function is responsible for ensuring that SharedImage textures are cleared (zeroed out) before being accessed by a renderer, preventing the disclosure of uninitialized GPU memory (VRAM residue). However, the implementation does not ensure that the GL_RASTERIZER_DISCARD state is disabled before issuing the glClear command.

In OpenGL ES 3.0 and its implementation in ANGLE, the glClear operation is explicitly discarded or becomes a no-op if GL_RASTERIZER_DISCARD is enabled. Because the passthrough decoder shares the same GL context state as the renderer, a compromised renderer can enable this state to bypass the mandatory initialization clear. The GPU process subsequently marks the SharedImage as cleared, allowing the renderer to read potentially sensitive cross-origin data from the uninitialized backing memory.

Root Cause Analysis

The vulnerability is located in gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc within the EnsureClear function:

C++
void PassthroughResources::SharedImageData::EnsureClear(
    const GLES2DecoderPassthroughImpl* impl) {
  if (!representation_->IsCleared()) {
    // ... state resets ...
    ScopedScissorTestReset scissor_test_reset(api);
    // Missing: reset for GL_RASTERIZER_DISCARD

    // ... FBO setup ...

    api->glClearFn(GL_COLOR_BUFFER_BIT); // No-op if RASTERIZER_DISCARD is enabled

    if (api->glCheckFramebufferStatusEXTFn(GL_FRAMEBUFFER) ==
        GL_FRAMEBUFFER_COMPLETE) {
      representation_->SetCleared(); // Mark as cleared even if glClear was skipped
    }
    // ...
  }
}

Unlike the validating decoder (GLES2DecoderImpl), which explicitly handles GL_RASTERIZER_DISCARD during its clear routines (see gpu/command_buffer/service/gles2_cmd_decoder.cc:7096), the passthrough decoder lacks this protection. This is particularly significant because ANGLE's Context::clear implementation (used by the passthrough decoder) contains an explicit early return when this state is enabled (third_party/angle/src/libANGLE/Context.cpp:4987).

Potential Attack Sequence

Note: These are suggested steps for triggering the vulnerability; our analysis is based on code review without a running proof-of-concept.

  1. A compromised renderer enables rasterizer discard using glEnable(GL_RASTERIZER_DISCARD).
  2. The renderer creates a new SharedImage (e.g., via CreateSharedImage) which is initially uncleared.
  3. The renderer consumes this SharedImage (e.g., via CreateAndTexStorage2DSharedImageINTERNAL), triggering the vulnerable EnsureClear call in the GPU process.
  4. EnsureClear issues a glClear that ANGLE ignores due to the GL_RASTERIZER_DISCARD state, but the GPU process still marks the image as cleared.
  5. The renderer disables discard and reads from the texture (e.g., via glReadPixels or shader sampling), obtaining uninitialized VRAM residue.

Impact

This is a high-severity information disclosure vulnerability. Successful exploitation allows a compromised renderer to leak stale VRAM contents, which may contain sensitive data such as rendered frames or compositor tiles from other browser tabs or system processes.

Suggested Fix

Implement a ScopedRasterizerDiscardReset helper class in gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc that queries and disables GL_RASTERIZER_DISCARD if supported (GLES 3.0+), and use this helper in EnsureClear to ensure the clear operation is always performed.

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

Likely the passthrough decoder's EnsureClear does not reset the GL_RASTERIZER_DISCARD state before calling glClear, and ANGLE treats glClear as a no-op when that state is enabled, yet the image is still marked as cleared.

Impact

A compromised renderer could leak stale VRAM contents that may contain sensitive data such as rendered frames or compositor tiles from other browser tabs or system processes.

What the attacker needed

Compromised renderer; GLES 3.0+ context

The fix

A helper should be added that queries and disables GL_RASTERIZER_DISCARD if supported, and EnsureClear should use it so the clear always runs.

How it was found

  1. A compromised renderer enables rasterizer discard.
  2. The renderer creates a new SharedImage that is initially uncleared.
  3. The renderer consumes the SharedImage, triggering EnsureClear in the GPU process.
  4. EnsureClear issues a glClear that ANGLE ignores, but the image is marked as cleared.
  5. The renderer disables discard and reads from the texture, obtaining uninitialized VRAM residue.

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 the graphics card for a new image, the browser is supposed to wipe that memory first so old data from other tabs cannot leak. Here, a renderer (the part that runs web page code) can flip a graphics setting that makes the wipe silently do nothing, yet the browser still believes the memory is clean. A malicious page could then read leftover graphics memory.

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.