Uninitialized Use in GPU (CVE-2026-7955)
The GPU process's EnsureClear function fails to check for OpenGL errors when attaching a GL_TEXTURE_EXTERNAL_OES texture to a framebuffer, so the clear silently fails but the memory is still marked as cleared. A compromised renderer could then sample uninitialised GPU memory, potentially disclosing data from other processes or origins.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 41 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A compromised renderer can potentially read uninitialized GPU memory by creating a SharedImage with prefers_external_sampler=true. The GPU process's EnsureClear function fails to clear GL_TEXTURE_EXTERNAL_OES textures on certain platforms due to silent GL attachment failures, but still marks them as cleared. The renderer can then sample the uncleared memory, leading to cross-origin or cross-process information disclosure.
Affected files:
gpu/command_buffer/service/gles2_cmd_decoder_passthrough.ccgpu/ipc/service/shared_image_stub.ccgpu/command_buffer/service/shared_image/ozone_image_backing_factory.ccgpu/command_buffer/service/shared_image/ozone_image_gl_textures_holder.cc
Estimated timestamp from git blame: 2022-07-21
Vulnerability Details
There is a potential high-severity information disclosure vulnerability in the GPU process. Specifically, the function PassthroughResources::SharedImageData::EnsureClear() in gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc fails to handle OpenGL errors when attempting to clear uninitialized SharedImage backing memory.
When a SharedImage is created with the prefers_external_sampler flag set to true, its underlying OpenGL texture is initialized with the GL_TEXTURE_EXTERNAL_OES target (see OzoneImageGLTexturesHolder). Later, to prevent uninitialized memory from being exposed to the renderer, the command buffer invokes EnsureClear().
Inside EnsureClear():
- A temporary Framebuffer Object (FBO) is generated.
- The code attempts to attach the texture to the FBO:
api->glFramebufferTexture2DEXTFn(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, texture->target(), texture->service_id(), 0); - It issues a
glClearcommand. - It unconditionally executes
representation_->SetCleared(), marking the memory as safe for renderer consumption.
However, on certain platforms (such as Linux and ChromeOS using ANGLE-on-Vulkan), attaching a GL_TEXTURE_EXTERNAL_OES texture to an FBO is unsupported unless the GL_EXT_YUV_target extension is fully supported and enabled. In environments where it is not, the glFramebufferTexture2DEXTFn call silently fails and raises a GL_INVALID_OPERATION error. The FBO remains incomplete, causing the subsequent glClear to act as a silent no-op. Because EnsureClear() performs no error checking (e.g., glCheckFramebufferStatusEXT or glGetError), the uninitialized buffer is incorrectly marked as cleared.
Suggested Steps to Trigger
Note: These are potential steps suggested by our setup, which does not currently have the ability to run code to verify a working proof of concept.
- Compromise Renderer: An attacker gains arbitrary code execution within the sandboxed renderer process.
- Send IPC Request: The attacker crafts a
CreateSharedImageIPC request. They specify a multi-planar format (e.g.,NV12) and manually set theprefers_external_samplerflag totrue. - Bypass OS Constraints: On non-Windows/Apple platforms (e.g., Linux/Ozone),
SharedImageStub::CreateSharedImagedoes not block theprefers_external_samplerflag, allowing the request to proceed. - Allocate Uninitialized Memory: The
OzoneImageBackingFactoryallocates a fresh native pixmap (e.g., a dma-buf) containing uninitialized memory that may hold stale data from other processes or origins. - Trigger EnsureClear: The renderer sends a
CreateAndTexStorage2DSharedImageINTERNALcommand. The GPU process maps the mailbox and triggersPassthroughResources::SharedImageData::EnsureClear(). - Silent Failure: The FBO attachment fails silently due to the
GL_TEXTURE_EXTERNAL_OEStarget, the clear acts as a no-op, and the uninitialized image is marked ascleared. - Exfiltrate Data: The compromised renderer binds the texture, uses a GLSL shader with
samplerExternalOESto sample the uninitialized memory into a readable renderbuffer, and extracts the sensitive pixels usingglReadPixels.
Suggested Fix
The EnsureClear() function must verify that the clear operation actually succeeded before marking the representation as cleared.
- Introduce a check for framebuffer completeness (
api->glCheckFramebufferStatusEXT(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE) after attaching the texture, or explicitly checkglGetError(). - If the FBO is incomplete,
EnsureClearmust not callrepresentation_->SetCleared(). - Instead, the implementation should either fallback to an alternative clear mechanism (e.g., clearing the native pixmap via CPU mapping or Skia before it is bound to GL), or explicitly fail the command and terminate the context to prevent uninitialized memory access.
Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8
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. Please feel free to reach out to me if you have concerns or feedback.
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 EnsureClear function does not verify that the framebuffer attachment and clear succeeded before marking the shared image as cleared.
Impact
A compromised renderer could read uninitialised GPU memory, potentially disclosing data from other processes or origins; the report notes this is a potential issue and does not claim a verified exploit.
What the attacker needed
Code execution in the renderer process; Linux or ChromeOS with ANGLE-on-Vulkan; GL_EXT_YUV_target not fully supported
The fix
EnsureClear should check framebuffer completeness or GL errors and, if the clear failed, either use an alternative clear method or fail the command rather than marking the image as cleared.
How it was found
- Gain code execution inside the sandboxed renderer process.
- Send a CreateSharedImage IPC request with a multi-planar format and prefers_external_sampler set to true.
- On Linux/Ozone the flag is not blocked, so the request proceeds.
- The OzoneImageBackingFactory allocates a native pixmap containing uninitialised memory.
- Send a [redacted] command to trigger EnsureClear.
- The framebuffer attachment fails silently, the clear does nothing, but the image is marked cleared; the renderer then samples it with a shader and reads the pixels.
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 renderer process is the part of a browser that draws web pages; it is normally kept separate from other processes so it cannot read their memory. Here, a bug in the GPU process meant that a request to wipe a new image before handing it over could fail without anyone noticing, yet the image was still treated as wiped. If an attacker already controlled the renderer, they could ask for such an image and read leftover data 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.