Information leak in Skia (CVE-2026-84359)
Skia's glyph atlas cache key omits the padding requirement, so a subrun needing a bilerp-safe border can reuse an entry created without one. A compromised renderer could then use linear filtering to bleed texels from adjacent atlas cells belonging to other origins into its output.
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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: Skia's glyph atlas management incorrectly omits padding requirements from its cache key, allowing subruns with different padding needs to share the same atlas entry. This leads to bilinear filtering bleeding texels from adjacent atlas cells belonging to other origins into the rendered output.
Affected files:
third_party/skia/src/gpu/ganesh/text/GlyphData.hthird_party/skia/src/gpu/graphite/text/GlyphData.hthird_party/skia/src/gpu/ganesh/text/GlyphData.cppthird_party/skia/src/gpu/graphite/text/GlyphData.cppthird_party/skia/src/gpu/ganesh/text/TextStrike.cppthird_party/skia/src/gpu/graphite/text/TextStrike.cppthird_party/skia/src/gpu/ganesh/text/GrAtlasManager.cppthird_party/skia/src/gpu/graphite/text/TextAtlasManager.cppthird_party/skia/src/text/gpu/SubRunContainer.cpp
Estimated timestamp from git blame: 2026-03-10
Summary
A vulnerability in Skia's glyph atlas management potentially allows for a cross-origin information leak in the GPU process. The issue stems from the GlyphEntryKey struct, used to cache glyphs within a strike, omitting the srcPadding field. This omission causes subruns with different padding requirements to incorrectly share the same atlas entry. Specifically, an entry created by a subrun that does not require a bilerp-safe border (like a DirectMaskSubRun) can be reused by a subrun that does (like a TransformedMaskSubRun). When the latter reuses the borderless entry and applies kLinear filtering, it bleeds texels from adjacent atlas cells belonging to other origins into the rendered output.
Root Cause Analysis
The root cause is located in the GlyphEntryKey definition in both Ganesh (third_party/skia/src/gpu/ganesh/text/GlyphData.h) and Graphite (third_party/skia/src/gpu/graphite/text/GlyphData.h) backends. The key only considers SkPackedGlyphID and MaskFormat:
struct GlyphEntryKey {
explicit GlyphEntryKey(SkPackedGlyphID id, MaskFormat format) : fPackedID(id), fFormat(format) {}
const SkPackedGlyphID fPackedID;
MaskFormat fFormat;
bool operator==(const GlyphEntryKey& that) const {
return fPackedID == that.fPackedID && fFormat == that.fFormat;
}
};
A GlyphEntry's atlas location is populated the first time a subrun calls regenerateAtlas. Subsequent subruns for the same glyph and format will find the entry via TextStrike::getGlyph and, seeing that the glyph is already in the atlas (via atlasManager->hasGlyph), skip the addGlyphToAtlas call.
In Chromium, fSupportBilerpAtlas is typically false by default (tied to the kRawDraw feature). This leads to the following potential exploit scenario:
- A compromised renderer sends a malicious
DrawSlugOpcontaining aDirectMaskSubRunfollowed by aTransformedMaskSubRunfor the same glyphGand strikeS. - The
DirectMaskSubRunhassrcPadding=0. It populates the atlas with glyphGwithout any padding or border. Adjacent glyphs (potentially from other origins) are packed tightly against it by the rectanizer. - The
TransformedMaskSubRunhassrcPadding=1. It reuses the existingGlyphEntrybecause the cache key matches. The logic that normally handles padding and UV insetting inaddGlyphToAtlasis skipped entirely because the glyph is already marked as present in the atlas. - The
TransformedMaskSubRunis rendered usingkLinearfiltering. Because the atlas entry lacks the expected border and the UVs were not inset, bilinear sampling at the edges of the glyph quad bleeds texels from the neighboring atlas cells (which may contain data from other origins) into the coverage output.
This behavior also bypasses the SkASSERT_RELEASE(width > 2*srcPadding) hardening because that check is located within the addGlyphToAtlas function, which is skipped on reuse.
Impact
Since the glyph atlas and strike cache are shared across all RasterDecoder instances (and thus all web origins) within the GPU process, a compromised renderer can potentially leak texture data from other origins. By magnifying the rendered output and using known-plaintext subtraction, an attacker might be able to recover the coverage values of adjacent glyphs in the shared atlas. This constitutes a potential high-severity cross-origin information leak in the GPU process.
Potential Steps to Reproduce
- From a compromised renderer, send strike data defining a strike
Swith onekA8glyphG(e.g., 6x6 pixels). - Serialize a
DrawSlugOpwhoseSubRunContainercontains, in order:- (a) A
DirectMaskSubRunreferencingGfrom strikeSwith an identity matrix. - (b) A
TransformedMaskSubRunreferencing the sameGandSbut with a scaling matrix (e.g., 0.25x scale for 4x magnification).
- (a) A
- Execute the slug into an attacker-controlled SharedImage tile via the
RasterCHROMIUMinterface. - Read back the tile pixels and subtract the known coverage of
Gto isolate the contribution from adjacent atlas cells.
Note: These are potential steps as our tooling does not yet have the ability to run code.
Suggested Fix
The GlyphEntryKey struct should be updated to include the srcPadding field (or the resulting internal padding) to ensure that subruns with different padding requirements do not share the same atlas entry. Corresponding changes should be made to TextStrike::getGlyph and the GlyphEntry constructor.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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 GlyphEntryKey used to cache glyphs in a strike omits the srcPadding field, so subruns with different padding requirements share the same atlas entry and the padding/UV-inset logic in addGlyphToAtlas is skipped on reuse.
Impact
Because the glyph atlas and strike cache are shared across all RasterDecoder instances, a compromised renderer could potentially leak texture data from other origins, though the report notes its tooling could not run code to confirm this.
What the attacker needed
Compromised renderer; GPU process with shared atlas
The fix
The GlyphEntryKey should be updated to include the srcPadding field (or the resulting internal padding), with corresponding changes to TextStrike::getGlyph and the GlyphEntry constructor.
How it was found
- From a compromised renderer, send strike data defining a strike with one kA8 glyph.
- Serialize a DrawSlugOp whose SubRunContainer contains a DirectMaskSubRun for that glyph with an identity matrix.
- Include in the same container a TransformedMaskSubRun for the same glyph and strike with a scaling matrix.
- Execute the slug into an attacker-controlled SharedImage tile via RasterCHROMIUM.
- Read back the tile pixels and subtract the known coverage of the glyph to isolate contributions from adjacent atlas cells.
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 text. It stores small pictures of letters in a shared grid called an atlas, and it caches them by a key. The key forgot to include whether a letter needs a safety margin, so a letter stored without a margin could later be drawn with smoothing that pulls in pixels from its neighbours, which may 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.