Uninitialized Use in Skia (CVE-2026-10977)
A logic error in Skia's Ganesh backend can cause uninitialized GPU transfer buffers to be delivered to a renderer when internal task instantiation fails. Under memory pressure, a compromised renderer could exploit this to leak stale pixel data from other origins stored in recycled GPU memory.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 20 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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A logic error in Skia's Ganesh backend allows uninitialized GPU transfer buffers to be delivered to a renderer if internal task instantiation fails. Under memory pressure, a compromised renderer can exploit this to leak stale pixel data from other origins stored in recycled GPU memory.
Affected files:
third_party/skia/src/gpu/ganesh/SurfaceContext.cppthird_party/skia/src/gpu/ganesh/GrDrawingManager.cppthird_party/skia/src/gpu/ganesh/GrTransferFromRenderTask.cppgpu/command_buffer/service/raster_decoder.cc
Estimated timestamp from git blame: 2019-08-20
Description
An information disclosure vulnerability has been identified in the Ganesh GPU backend of Skia within Chromium. Asynchronous pixel readback operations (e.g., asyncReadPixels and asyncRescaleAndReadPixelsYUV420) can deliver uninitialized GPU-to-CPU transfer buffers to a renderer process if the internal transfer task fails to execute.
Root Cause Analysis
The vulnerability stems from a lack of error propagation during the task execution phase in Ganesh:
- Uninitialized Allocation: In
SurfaceContext::transferPixels, GPU-to-CPU transfer buffers are allocated withGrResourceProvider::ZeroInit::kNo. These buffers are often retrieved from a shared scratch resource cache or recycled memory blocks and are not zero-initialized. - Silent Task Failure: If the
GrResourceAllocatorfails to instantiate surface proxies (e.g., due to exhaustion ofDEVICE_LOCALmemory), theGrDrawingManager::flushfunction skips the execution of all render tasks in the DAG (GrDrawingManager.cpp:208). - Unconditional Completion Callback: Despite the execution failure, the completion callback (
fFinishedProc) is still installed and fired viagpu->executeFlushInfo. - Information Leak: The Ganesh callback API (
GrGpuFinishedProc) does not provide a success/failure status to the client. Consequently, the callback maps and delivers the transfer buffer even though it was never written to by the GPU, leaving it containing stale data from previous operations.
Potential Exploitation Scenario
An attacker with control over a compromised renderer could potentially trigger this leak by:
- Inducing high GPU memory pressure through large WebGL/WebGPU allocations to increase the probability of proxy instantiation failure.
- Issuing a
DoReadbackYUVImagePixelsINTERNALIPC command to trigger an asynchronous readback. - Forcing a flush through the command buffer. If the internal YUV proxies fail to instantiate, the
GrTransferFromRenderTaskwill be skipped. - The completion callback will execute, delivering a buffer populated with stale GPU memory. Since the
GrResourceCacheis shared across renderer processes in the GPU main thread, this memory may contain sensitive pixel data from other origins.
Suggested Fix
The Ganesh backend should be updated to propagate execution success or failure to the completion callbacks, similar to how the Graphite backend handles CallbackResult. Alternatively, transfer buffers used for asynchronous readbacks should be zero-initialized if there is any risk that the subsequent write task might be skipped.
Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e
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 Ganesh backend does not propagate task execution failure to completion callbacks, so uninitialized transfer buffers are delivered even when the GPU write task is skipped.
Impact
A compromised renderer could potentially leak stale pixel data from other origins stored in recycled GPU memory, but this requires inducing memory pressure and may not always succeed.
What the attacker needed
Compromised renderer; ability to induce GPU memory pressure; specific GPU backend (Ganesh)
The fix
The Ganesh backend should be updated to propagate execution success or failure to completion callbacks, or transfer buffers should be zero-initialized if the write task might be skipped.
How it was found
- Induce high GPU memory pressure through large WebGL/WebGPU allocations.
- Issue a DoReadbackYUVImagePixelsINTERNAL IPC command to trigger an asynchronous readback.
- Force a flush through the command buffer so that internal YUV proxies may fail to instantiate.
- The completion callback executes and delivers a buffer populated with stale GPU 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 web page asks the graphics card to read back pixels, the browser allocates a temporary buffer. If the graphics card runs out of memory and fails to fill that buffer, the browser still hands it back to the page without checking for errors. Because the buffer is reused and not cleared, it can contain leftover pixels from other websites, letting an attacker see data they should not.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.