Uninitialized resource in GPU (CVE-2026-106223)
The GLES2 command decoder fails to check for OpenGL errors when clearing ETC1/ATC compressed textures, so native drivers that reject the clear operation leave VRAM uninitialized. A malicious WebGL page could sample this uninitialized memory, potentially leaking cross-origin or cross-process data.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 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.
Overview: The validating command decoder fails to verify if native drivers successfully clear ETC1/ATC compressed textures. Because the GL specification forbids glCompressedTexSubImage2D for these formats, native drivers reject the clear operation, leaving VRAM uninitialized. A malicious WebGL page could potentially sample this uninitialized memory, leading to cross-origin or cross-process information disclosure.
Affected files:
gpu/command_buffer/service/gles2_cmd_decoder.ccgpu/command_buffer/service/texture_manager.ccgpu/command_buffer/service/feature_info.cc
Estimated timestamp from git blame: 2024-04-10
Description
There is a potential uninitialized memory disclosure vulnerability in the GLES2 validating command decoder (predominantly used on Android or when ANGLE is not active). The issue stems from a failure to check for OpenGL errors during the lazy-clearing of specific compressed texture formats, namely GL_ETC1_RGB8_OES and GL_ATC_*_AMD.
When a WebGL application allocates an immutable texture using texStorage2D, the command buffer allocates VRAM but correctly marks it as uninitialized. Before this texture can be sampled in a draw call, the decoder must zero-initialize it to prevent leaking sensitive cross-origin or cross-process VRAM.
The clearing logic in GLES2DecoderImpl::ClearCompressedTextureLevel (gpu/command_buffer/service/gles2_cmd_decoder.cc) attempts to zero-fill the texture by calling the native driver's glCompressedTexSubImage2D with a buffer of zeros. However, the Khronos specifications for OES_compressed_ETC1_RGB8_texture and AMD_compressed_ATC_texture explicitly state that glCompressedTexSubImage2D is not supported for these formats.
Consequently, compliant native drivers reject the sub-image update with a GL_INVALID_OPERATION error and leave the VRAM unmodified. Because ClearCompressedTextureLevel does not check for GL errors (e.g., via glGetError()) after making the call, it unconditionally returns true. The TextureManager then erroneously marks the texture level as fully cleared, allowing the renderer to sample uninitialized VRAM in subsequent draw calls.
Potential Exploitation Steps
Note: These steps are suggested based on code analysis; our tooling agent does not run code, so a working proof-of-concept has not been executed.
An attacker could potentially exploit this via the following sequence:
- Request a WebGL 2.0 context to ensure
texStorage2Dretains the compressed internal format (avoiding fallback behaviors in WebGL 1.0). - Allocate an immutable texture using
gl.texStorage2Dwith theCOMPRESSED_RGB8_ETC1_WEBGLformat. - Create a standard RGBA8 Framebuffer Object (FBO) and attach it as the rendering destination.
- Create a shader program with a fragment shader that samples from the ETC1 texture and writes the output to the
gl_FragColor. - Bind the uninitialized ETC1 texture to the sampler and issue a draw call (e.g.,
gl.drawArrays). - The command buffer attempts to lazy-clear the ETC1 texture using
glCompressedTexSubImage2D, which fails silently on the native driver. - The draw call proceeds, sampling uninitialized VRAM (which may contain decrypted media frames, pixels from other tabs, or OS UI elements) into the RGBA8 FBO.
- The attacker calls
gl.readPixelson the FBO to exfiltrate the leaked memory.
Suggested Fix
There are two primary ways to address this issue:
- Check for GL Errors: Modify
GLES2DecoderImpl::ClearCompressedTextureLevelto verify the success of the clear operation usingLOCAL_PEEK_GL_ERRORafter callingapi()->glCompressedTexSubImage2DFn. If an error occurred, the function should returnfalseso the texture remains marked as uncleared. - Prevent Allocation: If a platform's native driver cannot clear ETC1/ATC textures because it strictly adheres to the extension specification prohibiting sub-image updates, Chromium should prevent these formats from being allocated via
TexStorage2D(or explicitly implement a software fallback workaround for initialization).
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
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. 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 clear function does not check the OpenGL error state after calling glCompressedTexSubImage2D, so it reports success even when the driver rejects the operation.
Impact
A malicious WebGL page could potentially sample uninitialized VRAM, leading to cross-origin or cross-process information disclosure; the report notes that a working proof-of-concept has not been executed.
What the attacker needed
WebGL 2.0 support; Native driver rejects ETC1/ATC sub-image updates; Victim visits a malicious page
The fix
The clear function should check for GL errors and return false if the clear fails, or the affected formats should be prevented from being allocated via TexStorage2D.
How it was found
- Request a WebGL 2.0 context.
- Allocate an immutable texture with texStorage2D using the ETC1 compressed format.
- Create an RGBA8 framebuffer object and attach it as the render target.
- Create a shader that samples the ETC1 texture and writes to gl_FragColor.
- Bind the texture and issue a draw call, which triggers the failed lazy clear.
- Read back the framebuffer with readPixels to exfiltrate the leaked 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.
When a program asks the graphics card for a new texture, the memory it gets may still contain old data from other programs. Normally the system clears that memory before use, but here the clearing step silently failed for certain compressed texture formats. A malicious website could then read whatever leftover data was in that memory, which might include images from other tabs or the operating system.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.