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

Inappropriate implementation in Skia (CVE-2026-17702)

Skia's Ganesh backend marks MSAA and mipmap proxies as resolved or clean during DAG recording, before GPU work executes. If a flush is aborted, these flags are not rolled back, so later readbacks may skip resolves and expose stale GPU memory from other contexts.

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 state desynchronization vulnerability exists in Skia's Ganesh GPU backend where MSAA targets and mipmaps are eagerly marked resolved/clean during DAG recording. If a subsequent flush is aborted or skipped due to pre-flush or resource allocation failures, these state mutations are not rolled back. This can cause subsequent readbacks to skip necessary GPU-side resolves, potentially exposing recycled or stale GPU memory.

Affected files:

  • third_party/skia/src/gpu/ganesh/GrTextureResolveRenderTask.cpp
  • third_party/skia/src/gpu/ganesh/SurfaceContext.cpp

Estimated timestamp from git blame: 2019-08-14

Vulnerability Mechanics

In Skia's Ganesh GPU backend, GrTextureResolveRenderTask::addProxy() eagerly updates a surface proxy's state during the Directed Acyclic Graph (DAG) recording phase, before any GPU commands are actually dispatched or executed:

C++
// third_party/skia/src/gpu/ganesh/GrTextureResolveRenderTask.cpp
if (GrSurfaceProxy::ResolveFlags::kMSAA & newFlags) {
    GrRenderTargetProxy* renderTargetProxy = proxy->asRenderTargetProxy();
    ...
    resolve->fMSAAResolveRect = renderTargetProxy->msaaDirtyRect();
    renderTargetProxy->markMSAAResolved();      // Cleared immediately during recording
}
if (GrSurfaceProxy::ResolveFlags::kMipMaps & newFlags) {
    GrTextureProxy* textureProxy = proxy->asTextureProxy();
    ...
    textureProxy->markMipmapsClean();           // Cleared immediately during recording
}

Similarly, inside SurfaceContext::internalWritePixels(), mipmaps are marked clean immediately after recording a write task:

C++
// third_party/skia/src/gpu/ganesh/SurfaceContext.cpp
if (numLevels > 1) {
    dstProxy->asTextureProxy()->markMipmapsClean();
}

During GrDrawingManager::flush(), several validations are performed. If a pre-flush callback fails (for instance, AtlasPathRenderer::preFlush() failing due to allocation limits under memory pressure), or if GrResourceAllocator::assign() fails due to a lazy proxy instantiation error, the drawing manager skips task execution entirely. It then clears the DAG using removeRenderTasks():

C++
// third_party/skia/src/gpu/ganesh/GrDrawingManager.cpp
bool preFlushSuccessful = true;
for (GrOnFlushCallbackObject* onFlushCBObject : fOnFlushCBObjects) {
    preFlushSuccessful &= onFlushCBObject->preFlush(&onFlushProvider);
}
...
if (preFlushSuccessful) {
    ...
    cachePurgeNeeded = !resourceAllocator.failedInstantiation() &&
                       this->executeRenderTasks(&flushState); // Skipped on failure
}
this->removeRenderTasks(); // Clears DAG; proxies remain marked 'resolved' and 'clean'

Because removeRenderTasks() discards the scheduled tasks but does not roll back the state changes on the corresponding proxies, the proxies remain permanently marked as "resolved" and "clean" in memory, even though the actual GPU-side textures were never resolved or updated.

Potential Security Impact

If the proxy state is desynchronized from the actual GPU memory contents, subsequent operations that check the dirty flags will assume the buffers are up-to-date:

  1. GrRenderTask::addDependency() and resolve_and_mipmap() will observe the proxy state as clean and skip inserting necessary resolve or regeneration tasks.
  2. Subsequent readback or copy operations (e.g., asyncRescaleAndReadPixelsYUV420) will execute directly on the unresolved MSAA resolve attachment or uninitialized mip levels.
  3. Since GrResourceCache recycles allocations across different origins under memory pressure, this allows a compromised renderer to potentially read back stale GPU memory belonging to other pages or contexts, resulting in a cross-origin read-only information disclosure.

Suggested Attack Vector / Trigger Steps (Theoretical)

An attacker could potentially attempt the following sequence to trigger the vulnerability:

  1. Allocate an MSAA-enabled surface or a mipmapped surface and perform drawing operations, marking the proxy dirty.
  2. Record a read or dependency task that schedules a resolve via GrTextureResolveRenderTask::addProxy(), immediately clearing the proxy's dirty flags in the recording state.
  3. Artificially induce a resource allocation failure or pre-flush failure (e.g., by queueing extremely large or complex SVG path rendering commands to exhaust atlas allocation limits) in the same flush phase, forcing the drawing manager to skip execution of the DAG.
  4. Trigger a subsequent readback operation (such as asyncRescaleAndReadPixelsYUV420) in a new flush. Since the proxy was already marked clean, the resolve is skipped, transferring the stale/unresolved GPU memory contents back to host memory.

Note: These steps are based on static code analysis and represent a potential path; actual behavior has not been validated with a functional proof-of-concept.

Suggested Remediation

To resolve this desynchronization, Skia should avoid mutating the proxy's active state during the DAG recording phase. Alternatively, if eager mutation is required for dependency tracking, a rollback mechanism must be introduced.

One potential fix is to implement a rollback or state restoration mechanism inside GrDrawingManager::removeRenderTasks() (or during task destruction) to revert any pending proxy state changes back to their original dirty state if the task is discarded without being executed.

Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040


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

Likely the proxy's dirty state is mutated eagerly during DAG recording and is not restored when the flush is aborted and the tasks are discarded.

Impact

A compromised renderer could potentially read back stale GPU memory belonging to other pages or contexts, resulting in a cross-origin read-only information disclosure; the report notes this path is theoretical and has not been validated with a proof-of-concept.

What the attacker needed

Compromised renderer; ability to trigger GPU allocation failure; memory pressure for cache recycling

The fix

Skia should avoid mutating proxy state during DAG recording, or add a rollback mechanism in removeRenderTasks() to restore the original dirty state when tasks are discarded.

How it was found

  1. Allocate an MSAA-enabled or mipmapped surface and draw to mark the proxy dirty.
  2. Record a task that schedules a resolve, which clears the proxy's dirty flags during recording.
  3. Induce a pre-flush or resource allocation failure so the drawing manager skips executing the DAG.
  4. Trigger a later readback in a new flush, which skips the resolve because the proxy is already marked clean.

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.

Skia is the graphics library Chrome uses to draw things on screen. It keeps track of whether certain image buffers are 'dirty' (need updating) or 'clean' (ready to read). This report says the library sometimes marks a buffer as clean too early, and if the drawing step then fails, it never corrects that mistake, so a later read might return old memory that belonged to something else.

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.