Uninitialized resource in GPU (CVE-2026-87647)
A validation gap in the GPU shared-image factory lets a compromised renderer create a compressed-format texture with no initial pixel data, skipping dimension and size checks. Because ANGLE then treats the texture as already initialised and Chromium's clearing step fails on a non-renderable format, the renderer could sample uninitialised Vulkan memory that may hold data from other origins.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 51 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: A validation gap in GLCommonImageBackingFactory::CanCreateTexture allows the creation of compressed-format SharedImages with empty pixel data. This bypasses ANGLE's initialization and Chromium's automated clearing, allowing a compromised renderer to sample uninitialized Vulkan memory and leak cross-origin GPU data.
Affected files:
gpu/command_buffer/service/shared_image/gl_common_image_backing_factory.ccgpu/command_buffer/service/shared_image/gl_texture_holder.ccgpu/command_buffer/service/gles2_cmd_decoder_passthrough.ccgpu/command_buffer/service/shared_image/egl_image_backing.cc
Estimated timestamp from git blame: 2018-12-11
1. Summary of the Issue (Meant for Human Triage)
A potential high-severity security vulnerability exists in Chromium's GPU command buffer service due to a validation gap when creating compressed-format SharedImage textures. When a compromised renderer requests a new SharedImage with a compressed format (e.g., ETC1) but provides no initial pixel data, the validation logic inside GLCommonImageBackingFactory::CanCreateTexture is entirely bypassed. This bypass allows the creation of a compressed texture without performing the necessary dimension and bounds checks.
Because the release-build SharedContextState operates with validation disabled (KHR_no_error) and robust_resource_initialization=false, ANGLE marks the texture state as fully Initialized upon creation without staging any clear or memory upload. Furthermore, because ETC1 is not a color-renderable format, Chromium's automated clearing mechanism (EnsureClear) fails because the framebuffer remains incomplete, preventing the texture from actually being cleared.
Since BeginSharedImageAccess is not strictly enforced on the service side by the passthrough command decoder, a compromised renderer can directly bind and draw/sample from this texture. When sampled, ANGLE's Vulkan backend lazily allocates a VkImage from the process-wide Vulkan Memory Allocator (VMA) pool. Because ANGLE incorrectly believes the texture is already initialized, no robust clear is performed, allowing the renderer to read uninitialized GPU memory. As VMA is a process-wide suballocator, this memory can contain recycled contents from other origins, the compositor, or the OS, leading to cross-origin GPU memory disclosure.
Note: The following exploitation steps are suggested/potential, as our tooling agent does not currently have the ability to run a live proof-of-concept.
2. Proof-of-Concept & Detailed Execution Flow
An attacker from a compromised renderer process (A-RENDERER) on an Android device (where the GPU process is unsandboxed and ANGLE-Vulkan is the default backend) could trigger this vulnerability through the following potential execution sequence:
Step 1: Create a SharedImage with a Compressed Format and Empty Pixel Data
A-RENDERERsends agpu.mojom.GpuChannel::FlushDeferredRequestsIPC message containing aDeferredSharedImageRequest::kCreateSharedImagerequest.- The request specifies a mailbox
M, formatviz::mojom::SingleplanarFormat::ETC1, size (e.g., 64x64), usageSHARED_IMAGE_USAGE_GLES2_READ, and an emptypixel_dataspan (pixel_data.empty() == true). - The request reaches
SharedImageStub::OnCreateSharedImage(gpu/ipc/service/shared_image_stub.cc), which callsSharedImageFactory::CreateSharedImage.
Step 2: SharedImage Factory Selection and Validation Bypass
SharedImageFactoryiterates through available backing factories. On Android,WrappedSkImageBackingFactoryrejectsSHARED_IMAGE_USAGE_GLES2_READ(wrapped_sk_image_backing_factory.cc:145-147).GLTextureImageBackingFactoryevaluates the request viaGLCommonImageBackingFactory::CanCreateTexture(gpu/command_buffer/service/shared_image/gl_common_image_backing_factory.cc:201).- During validation, the checks for compressed formats are incorrectly nested inside an
if (!pixel_data.empty())block:
// gpu/command_buffer/service/shared_image/gl_common_image_backing_factory.cc:220
if (!pixel_data.empty()) { // ← Gated on non-empty data
DCHECK_EQ(format_infos.size(), 1u);
const FormatInfo& format_info = format_infos[0];
if (format_info.is_compressed) {
if (!gles2::ValidateCompressedTexDimensions(...)) return false; // SKIPPED
if (!gles2::GetCompressedTexSizeInBytes(...)) return false; // SKIPPED
if (... pixel_data.size() != bytes_required) return false; // SKIPPED
}
...
}
return true; // ← Returns true without validation!
- Because
pixel_datais empty, the compressed dimensions validation is completely bypassed, andCanCreateTexturereturnstrue.
Step 3: Allocation of Texture with Spec-Invalid Arguments
- During initialization,
GLTextureHolder::Initializeis called (gpu/command_buffer/service/shared_image/gl_texture_holder.cc:145). - Because
GL_ETC1_RGB8_OESis compressed,format_info.is_compressedis true andsupports_storageis false, forcing theglCompressedTexImage2DFnbranch:
// gpu/command_buffer/service/shared_image/gl_texture_holder.cc:212
} else if (format_info.is_compressed) {
ScopedUnpackState scoped_unpack_state(!pixel_data.empty());
gl::ScopedProgressReporter scoped_progress_reporter(progress_reporter_);
api->glCompressedTexImage2DFn(format_desc_.target, 0,
format_desc_.image_internal_format,
size_.width(), size_.height(), /*border=*/0,
pixel_data.size(), pixel_data.data()); // 0, nullptr
}
- The driver is invoked with
imageSize = 0anddata = nullptr, despite non-zero dimensions, violating OpenGL ES /OES_compressed_ETC1_RGB8_texturespecifications.
Step 4: ANGLE Bypasses Validation and Marks Texture as Initialized
- This initialization occurs on the process-wide
SharedContextState. In release builds,gpu_channel_manager.cc:917-920configures this context withattribs.robust_resource_initialization = falseandattribs.can_skip_validation = true. ui/gl/gl_context_egl.cc:145-150appendsEGL_CONTEXT_OPENGL_NO_ERROR_KHR=EGL_TRUE.- ANGLE's autogenerated entry point checks
context->skipValidation()(which is true) and skipsValidateCompressedTexImage2D. - Inside
Texture::setCompressedImage, ANGLE determines the initial state:
// third_party/angle/src/libANGLE/Texture.cpp:47
InitState DetermineInitState(const Context *context, Buffer *unpackBuffer, const uint8_t *pixels) {
if (!context || !context->isRobustResourceInitEnabled())
return InitState::Initialized; // ← Since robust init is off, returns Initialized
return (!pixels && !unpackBuffer) ? InitState::MayNeedInit : InitState::Initialized;
}
- The texture's
mInitStateis set toInitState::Initialized. TextureVk::setSubImageImplis invoked, but sinceunpackBuffer == nullptrandpixels == nullptr, no subresource update or upload is staged. TheVkImagememory is left uninitialized.
Step 5: Chromium Clear-Tracking Remains Uncleared & EnsureClear Fails
- Back in
GLTextureImageBacking::InitializeGLTexture,SetCleared()is only called if!pixel_data.empty()(gl_texture_image_backing.cc:528). Sincepixel_datais empty, the backing remains marked as uncleared in Chromium's tracking. A-RENDERERissuesgles2::cmds::CreateAndTexStorage2DSharedImageINTERNALto bind the mailbox to aclient_id.- The passthrough decoder unconditionally maps
client_idto the ANGLEservice_idviatexture_id_map.SetIDMapping(gles2_cmd_decoder_passthrough_doers.cc:4679). - It then attempts to clear the texture via
EnsureClear(gles2_cmd_decoder_passthrough.cc:613). EnsureClearattaches the uncleared texture to a framebuffer and callsglClearFn.EnsureClearthen checksglCheckFramebufferStatusEXTFn(GL_FRAMEBUFFER). However,GL_ETC1_RGB8_OEShastextureAttachmentSupport = NeverSupported(third_party/angle/src/libANGLE/formatutils.cpp:1222).- The framebuffer is incomplete.
glCheckFramebufferStatusEXTFndoes not returnGL_FRAMEBUFFER_COMPLETE, meaningrepresentation_->SetCleared()is never called.
Step 6: Renderer Bypasses BeginAccess and Samples Uninitialized Memory
A-RENDERERdeliberately omitsgles2::cmds::BeginSharedImageAccessDirectCHROMIUM. The passthrough decoder does not enforce callingBeginAccessfor bound textures (gles2_cmd_decoder_passthrough.cc:596-597).A-RENDERERsendsgles2::cmds::BindTexture, which resolves to the ANGLEservice_idusing the already-populatedtexture_id_map.A-RENDERERsets up a fragment shader that executestexture2D()to sample the bound texture, binds an RGBA8 framebuffer, and issuesgles2::cmds::DrawArrays.- When ANGLE evaluates the bound texture during the draw call, it calls
ensureInitializedon theTextureobject. Because the level was already marked asInitState::Initialized(Step 14),ensureInitializedshort-circuits. - ANGLE's Vulkan backend lazily allocates the underlying
VkImage(VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK)from the process-wide Vulkan Memory Allocator (vk::Renderer/ VMA pool). - Because the state is
Initialized, no robust clear is performed. The shader executes, directly sampling the uninitializedVkDeviceMemorybacking theVkImage. A-RENDERERissuesgles2::cmds::ReadPixelsto exfiltrate the sampled values. Because VMA operates as a single, process-wide suballocator, this memory can contain recycled data from other origins, the compositor, or OS surfaces.
Proposed Fix
Move the compressed format validation in GLCommonImageBackingFactory::CanCreateTexture outside of the if (!pixel_data.empty()) check. The dimensions, limits, and supported formats must be checked regardless of whether initial data is provided. The if (!pixel_data.empty()) gate should only wrap the specific check that validates pixel_data.size() == bytes_required.
3. Technical Verification Details (Automated Audit Logs - Reviewers may skip this section)
The vulnerability is valid and highly exploitable. By exploiting a validation gap in
GLCommonImageBackingFactory::CanCreateTexturewhere compressed-format dimension checks are skipped for emptypixel_data, a compromised renderer can create an ETC1SharedImagewith no initial data.Since the
SharedContextStateis created withrobust_resource_initialization=falseand validation disabled, ANGLE marks the texture'sInitStateasInitializedand stages no upload. Chromium'sEnsureClearattempts to clear the texture by attaching it to an FBO, but fails because ETC1 is not color-renderable (framebuffer incomplete), resulting inSetCleared()being skipped.Crucially, the passthrough command decoder does not enforce
BeginSharedImageAccesson the service side. The renderer can directly bind the texture and sample it. When sampled in a WebGL context, ANGLE's robust-init validation is bypassed because the texture is already markedInitialized. The Vulkan backend lazily allocates aVkImagefrom the process-wide Vulkan Memory Allocator (VMA) without clearing it, returning uninitialized memory to the renderer.I am rating this as High (S1) rather than the report's Medium (S2). The report author conservatively rated it S2 because they didn't trace cross-origin VMA recycling end-to-end. However, because VMA operates as a single process-wide suballocator for the entire GPU process (
vk::Rendererowns a singlevk::Allocator), any recycled memory can inherently belong to other origins, the compositor, or the OS. This constitutes a cross-origin GPU-memory disclosure, which is S1 (High) per the severity guidelines.
Environmental Assumptions & Risk Factors Confirmed:
- VMA Pooling: Confirmed via
third_party/angle/src/libANGLE/renderer/vulkan/vk_renderer.cpp:2847thatmAllocator.init()builds a singlevk::Allocatorfor the GPU process. Any recycled memory blocks are shared across different contexts and origins, making cross-origin data disclosure deterministic. - Android Backend: ANGLE-Vulkan is the default backend on Android devices, where the GPU process is unsandboxed on many configurations.
- SharedContextState Attributes: Verified via
gpu/ipc/service/gpu_channel_manager.cc:909-923andui/gl/gl_features.cc:230-241. In Android release builds (!DCHECK_IS_ON()),kDefaultEnableANGLEValidationis disabled. This results incan_skip_validation=trueandrobust_resource_initialization=falsebeing passed, which causesui/gl/gl_context_egl.cc:145-150to initialize the EGL context withEGL_CONTEXT_OPENGL_NO_ERROR_KHR=EGL_TRUE. - ETC1 Renderability: Verified via
third_party/angle/src/libANGLE/formatutils.cpp:1222thatGL_ETC1_RGB8_OESusesNeverSupportedfortextureAttachmentSupport. - Passthrough Enforcements: Verified via
gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc:493-536(DoBindTexture) andgpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc:596-599that there is no automatic enforcement ofBeginSharedImageAccessDirectCHROMIUMfor bound textures.
Evaluated with Chrome root at commit: b96d2ec58f4f5f92b540a723966b199d6e9951b4
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 compressed-format dimension and size validation in CanCreateTexture was nested inside a check for non-empty pixel data, so requests without data skipped it entirely.
Impact
A compromised renderer could read uninitialised GPU memory that may contain recycled data from other origins, the compositor or the OS, though the report notes no live proof-of-concept was run and the chain depends on Android release-build settings.
What the attacker needed
Compromised renderer process; Android release build with ANGLE-Vulkan; GPU process unsandboxed
The fix
The compressed-format dimension, limit and format checks should be moved outside the empty-data branch, leaving only the pixel-size comparison gated on supplied data.
How it was found
- Send a create-shared-image request for a compressed format with an empty pixel data span.
- The factory's validation returns true because the compressed checks are skipped.
- The texture is allocated with zero size and a null data pointer.
- ANGLE marks the texture as initialised and stages no upload.
- Chromium's clear attempt fails because the format cannot be attached to a framebuffer.
- Bind the texture without beginning access and sample it in a draw, then read pixels back.
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 web page's drawing commands are handled by a separate GPU process, and the browser assumes that process may be hostile. Here a check on compressed image formats was only run when image data was supplied, so a request with no data slipped through. The texture was then treated as ready to use even though its memory had never been written, so reading it back could return leftover data belonging to other sites.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.