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.cppthird_party/skia/src/core/SkPathData.cppthird_party/skia/src/core/SkPath.cppthird_party/skia/src/gpu/ganesh/geometry/GrStyledShape.cppthird_party/skia/src/gpu/ganesh/ops/SmallPathShapeData.cppthird_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
- 30-bit Generation ID Wraparound: In
third_party/skia/src/core/SkPathData.cpp, thenext_pathdata_unique_id()function generates unique IDs forSkPathDataobjects. It masks the ID to 30 bits (id <<= 2; id >>= 2;) to reserve space for fill type information. This causes the globalgenIDcounter to wrap around after approximately 1.07 billion allocations. - Cache Key Truncation: When rendering small paths,
SmallPathRenderergenerates a cache key viaGrStyledShape::writeUnstyledKey. If a path is complex (has more than 10 verbs, perkMaxKeyFromDataVerbCnt), the function drops the raw geometry (points and verbs) from the key. The key relies entirely on the path's 30-bitgenIDand state (fill type, winding). - Shared GPU Cache without Eviction: The
SmallPathAtlasMgrcaches these rendered paths into aGrDrawOpAtlas. Because it is owned by aGrDirectContextshared viaSharedContextStatein the GPU process, this cache is globally accessible across all renderer processes. Furthermore, unlike other renderers (e.g.,SoftwarePathRenderer),SmallPathAtlasMgrdoes not register anSkIDChangeListener. 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.
- 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. - An attacker origin executes a JavaScript loop to repeatedly draw and discard paths to a
<canvas>context. By relying on Blink'sClientPaintCachebudget 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. - After approximately 1.07 billion path creations, the GPU process's atomic 30-bit
genIDcounter wraps around. - 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
genIDwith the victim's cachedgenID. - The cache key collides in
SmallPathAtlasMgr::findOrCreate. Instead of rasterizing the attacker's path,SmallPathOp::onPrepareDrawsbinds the victim's UV coordinates from the shared atlas. - 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
- Register an
SkIDChangeListenerinSmallPathAtlasMgrorSmallPathShapeData(similar to the pattern used inSoftwarePathRendererandTriangulatingPathRenderer) so that cached atlas entries are explicitly invalidated when the underlyingSkPathis modified or destroyed. - 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.
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
- A victim origin renders a small, complex path, caching its alpha mask in the shared GPU cache.
- An attacker origin repeatedly draws and discards paths to a canvas to create millions of paths without an out-of-memory crash.
- After about 1.07 billion path creations, the 30-bit generation ID counter wraps around.
- The attacker draws an exploratory complex path with matching matrix parameters to align its new generation ID with the victim's cached ID.
- The cache key collides, so the victim's cached atlas entry is bound instead of the attacker's path being rasterised.
- 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.