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

Uninitialized Use in GPU (CVE-2026-13023)

GLTextureImageBacking and EGLImageBacking mark a texture as cleared even when the initial pixel upload call fails, leaving uninitialized VRAM. A compromised renderer could read back that memory and potentially disclose cross-origin graphics data.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 28 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: GLTextureImageBacking and EGLImageBacking do not validate the success of glTexSubImage2D during initial pixel data upload, yet they unconditionally mark the backing as cleared. If the initial pixel upload fails under memory or resource pressure, the backing retains uninitialized VRAM storage. A compromised renderer can subsequently read back this uninitialized memory, potentially disclosing cross-origin graphics data.

Affected files:

  • gpu/command_buffer/service/shared_image/gl_texture_image_backing.cc
  • gpu/command_buffer/service/shared_image/gl_texture_holder.cc
  • gpu/command_buffer/service/shared_image/egl_image_backing.cc

Estimated timestamp from git blame: 2018-12-11

Description

There is a potential information disclosure vulnerability in GLTextureImageBacking and EGLImageBacking where texture storage allocation and initial pixel upload are executed as separate GL calls without verifying the success of the upload before marking the backing as cleared.

Because the GL context used for these operations is created with robust resource initialization disabled (to optimize performance), newly allocated texture memory is not automatically cleared by the graphics driver. If the subsequent pixel upload call fails, the texture retains its uninitialized VRAM contents, which may contain graphics residue from other processes or tabs. However, because the failure is not caught, the backing is still marked as cleared, bypassing safety checks during subsequent readback operations.

Code Analysis

1. GLTextureImageBacking Initialization Path

In gpu/command_buffer/service/shared_image/gl_texture_image_backing.cc (lines 495-516), GLTextureImageBacking::InitializeGLTexture initializes the underlying texture and unconditionally calls SetCleared() if pixel_data is not empty:

C++
void GLTextureImageBacking::InitializeGLTexture(...) {
  ...
  for (int plane = 0; plane < num_planes; ++plane) {
    textures_[plane].Initialize(format_info[plane],
                                framebuffer_attachment_angle, pixel_data,
                                debug_label);
  }
  if (!pixel_data.empty()) {
    SetCleared(); // Unconditionally called
  }
}

Inside GLTextureHolder::Initialize (gpu/command_buffer/service/shared_image/gl_texture_holder.cc, lines 195-208), the backing allocates storage using glTexStorage2DEXT and attempts to upload initial pixels using glTexSubImage2D back-to-back with no error validation:

C++
api->glTexStorage2DEXTFn(format_desc_.target, /*levels=*/1,
                         format_info.adjusted_storage_internal_format,
                         size_.width(), size_.height());
if (!pixel_data.empty()) {
  ScopedUnpackState scoped_unpack_state(/*uploading_data=*/true);
  api->glTexSubImage2DFn(format_desc_.target, /*level=*/0, /*xoffset=*/0,
                         /*yoffset=*/0, size_.width(), size_.height(),
                         format_info.adjusted_format,
                         format_desc_.data_type, pixel_data.data()); // Unchecked
}

2. EGLImageBacking Sibling Generation Path

Similarly, on the Android DrDC path in EGLImageBacking::GenEGLImageSibling (gpu/command_buffer/service/shared_image/egl_image_backing.cc, lines 423-434), texture storage is allocated and uploaded without error validation:

C++
api->glTexStorage2DEXTFn(target, 1,
                         format_info.adjusted_storage_internal_format,
                         plane_size.width(), plane_size.height());
if (!pixel_data.empty()) {
  CHECK_EQ(plane, 0);
  ScopedUnpackState scoped_unpack_state(/*uploading_data=*/true);
  api->glTexSubImage2DFn(target, 0, 0, 0, plane_size.width(),
                         plane_size.height(), format_info.adjusted_format,
                         format_info.gl_type, pixel_data.data()); // Unchecked
}

Control then returns to EGLImageBacking::GenEGLImageSiblings where SetCleared() is called unconditionally if pixel_data is not empty (line 530).

Potential Mechanism & Exploitation

Under normal conditions, the graphics driver allocates VRAM during the first call, and the second call populates it. However, if the glTexSubImage2D call fails (for example, due to a GL_OUT_OF_MEMORY error when allocating the host-side staging buffer or driver-level upload failure under memory pressure), the upload is a no-op, and the texture retains its uninitialized contents.

Since read-access gates (such as GLTextureImageRepresentationBase::BeginScopedAccess) only verify IsCleared(), the uninitialized texture bypasses zero-clearing mechanisms and becomes readable. A compromised renderer could potentially retrieve this uninitialized VRAM content, disclosing cross-origin graphics residue.

Note: These steps are based on static analysis of the source code. Our tooling does not currently have the capability to run code or execute a live proof of concept.

Suggested Fix

Verify that the pixel data upload operation succeeded before marking the backing as cleared. This can be achieved by checking the return status of the upload (if applicable), querying for GL errors during or after the upload, or enforcing zero-clearing initialization if the upload fails.

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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 code does not check whether the initial pixel upload succeeded before calling SetCleared(), so a failed upload leaves uninitialized texture memory that is still treated as cleared.

Impact

A compromised renderer could potentially read uninitialized VRAM and disclose cross-origin graphics residue, but the report is based on static analysis and no live proof of concept was run.

What the attacker needed

A compromised renderer; memory or resource pressure causes upload failure

The fix

The upload should be checked for success before the backing is marked as cleared, or zero-clearing should be enforced if the upload fails.

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 new memory, it should fill it with known data before anyone can read it. Here, if that filling step fails, the program still treats the memory as safe to read, so old leftover data from other tabs could be exposed. The report is based on reading the code, not on running an actual attack.

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.