Skip to content
Info disclosure Advisory Advanced CVE-2026-113332

Uninitialized resource in GPU (CVE-2026-113332)

The ExternalVkImageBacking::Create function ignores the boolean result of UploadToVkImage() and always marks the backing as cleared. If the initial pixel upload fails, a compromised renderer could read back uninitialized GPU memory containing cross-origin data.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 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: ExternalVkImageBacking::Create discards the boolean return value of UploadToVkImage() and unconditionally marks the backing as cleared. If the initial pixel data upload fails (e.g., under memory pressure or context loss), the image backing is registered as fully initialized despite wrapping uninitialized VkDeviceMemory. A compromised renderer can potentially exploit this to bypass safety checks and read back uninitialized graphics memory containing cross-origin data.

Affected files:

  • gpu/command_buffer/service/shared_image/external_vk_image_backing.cc

Estimated timestamp from git blame: 2021-11-19

Root Cause Analysis

In ExternalVkImageBacking::Create (located in gpu/command_buffer/service/shared_image/external_vk_image_backing.cc), when a non-empty pixel_data span is provided, the code attempts to upload it to the newly created Vulkan image using UploadToVkImage(). However, the return value of this function call is discarded, and the backing is unconditionally marked as cleared:

C++
if (!pixel_data.empty()) {
  auto image_info = backing->AsSkImageInfo();
  if (pixel_data.size() != image_info.computeMinByteSize()) {
    DLOG(ERROR) << "Invalid initial pixel data size";
    return nullptr;
  }
  SkPixmap pixmap(image_info, pixel_data.data(), image_info.minRowBytes());
  backing->UploadToVkImage({pixmap});      // <--- Boolean return value is discarded

  // Mark the backing as cleared.
  backing->SetCleared();                   // <--- Unconditionally marks backing as cleared
  backing->latest_content_ = kInVkImage;
}

UploadToVkImage() returns a boolean indicating success and has several documented failure paths. For example, it calls GrDirectContext::updateBackendTexture(), which can return false under memory pressure (e.g., when staging buffer allocation fails in GrVkGpu::onWritePixels) or when the graphics context is lost/abandoned.

Since the underlying VkImage is allocated before the upload attempt, if UploadToVkImage() fails, the image backing continues to exist and wraps a fully-allocated but uninitialized VkDeviceMemory allocation. Because SetCleared() is called unconditionally, the system registers the backing as initialized and cleared, which bypasses safety checks designed to prevent reading uninitialized memory.

Potential Vulnerability Flow and Reachability

(Note: These are suggested and potential steps based on static analysis, as our tooling does not have the ability to execute code or run a working Proof of Concept.)

  1. Allocation: A compromised renderer initiates a SharedImage creation with initial pixel data via the Mojo IPC channel using mojom::DeferredSharedImageRequest::kCreateSharedImageWithData with read usages (e.g., SHARED_IMAGE_USAGE_GLES2_READ | SHARED_IMAGE_USAGE_RASTER_READ).
  2. Backing Dispatch: The GPU process selects the ExternalVkImageBackingFactory (active under Ganesh-Vulkan) and allocates the underlying VkImage using raw, uninitialized driver memory containing residual GPU data from prior allocations.
  3. Failed Upload: Under simulated GPU memory pressure or context disturbance, the initial staging buffer allocation or upload fails inside UploadToVkImage(), returning false.
  4. Falsified State: The return value is ignored by ExternalVkImageBacking::Create. SetCleared() is called, setting the backing's internal state cleared_rect_ to the full size of the image, marking it as completely initialized.
  5. Readback & Leak: The compromised renderer immediately triggers a readback of the shared image (e.g., via ReadbackARGBImagePixelsINTERNALImmediate). The safety check IsCleared() in CopySharedImageHelper::ReadPixels (in gpu/command_buffer/service/copy_shared_image_helper.cc) evaluates to true because of the falsified state. The readback proceeds, copying the uninitialized device memory containing cross-origin graphical data into renderer-accessible shared memory.

Suggested Remediation

Modify ExternalVkImageBacking::Create to check the return value of UploadToVkImage() and return nullptr if the initial upload fails:

C++
  if (!backing->UploadToVkImage({pixmap})) {
    DLOG(ERROR) << "Failed to upload initial pixel data";
    return nullptr;
  }
  backing->SetCleared();

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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 discards the boolean return value of UploadToVkImage() and unconditionally calls SetCleared(), so a failed upload leaves the backing marked as initialised while wrapping uninitialised VkDeviceMemory.

Impact

A compromised renderer could potentially bypass safety checks and read back uninitialised graphics memory containing cross-origin data, though the report notes these steps are suggested and potential, based on static analysis without a working proof of concept.

What the attacker needed

Compromised renderer; GPU memory pressure or context loss; Ganesh-Vulkan backend active

The fix

ExternalVkImageBacking::Create should check the return value of UploadToVkImage() and return nullptr if the initial upload fails, before calling SetCleared().

How it was found

  1. A compromised renderer requests creation of a shared image with initial pixel data and read usages over Mojo IPC.
  2. The GPU process selects ExternalVkImageBackingFactory and allocates a VkImage backed by uninitialised driver memory.
  3. Under memory pressure or context loss, UploadToVkImage() fails and returns false.
  4. The return value is ignored and SetCleared() marks the backing as fully initialised.
  5. The renderer triggers a readback; the IsCleared() check passes and uninitialised memory is copied into renderer-accessible 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 asks the graphics card to store an image, it first copies the image data into graphics memory. If that copy fails, the program should report an error, but here it ignores the failure and pretends the image is ready. A malicious program could then read whatever leftover data was already in that graphics memory, which might belong to another website.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.