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

Uninitialized Use in GPU (CVE-2026-10008)

The GLES2 validating command decoder fails to set the DRAW_BUFFERS state before lazily clearing integer renderbuffer attachments, so glClearBuffer calls become no-ops while the buffer is still marked as cleared. An attacker could then read uninitialized GPU memory containing residue from other processes or origins.

Google Chrome

Originally disclosed on Chrome VRP

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

Overview: The GLES2 validating command decoder fails to correctly configure the DRAW_BUFFERS state when lazily clearing integer renderbuffer attachments. This causes the initialization to be a no-op according to the OpenGL ES 3.0 specification while the buffer is still marked as cleared. Consequently, an attacker can read uninitialized GPU memory containing residue from other processes or origins.

Affected files:

  • gpu/command_buffer/service/framebuffer_manager.cc
  • gpu/command_buffer/service/gles2_cmd_decoder.cc

Estimated timestamp from git blame: 2016-02-22

Summary

A potential vulnerability in the GLES2 validating command decoder allows malicious WebGL2 content to disclose uninitialized GPU memory. The issue arises from a logic error in how integer renderbuffer attachments are lazily initialized. When the decoder attempts to clear an 'uncleared' integer renderbuffer, it fails to ensure that the corresponding attachment is active in the framebuffer's DRAW_BUFFERS state. Per the OpenGL ES 3.0 specification, glClearBuffer is a no-op for a specific draw buffer index if its state is set to GL_NONE. However, the decoder unconditionally marks these attachments as cleared, allowing subsequent read operations to leak stale VRAM contents.

Root Cause Analysis

In gpu/command_buffer/service/framebuffer_manager.cc, the function Framebuffer::ClearUnclearedIntRenderbufferAttachments iterates through attachments and attempts to clear uncleared integer renderbuffers:

C++
// gpu/command_buffer/service/framebuffer_manager.cc
void Framebuffer::ClearUnclearedIntRenderbufferAttachments(
    RenderbufferManager* renderbuffer_manager) {
  for (auto it = attachments_.begin(); it != attachments_.end(); ++it) {
    // ...
    GLint drawbuffer = it->first - GL_COLOR_ATTACHMENT0;
    if (GLES2Util::IsUnsignedIntegerFormat(internal_format)) {
      const GLuint kZero[] = { 0u, 0u, 0u, 0u };
      glClearBufferuiv(GL_COLOR, drawbuffer, kZero); // No-op if DRAW_BUFFER[drawbuffer] == NONE
    } else {
      // ...
      glClearBufferiv(GL_COLOR, drawbuffer, kZero);
    }
    it->second->SetCleared(renderbuffer_manager, nullptr, true); // Marked as cleared regardless
  }
}

According to the OpenGL ES 3.0.6 specification (Section 4.2.3, 'Clearing the Buffers'): "If the value of DRAW_BUFFERi is NONE, the corresponding index in the color buffer is not cleared."

The calling code in gpu/command_buffer/service/gles2_cmd_decoder.cc fails to update the DRAW_BUFFERS state before this loop. A comment in the source at line 7119 explicitly notes an incorrect assumption regarding this behavior:

// TODO(zmo): Assume DrawBuffers() does not affect ClearBuffer().

While PrepareDrawBuffersForClearingUninitializedAttachments is called later in the same function, it only applies to the standard glClear path for non-integer color attachments, leaving the integer glClearBuffer path vulnerable.

Potential Exploit Scenario

An attacker could potentially trigger this condition using the following suggested steps:

  1. Create a WebGL2 context (using the validating decoder, e.g., on certain Android devices).
  2. Create a Framebuffer Object (FBO) and an integer Renderbuffer (e.g., GL_RGBA8UI).
  3. Attach the Renderbuffer to GL_COLOR_ATTACHMENT1 (leaving COLOR_ATTACHMENT0 empty or using a different buffer).
  4. Ensure DRAW_BUFFER1 is set to GL_NONE. This is the default state for a new FBO (where only DRAW_BUFFER0 is GL_COLOR_ATTACHMENT0).
  5. Trigger a lazy clear by calling gl.readPixels from COLOR_ATTACHMENT1.
  6. The decoder's validation logic will call ClearUnclearedIntRenderbufferAttachments.
  7. The glClearBufferuiv call for index 1 will be a no-op because DRAW_BUFFER1 is GL_NONE.
  8. The renderbuffer will be marked as cleared, and glReadPixels will return uninitialized GPU memory, potentially containing data from other browser tabs or system processes.

Impact

This is a cross-origin information leak of GPU memory (VRAM). On Android, the GPU process is often unsandboxed, making this disclosure particularly sensitive as it may bypass certain process-level isolation. This impacts platforms where the validating command decoder is used (primarily Android and specific legacy configurations).

Suggested Fix

The decoder should ensure that the DRAW_BUFFERS state is correctly configured to enable the target attachment before calling glClearBufferiv or glClearBufferuiv. This could be achieved by using a mechanism similar to PrepareDrawBuffersForClearingUninitializedAttachments or by temporarily adjusting the draw buffers specifically for the integer clear path.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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 decoder calls glClearBuffer without ensuring the target draw buffer is enabled in DRAW_BUFFERS, so the clear is a no-op, yet the attachment is still marked as cleared.

Impact

This could leak GPU memory across origins, and on Android the GPU process is often unsandboxed, making the disclosure particularly sensitive.

What the attacker needed

WebGL2 support with validating decoder; primarily Android or legacy configurations

The fix

The decoder should configure DRAW_BUFFERS to enable the target attachment before calling glClearBufferiv or glClearBufferuiv.

How it was found

  1. Create a WebGL2 context using the validating decoder.
  2. Create a framebuffer object and an integer renderbuffer.
  3. Attach the renderbuffer to a colour attachment other than the default.
  4. Ensure the corresponding draw buffer is set to GL_NONE.
  5. Trigger a lazy clear by reading pixels from that attachment.
  6. The clear is a no-op but the buffer is marked cleared, so reading returns uninitialized 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 uses a graphics buffer for the first time, the system is supposed to wipe it clean so old data cannot be seen. Here, a mistake meant the wipe did not actually happen, but the system still believed it had. As a result, a malicious web page could read leftover memory from other programs.

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.