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

Information leak in Skia (CVE-2026-79144)

A 30-bit wraparound in Skia path generation IDs, combined with a shared GPU cache that is not evicted when paths are destroyed, could let an attacker collide with a victim's cached path and read its alpha mask. The attacker could then extract cross-origin pixel data from a canvas.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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 without the Chrome Security team.

Overview: A potential cross-origin information leak exists in the GPU process when using the Ganesh rendering backend. An attacker could potentially wrap the 30-bit SkPathData generation ID counter to collide with a victim's cached path in the shared SmallPathAtlasMgr. This collision could allow the attacker to read the alpha mask of the victim's cross-origin paths.

Affected files:

  • third_party/skia/src/gpu/ganesh/ops/SmallPathAtlasMgr.cpp
  • third_party/skia/src/core/SkPathData.cpp
  • third_party/skia/src/core/SkPath.cpp
  • third_party/skia/src/gpu/ganesh/geometry/GrStyledShape.cpp
  • third_party/skia/src/gpu/ganesh/ops/SmallPathShapeData.cpp
  • third_party/skia/src/gpu/ganesh/ops/SmallPathRenderer.cpp

Estimated timestamp from git blame: 2025-11-03

A potential cross-origin information leak exists in the Ganesh backend's SmallPathAtlasMgr. Due to a 30-bit wraparound in path generation IDs combined with cache sharing across origins in the GPU process, an attacker could potentially read the alpha masks (silhouettes) of small, complex paths rendered by other origins.

Technical Details

  1. 30-bit Generation ID Wraparound: In third_party/skia/src/core/SkPathData.cpp, the next_pathdata_unique_id() function generates unique IDs for SkPathData objects. It masks the ID to 30 bits (id <<= 2; id >>= 2;) to reserve space for fill type information. This causes the global genID counter to wrap around after approximately 1.07 billion allocations.
  2. Cache Key Truncation: When rendering small paths, SmallPathRenderer generates a cache key via GrStyledShape::writeUnstyledKey. If a path is complex (has more than 10 verbs, per kMaxKeyFromDataVerbCnt), the function drops the raw geometry (points and verbs) from the key. The key relies entirely on the path's 30-bit genID and state (fill type, winding).
  3. Shared GPU Cache without Eviction: The SmallPathAtlasMgr caches these rendered paths into a GrDrawOpAtlas. Because it is owned by a GrDirectContext shared via SharedContextState in the GPU process, this cache is globally accessible across all renderer processes. Furthermore, unlike other renderers (e.g., SoftwarePathRenderer), SmallPathAtlasMgr does not register an SkIDChangeListener. The cache entry is not evicted when the original path is destroyed, keeping it alive until the atlas plot is randomly recycled.

Suggested Attacker Steps

Note: These are potential steps based on code analysis. Our tooling agent does not execute code to verify a proof-of-concept.

  1. A victim origin renders a small, complex path (e.g., >10 verbs, bounds <73px), such as an SVG icon or custom font glyph. This caches the path's alpha mask in the GPU process's shared SmallPathAtlasMgr.
  2. An attacker origin executes a JavaScript loop to repeatedly draw and discard paths to a <canvas> context. By relying on Blink's ClientPaintCache budget limits and purges, or using volatile paths, the attacker can deserialize millions of paths in the GPU process without causing an Out-Of-Memory (OOM) crash.
  3. After approximately 1.07 billion path creations, the GPU process's atomic 30-bit genID counter wraps around.
  4. The attacker times or brute-forces a draw call of an exploratory complex path (>10 verbs) using matrix parameters matching the victim's, aligning its new genID with the victim's cached genID.
  5. The cache key collides in SmallPathAtlasMgr::findOrCreate. Instead of rasterizing the attacker's path, SmallPathOp::onPrepareDraws binds the victim's UV coordinates from the shared atlas.
  6. The victim's alpha mask is drawn onto the attacker's canvas. The attacker extracts this cross-origin pixel data using CanvasRenderingContext2D.getImageData().

Suggested Fix

  1. Register an SkIDChangeListener in SmallPathAtlasMgr or SmallPathShapeData (similar to the pattern used in SoftwarePathRenderer and TriangulatingPathRenderer) so that cached atlas entries are explicitly invalidated when the underlying SkPath is modified or destroyed.
  2. Alternatively, prevent cross-origin cache collisions in the GPU process entirely by scoping the cache keys to the renderer process or using a 64-bit generation ID.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 a 30-bit generation ID counter that wraps around, combined with a GPU-process cache keyed only on that ID for complex paths and no listener to evict entries when the source path is destroyed.

Impact

An attacker could potentially read the alpha masks of small, complex paths rendered by other origins, leaking cross-origin visual information; the report notes the steps are based on code analysis and were not executed.

What the attacker needed

Victim renders a small complex path; attacker can run JavaScript; about 1.07 billion path creations; GPU process uses Ganesh backend

The fix

The cache should register an ID change listener so entries are invalidated when the source path is destroyed, or cache keys should be scoped per renderer process or use a 64-bit generation ID.

How it was found

  1. A victim origin renders a small, complex path, caching its alpha mask in the shared GPU cache.
  2. An attacker origin repeatedly draws and discards paths to a canvas to create millions of paths without an out-of-memory crash.
  3. After about 1.07 billion path creations, the 30-bit generation ID counter wraps around.
  4. The attacker draws an exploratory complex path with matching matrix parameters to align its new generation ID with the victim's cached ID.
  5. The cache key collides, so the victim's cached atlas entry is bound instead of the attacker's path being rasterised.
  6. The victim's alpha mask is drawn onto the attacker's canvas and extracted with getImageData().

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 draws a shape, the browser's graphics code can store a rendered copy in a shared cache so it does not have to redraw it. This report says that cache uses a number that eventually repeats, and entries are not removed when the original shape is gone, so one site might be able to make its shape look up another site's cached drawing and read its outline.

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.