Uninitialized resource in GPU (CVE-2026-95324)
A missing content ID check in GetGpuBacking() can cause a stale or uninitialized GPU backing to be selected as the copy source during readback, potentially copying uninitialized recycled VRAM into a renderer-mapped shared memory buffer. A compromised renderer could then read this buffer to expose cross-origin GPU data.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 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 information disclosure vulnerability exists in CompoundImageBacking's GPU-to-shared-memory readback path when dynamic backing allocation is enabled. Due to a missing content ID validation check in GetGpuBacking(), a stale or uninitialized GPU backing can be selected as the copy source instead of the active dynamic backing. This can result in copying uninitialized recycled VRAM into a renderer-mapped shared memory buffer, potentially exposing cross-origin GPU data.
Affected files:
gpu/command_buffer/service/shared_image/compound_image_backing.cc
Estimated timestamp from git blame: 2025-08-29
Summary
When features::kUseDynamicBackingAllocations is enabled (which is active on all platforms via fieldtrial_testing_config.json), a compromised renderer can potentially trigger an uninitialized GPU memory (VRAM) readback into a shared memory buffer it controls.
Root Cause Analysis
In gpu/command_buffer/service/shared_image/compound_image_backing.cc, the methods CopyToGpuMemoryBuffer() and CopyToGpuMemoryBufferAsync() select the GPU-to-shared-memory copy source by calling GetGpuBacking():
SharedImageBacking* CompoundImageBacking::GetGpuBacking() {
for (auto& element : elements_) {
if (!element.access_streams.Has(SharedImageAccessStream::kMemory)) {
return element.GetBacking();
}
}
...
}
There is no validation in GetGpuBacking() to verify that the returned element's content_id_ matches latest_content_id_.
Under features::kUseDynamicBackingAllocations, the container can hold more than two elements. When a CompoundImageBacking is initialized with a shared memory backing, elements_[1] is created as a lazy placeholder for GPU access streams (All() - kMemory). If a representation requests access with parameters that are incompatible with the lazy factory's backing type, the following sequence occurs:
GetOrAllocateBacking()resolveselements_[1]'s backing, causing it to be lazily allocated viaCreateBackingFromBackingFactory().- Because a shared memory backing exists, the newly allocated
elements_[1]backing is prematurely marked as cleared viabacking->SetCleared()inCreateBackingFromBackingFactory()(line 2120), even though its physical GPU memory remains uninitialized. - The backing fails the compatibility check
element.GetBacking()->SupportsAccess(stream, params)and is rejected. - A new compatible backing is dynamically allocated and added to the container as
elements_[2]with the updated write contents, andlatest_content_id_is incremented.
When a subsequent readback request (CopyToGpuMemoryBuffer) is triggered, GetGpuBacking() is called to retrieve the copy source. Instead of returning the up-to-date dynamic backing (elements_[2]), it returns the first non-memory backing in the vector, which is the uninitialized/stale backing (elements_[1]). CopyImage then copies the uninitialized VRAM of elements_[1] into the shared memory buffer.
Potential Trigger Steps
Note: These steps are based on static analysis and represent a potential exploit path, as our tooling does not currently have the capability to execute code or verify runtime behavior.
- A compromised renderer creates a Shared Memory GpuMemoryBuffer-backed
CompoundImageBackingviaSharedImageInterface::CreateSharedImageunder non-thread-safe conditions (is_thread_safe() == false). This setselements_[0]as the SHM element andelements_[1]as the lazy GPU placeholder. - The renderer requests write-access to a representation on a GPU stream (e.g., Skia) with custom access parameters designed to mismatch the lazy factory's backing.
- During
GetOrAllocateBacking(),elements_[1]is lazily created and prematurely marked as cleared, but is rejected due to the parameter mismatch. - A compatible dynamic backing is allocated as
elements_[2]. Upon write access completion,latest_content_id_is incremented to2, andelements_[2].content_id_becomes2. - The renderer sends a
DeferredSharedImageRequest::kCopyToGpuMemoryBufferrequest on the GPU channel for this mailbox. CopyToGpuMemoryBuffer()executes. Sinceshm_element.content_id_(which is1) is less thanlatest_content_id_(2), it callsGetGpuBacking(), which incorrectly returns the uninitializedelements_[1]backing.- The uninitialized VRAM from
elements_[1]is copied into the GMB shared memory, which the compromised renderer then maps and reads to exfiltrate cross-origin GPU memory.
Suggested Fix
Modify GetGpuBacking() (or the selection logic inside the CopyToGpuMemoryBuffer methods) to locate and return the GPU-backed element that contains the latest content. For example, verify that the returned element's content_id_ is equal to latest_content_id_, or ensure that we fallback safely to copying from the correct active dynamic element:
SharedImageBacking* CompoundImageBacking::GetGpuBacking() {
for (auto& element : elements_) {
if (!element.access_streams.Has(SharedImageAccessStream::kMemory) &&
element.content_id_ == latest_content_id_) {
return element.GetBacking();
}
}
return nullptr;
}
Evaluated with Chrome root at commit: 5a99d0c5d2ec6c066f5131e7868ff637440cc3dc
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 GetGpuBacking() function does not verify that the selected element's content_id_ matches latest_content_id_, so it can return an uninitialized backing.
Impact
A compromised renderer could potentially read uninitialized GPU memory, which may contain cross-origin data, leading to information disclosure.
What the attacker needed
Compromised renderer; dynamic backing allocations enabled
The fix
Modify GetGpuBacking() to only return a GPU-backed element whose content_id_ matches latest_content_id_, or otherwise fall back safely to the correct active dynamic element.
How it was found
- A compromised renderer creates a shared-memory-backed CompoundImageBacking with a lazy GPU placeholder.
- The renderer requests write access with parameters that mismatch the lazy factory's backing type.
- The lazy backing is created and marked cleared but rejected due to the mismatch.
- A compatible dynamic backing is allocated as a new element and latest_content_id_ is incremented.
- The renderer sends a copy-to-GpuMemoryBuffer request for the mailbox.
- CopyToGpuMemoryBuffer() calls GetGpuBacking(), which returns the uninitialized backing, and its VRAM is copied into shared 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 copies data from the graphics card (GPU) to normal memory, it should pick the most recent version of that data. Here, a check was missing, so it sometimes picked an old, uninitialised piece of GPU memory instead. A malicious program running in the browser could then read leftover data from other websites that used the GPU.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.