Uninitialized Use in GPU (CVE-2026-12469)
A GPU texture-clearing routine in Chromium's Android WebView decoder ignores the failure result of a 3D texture clear, so when that clear fails under memory pressure only one slice of the texture is actually initialised while the whole level is recorded as cleared. A WebGL2 page could then sample the remaining slices and read back uninitialised GPU memory belonging to other origins.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 8 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: In the Android WebView validating decoder (WebGL2), a failure to check the return value of TextureManager::ClearTextureLevel can cause uninitialized texture levels to be falsely marked as cleared. Under specific GPU memory pressure conditions where 3D texture clears fail, only the single layer attached to the framebuffer is cleared via glClear, while the remaining uninitialized layers are committed as cleared. This allows a standard WebGL2 context to sample and read back uninitialized, cross-origin GPU memory slices.
Affected files:
gpu/command_buffer/service/framebuffer_manager.ccgpu/command_buffer/service/gles2_cmd_decoder.ccgpu/command_buffer/service/texture_manager.cc
Estimated timestamp from git blame: 2016-02-22
Root Cause Analysis
In the Android WebView validating decoder (GLES2DecoderImpl), Framebuffer::ClearUnclearedIntOr3DTexturesOrPartiallyClearedTextures is called to initialize special texture attachments (e.g., 3D textures, integer formats, or partially cleared levels) prior to performing rendering operations or readbacks.
However, in gpu/command_buffer/service/framebuffer_manager.cc:
void Framebuffer::ClearUnclearedIntOr3DTexturesOrPartiallyClearedTextures(
GLES2Decoder* decoder, TextureManager* texture_manager) {
for (...) {
if (!it->second->IsTextureAttachment() || it->second->cleared()) continue;
TextureAttachment* attachment = ...;
if (attachment->IsPartiallyCleared() || attachment->Is3D() ||
GLES2Util::IsIntegerFormat(attachment->internal_format())) {
texture_manager->ClearTextureLevel(decoder, // <-- Return value is discarded!
attachment->texture(),
attachment->target(),
attachment->level());
}
}
}
When a 3D texture level clear fails inside GLES2DecoderImpl::ClearLevel3D (for example, due to a GL_OUT_OF_MEMORY error during temporary PBO allocation), the helper returns false (in gles2_cmd_decoder.cc). Because the return value is discarded by the caller above, the failure status is swallowed.
Subsequently, inside GLES2DecoderImpl::ClearUnclearedAttachments:
- The helper
ClearUnclearedIntOr3DTextures...completes without reporting the failure. - The decoder checks if there are still uncleared attachments. Since the 3D clear failed,
HasUnclearedColorAttachments()is still true. - In production release builds, the
DCHECK(!it.second->Is3D())check is compiled out, so the draw buffer is prepared for clearing. - The decoder issues a physical clear call:
api()->glClearFn(clear_bits). - Since only a single slice (layer
k) of the 3D texture was attached to the framebuffer viaglFramebufferTextureLayer, only that single layer is cleared by the driver. - The decoder unconditionally calls
MarkAttachmentsAsClearedwhich invokesSetLevelClearedon the texture attachment, marking the entire level (all slices) as cleared despite only one slice being initialized.
Bypassing lose_context_when_out_of_memory_
While Chromium employs a lose_context_when_out_of_memory_ mitigation to destroy the context when an OOM is encountered, it can be bypassed due to driver-specific GL error ordering. Inside PeekGLError (in error_state.cc), the error is retrieved via glGetError() exactly once. If the driver returns GL_INVALID_OPERATION (generated by the subsequent glTexSubImage3D calls on the invalid PBO) before GL_OUT_OF_MEMORY, PeekGLError will register the error as GL_INVALID_OPERATION, bypass the context-loss handler, and return false, allowing execution to continue.
Potential Steps to Reproduce
Note: These steps are based on static analysis; our tooling does not currently have the capability to execute code to verify them.
- Initialize a WebGL2 context on Android WebView (which forces the validating GLES2 decoder).
- Create a 3D texture and allocate uninitialized storage for level 0 using
gl.texImage3D. - Bind a framebuffer and attach exactly one slice of the 3D texture to color attachment 0 using
gl.framebufferTextureLayer. - From a separate/sibling WebGL context, allocate large resources to exhaust GPU VRAM to a state where a ~2 MiB PBO buffer allocation fails with OOM.
- Trigger a draw or
readPixelstargeting the bound framebuffer to force FBO validation and clearing. - Release the sibling context's pressure resources, and read back the remaining slices of the 3D texture using a fragment shader sampler.
- Slices other than the attached slice
kshould contain uninitialized cross-origin graphics memory (such as contents from other pages/WebViews).
Suggested Fix
Do not discard the boolean return value from ClearTextureLevel inside Framebuffer::ClearUnclearedIntOr3DTexturesOrPartiallyClearedTextures. Instead, propagate the return status up to ClearUnclearedAttachments. If a clearing operation fails, abort the execution or gracefully lose the WebGL context.
Evaluated with Chrome root at commit: 3947e01999a53d4e2382e39736cb79d79c7dffcf
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
Likely the caller discards the boolean result of TextureManager::ClearTextureLevel, so a failed 3D clear is never propagated and the attachment is still marked as cleared after only one layer was physically cleared.
Impact
A page could potentially read uninitialised GPU memory from other origins, though the report is based on static analysis only and the context-loss mitigation can be bypassed only with driver-specific error ordering.
What the attacker needed
Android WebView with WebGL2; GPU memory pressure to force OOM; Driver returns errors in a specific order
The fix
The return value of ClearTextureLevel should be propagated up to ClearUnclearedAttachments so a failed clear aborts the operation or loses the WebGL context.
How it was found
- Create a WebGL2 context in Android WebView, which uses the validating decoder.
- Allocate an uninitialised 3D texture level.
- Attach a single slice of that texture to a framebuffer colour attachment.
- Exhaust GPU memory from a sibling context so a small buffer allocation fails.
- Trigger a draw or readback to force framebuffer validation and clearing.
- Release the memory pressure and read back the other slices through a sampler.
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.
Graphics memory is shared between pages, so before a page can use a texture the browser is supposed to wipe it clean. Here the wiping step can fail when the graphics card runs short of memory, and the browser wrongly notes the texture as wiped anyway. That leaves old data from other websites sitting in the texture, which the attacking page can then read.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.