Uninitialized resource in GPU (CVE-2026-95359)
The framebuffer completeness cache in Chromium's validating command decoder omits the samples and layer fields from its signature, so different framebuffer configurations can collide. A compromised renderer could exploit this to have an incomplete framebuffer treated as complete, bypassing mandatory memory zeroing and leaking uninitialized GPU memory across origins.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 4 months
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: A logic error in the validating command decoder's framebuffer completeness cache allows a compromised renderer to bypass mandatory memory zeroing. By triggering a signature collision, an incomplete framebuffer can be incorrectly treated as complete, leading to the disclosure of uninitialized GPU memory. The vulnerability stems from the omission of 'samples' and 'layer' attributes in the generated framebuffer signature.
Affected files:
gpu/command_buffer/service/framebuffer_manager.ccgpu/command_buffer/service/texture_manager.ccgpu/command_buffer/service/gles2_cmd_decoder.cc
Estimated timestamp from git blame: 2013-07-12
Summary
A potential vulnerability in the Chromium validating command decoder allows a compromised renderer to bypass the resource-zeroing invariant for textures. The TextureAttachment::AddToSignature method, which generates a signature for the FramebufferCompletenessCache, fails to include the samples_ and layer_ fields. This leads to signature collisions, where the decoder incorrectly treats an incomplete framebuffer as complete by relying on a cached status. Consequently, an uncleared texture can be marked as cleared without its storage actually being zeroed, allowing the disclosure of uninitialized GPU memory across origins.
Root Cause Analysis
In gpu/command_buffer/service/framebuffer_manager.cc, the TextureAttachment class maintains state for samples_ (set via glFramebufferTexture2DMultisampleEXT) and layer_ (set via glFramebufferTextureLayer). However, its AddToSignature implementation fails to include these fields in the generated signature:
// gpu/command_buffer/service/framebuffer_manager.cc
void TextureAttachment::AddToSignature(TextureManager* texture_manager,
std::string* signature) const {
DCHECK(signature);
texture_manager->AddToSignature(
texture_ref_.get(), target_, level_, signature); // samples_ and layer_ omitted
}
The resulting signature only contains the state of the underlying texture level (dimensions, format, etc.) provided by TextureManager. When the decoder checks for framebuffer completeness via Framebuffer::GetStatus, it consults the FramebufferComboCompleteCache. If the signature matches a previously cached entry for a complete framebuffer, the decoder returns GL_FRAMEBUFFER_COMPLETE immediately without querying the actual driver status via glCheckFramebufferStatusEXT.
Potential Trigger Path (Suggested)
An attacker with control over a renderer process could potentially exploit this collision to leak cross-origin GPU memory using the following steps:
- Cache a Complete Signature: The attacker creates a valid framebuffer (FBO_A) with a texture (T1) using
samples=0andlayer=0. A draw operation is performed, the driver confirms completeness, and the signature S is cached as complete. - Trigger a Collision: The attacker creates a new framebuffer (FBO_B) with an uncleared texture (T2) and uses
samples=Nor a specificlayerthat causes the driver to consider the framebuffer incomplete (e.g., an unsupported sample count or an out-of-bounds layer index). - Bypass Completeness Check: When the attacker attempts to draw to or clear FBO_B, the decoder generates a signature S'. Because
samplesandlayerare omitted, S' == S. The decoder hits the cache and incorrectly assumes FBO_B is complete. - Metadata Corruption: The decoder attempts to clear T2's storage using
glClear. Because the framebuffer is actually incomplete, the underlying GL driver ignores the clear operation (silently failing or issuingGL_INVALID_FRAMEBUFFER_OPERATION). However, the decoder unconditionally proceeds to callMarkAttachmentsAsCleared, marking T2 as cleared in its internal metadata. - Information Leak: The attacker attaches T2 to a genuine complete framebuffer and performs a read (e.g., via
glReadPixels). Since the texture was never zeroed but is marked as cleared, the attacker receives uninitialized GPU memory content.
Impact
Successful exploitation allows a compromised renderer to read uninitialized GPU memory. This memory may contain sensitive data from other processes or cross-origin web content that previously occupied the same physical memory. This issue is restricted to the validating command decoder, which is active on specific configurations (e.g., Android devices on the GPU blocklist).
Suggested Fix
Modify TextureAttachment::AddToSignature in gpu/command_buffer/service/framebuffer_manager.cc to explicitly append the samples_ and layer_ values to the signature string. This ensures that different framebuffer configurations generate unique signatures.
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.
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 `TextureAttachment::AddToSignature` method omits the `samples_` and `layer_` fields, causing signature collisions in the framebuffer completeness cache.
Impact
A compromised renderer could read uninitialized GPU memory that may contain sensitive data from other processes or cross-origin web content, though the issue is limited to the validating command decoder active on specific configurations such as Android devices on the GPU blocklist.
What the attacker needed
Compromised renderer process; validating command decoder active; specific GPU configuration (e.g. Android blocklist)
The fix
The `TextureAttachment::AddToSignature` method should be modified to explicitly append the `samples_` and `layer_` values to the signature string so that different framebuffer configurations generate unique signatures.
How it was found
- Create a valid framebuffer with a texture using samples=0 and layer=0, draw to it, and let the driver confirm completeness so its signature is cached as complete.
- Create a new framebuffer with an uncleared texture and use a sample count or layer that makes the driver consider it incomplete.
- Attempt to draw to or clear the new framebuffer; the decoder generates a colliding signature, hits the cache, and assumes it is complete.
- The decoder calls glClear, which the driver ignores because the framebuffer is incomplete, but the decoder still marks the texture as cleared.
- Attach the texture to a genuine complete framebuffer and read it back to obtain 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.
A graphics cache in the browser decides whether a framebuffer is ready to use by comparing a short summary (a signature) of its settings. This summary forgot to include two settings, so two different framebuffers could look identical to the cache. An attacker who already controls a renderer process could then trick the browser into thinking an unusable framebuffer is fine, skip clearing its memory, and later read leftover data from other websites or processes.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.