Uninitialized resource in GPU (CVE-2026-87555)
A potential vulnerability in the GPU texture manager allows bypassing lazy-clear protections on NVIDIA Android devices, potentially disclosing uninitialized cross-origin GPU memory to an attacker's WebGL context.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential vulnerability in gpu/command_buffer/service/texture_manager.cc allows bypassing the validating decoder's lazy-clear protections on affected NVIDIA Android devices. Unconditional calls to SetLevelCleared in the NVIDIA PBO workaround branches mark texture levels as cleared even if driver-level sub-uploads fail due to GPU memory pressure. This can potentially result in the disclosure of uninitialized, cross-origin GPU memory (VRAM) to an attacker's WebGL context.
Affected files:
gpu/command_buffer/service/texture_manager.cc
Estimated timestamp from git blame: 2016-03-14
Description
There is a potential vulnerability in the GLES2 validating command decoder's texture manager (gpu/command_buffer/service/texture_manager.cc) associated with the NVIDIA Pixel Buffer Object (PBO) workarounds. On affected configurations (such as Android devices running with NVIDIA GPU drivers), specific workaround branches in TextureManager::ValidateAndDoTexImage can unconditionally mark a texture level as fully cleared even if the driver-level sub-uploads fail. This allows an attacker to bypass the validating decoder's lazy-clear protections and potentially read back uninitialized, cross-origin GPU memory (VRAM).
Root Cause Analysis
In gpu/command_buffer/service/texture_manager.cc, TextureManager::ValidateAndDoTexImage handles NVIDIA PBO-workaround paths for overlapping unpack rows (workaround ID 165) and alignment constraints (workaround ID 217). The implementation carries out the following operations:
-
It pre-allocates uninitialized backing storage on the driver using
ReserveTexImageToBeFilled(which callsDoTexImagewithpixels = nullptrand the pixel unpack buffer temporarily unbound). Sincepixelsisnullptr,DoTexImagesets the level cleared rect to empty, correctly marking the texture level as uncleared. -
It attempts to populate this uninitialized storage with the user's data by calling the helper functions
DoTexSubImageRowByRowWorkaroundorDoTexSubImageWithAlignmentWorkaround. -
Finally, it unconditionally marks the texture level as fully cleared at line 2684 and line 2718 by calling:
C++ SetLevelCleared(texture_ref, args.target, args.level, true);
The potential vulnerability is that the helper sub-upload functions are void and do not perform any GL-error checking. If a driver-level sub-upload fails silently (for example, generating a GL_OUT_OF_MEMORY error under high GPU memory pressure), the uninitialized VRAM allocated in step 1 is not fully overwritten with user-supplied data. However, because SetLevelCleared is called unconditionally, the command decoder assumes the texture is safely initialized. Consequently, the lazy-clear checks (such as those in gles2_cmd_decoder.cc using SafeToRenderFrom()) are bypassed.
This behavior contrasts with secure reference patterns in the codebase, such as GLES2DecoderImpl::DoCopyTexSubImage2D (at gles2_cmd_decoder.cc:13768), where the cleared state commit is deferred and strictly gated on LOCAL_PEEK_GL_ERROR(...) == GL_NO_ERROR.
Potential Trigger Path
Please note that these are potential steps; our automated analysis tooling does not currently have the capability to run code or execute a proof of concept.
- An attacker sets up a page containing WebGL2 content, targeting a device using GLES2 validating decoder with an NVIDIA vendor (where workarounds 165 and 217 are active).
- The attacker's script binds a
PIXEL_UNPACK_BUFFERand configures overlapping unpack rows viaUNPACK_ROW_LENGTH(whererow_length < width) or triggers specific alignment constraints. - The attacker allocates a texture using
texImage2DortexImage3Dto enter the workaround branches inValidateAndDoTexImage. - If the attacker has previously induced high GPU memory pressure (by allocating large graphics resources), one or more raw
glTexSubImage2D/glTexSubImage3Dcalls within the helper sub-upload loops may fail withGL_OUT_OF_MEMORY. - The driver records the error, but since the decoder does not check for it, the texture level is unconditionally marked as cleared via
SetLevelCleared. - The attacker subsequently reads back from the texture (e.g., via shader sampling or framebuffer readbacks with
gl.readPixels). Because lazy-clearing is bypassed, the script potentially obtains uninitialized VRAM that contains stale data from other origins sharing the GPU process.
Suggested Remediation
To remediate this issue, the cleared-state commit should be deferred and strictly gated on verifying that no GL errors occurred during the workaround sub-uploads, similar to the pattern used in DoCopyTexSubImage2D:
// Verify no errors occurred before marking the level as cleared
if (error_state->PeekGLError(function_name, __LINE__) == GL_NO_ERROR) {
SetLevelCleared(texture_ref, args.target, args.level, true);
}
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.
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 unconditionally marks a texture level as cleared after sub-upload operations, even though those operations do not check for GL errors and may fail silently, leaving uninitialized memory.
What the attacker needed
NVIDIA Android device with workarounds 165/217; Attacker can induce high GPU memory pressure; Victim visits attacker's WebGL page
The fix
The cleared-state commit should be deferred and gated on verifying that no GL errors occurred during the workaround sub-uploads.
How it was found
- An attacker sets up a page containing WebGL2 content, targeting a device using GLES2 validating decoder with an NVIDIA vendor (where workarounds 165 and 217 are active).
- The attacker's script binds a `PIXEL_UNPACK_BUFFER` and configures overlapping unpack rows via `UNPACK_ROW_LENGTH` (where `row_length < width`) or triggers specific alignment constraints.
- The attacker allocates a texture using `texImage2D` or `texImage3D` to enter the workaround branches in `ValidateAndDoTexImage`.
- If the attacker has previously induced high GPU memory pressure (by allocating large graphics resources), one or more raw `glTexSubImage2D`/`glTexSubImage3D` calls within the helper sub-upload loops may fail with `GL_OUT_OF_MEMORY`.
- The driver records the error, but since the decoder does not check for it, the texture level is unconditionally marked as cleared via `SetLevelCleared`.
- The attacker subsequently reads back from the texture (e.g., via shader sampling or framebuffer readbacks with `gl.readPixels`). Because lazy-clearing is bypassed, the script potentially obtains uninitialized VRAM that contains stale data…
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 allocates memory, it may contain leftover data from other programs. This report describes a bug where a graphics component could fail to properly clear such memory before giving it to a web page, potentially letting a malicious site read data from other sites.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.