Uninitialized Use in Skia (CVE-2026-11057)
A no-op function in Skia's remote glyph cache leaves a glyph image buffer uninitialized, so a compromised renderer could cause uninitialized GPU process heap memory to be uploaded to a texture atlas and read back. This could leak up to 256KB of GPU process memory per glyph, potentially exposing cross-origin data.
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 without the security team.
Overview: A potential vulnerability in Skia's remote glyph cache allows a compromised renderer to leak up to 256KB of uninitialized GPU process heap memory per glyph. This occurs because SkScalerContextProxy::generateImage is a no-op that leaves its destination buffer uninitialized. By carefully crafting a font strike, an attacker can force the system to allocate an uninitialized bitmap and upload it to the texture atlas, leading to a cross-origin information leak.
Affected files:
third_party/skia/src/core/SkTypeface_remote.cppthird_party/skia/src/core/SkScalerContext.cppthird_party/skia/src/core/SkGlyph.cppthird_party/skia/src/gpu/ganesh/text/GrAtlasManager.cppthird_party/skia/src/gpu/graphite/text/GlyphData.cppthird_party/skia/src/gpu/graphite/text/TextAtlasManager.cppgpu/command_buffer/service/raster_decoder.cc
Estimated timestamp from git blame: 2023-07-27
Background
In Chrome's Out-of-Process Rasterization (OOP-R), the renderer process communicates font and glyph information to the GPU process. This information is cached in the GPU process using a remote glyph cache (SkChromeRemoteGlyphCache). When a glyph needs to be rendered, it is added to a texture atlas if it isn't already present.
Vulnerability Description
There is a potential heap memory disclosure vulnerability in the GPU process caused by how SkScalerContextProxy handles missing glyph images.
When a glyph's image is missing from the cache, SkGlyph::setImage allocates memory for the glyph's mask by calling allocImage. This memory is backed by SkArenaAlloc, which uses sk_malloc_throw. In Chrome production builds, PartitionAlloc does not zero-fill malloc allocations by default, meaning the allocated buffer contains raw, uninitialized GPU process heap memory.
The system then calls scalerContext->getImage to populate this buffer. For remote typefaces, this invokes SkScalerContextProxy::generateImage (third_party/skia/src/core/SkTypeface_remote.cpp). However, this function is a no-op that simply notifies a cache miss and returns without writing to the buffer. The uninitialized heap data is then blindly copied into the text atlas staging buffer by TextAtlasManager and uploaded to the GPU.
Potential Attack Vector
An attacker who has compromised a sandboxed renderer process could potentially exploit this issue with the following steps (note: this is a theoretical sequence, as our tooling cannot currently run live code):
- Craft a Malicious Strike: The attacker constructs a serialized font strike containing an
SkDescriptor. They setfFrameWidth = -1.0fto indicate a fill operation, ensuring thatfGenerateImageFromPathevaluates tofalsein the GPU process. - Define a Maximum Size Glyph: The attacker includes a glyph with metrics set to the maximum allowed atlas dimensions (e.g., 256x256) and an ARGB32 format, resulting in an expected image size of 256KB.
- Omit Image Data: To bypass image verification, the attacker places the glyph in the
pathsCountsection of the strike buffer rather than theimagesCountsection, and sets thehasPathboolean tofalse. This creates anSkGlyphwith valid metrics but anullptrimage. - Send and Render: The attacker sends this strike to the GPU process and subsequently issues a draw command referencing the malicious glyph.
- Leak via Atlas Upload: The GPU process realizes the glyph image is missing and attempts to generate it. It allocates a 256KB uninitialized buffer and calls the
generateImageno-op. The uninitialized GPU heap memory is uploaded to the atlas texture. - Exfiltration: The text is rendered onto the canvas using the tainted atlas texture. The attacker reads back the canvas pixels (e.g., via WebGL or
getImageData), exfiltrating 256KB of sensitive GPU process memory per drawn glyph.
Impact
This vulnerability allows a compromised renderer to repeatedly read large, controlled chunks of the GPU process heap. An attacker can use this to leak sensitive cross-origin data, such as the contents of other renderers' SharedImages, browser UI state, or cryptographic material, facilitating further attacks or a complete GPU process compromise.
Suggested Remediation
Memory allocated for glyph images should be explicitly zero-initialized, especially when interacting with proxy contexts that may not populate the buffer.
- Update
SkScalerContextProxy::generateImageto explicitly zero the destination buffer (e.g., usingsk_bzero(dst, glyph.imageSize())) before returning. - Alternatively, ensure that
SkGlyph::allocImagezeroes the memory upon allocation, or enforce stricter validation inSkStrike::mergeFromBufferto reject glyphs that possess metrics but lack both image and path data when they should be populated.
Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33
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, the proxy function that should generate a glyph image is a no-op that returns without writing to the destination buffer, and the allocation is not zero-initialised.
Impact
A compromised renderer could repeatedly leak large chunks of GPU process heap memory, potentially exposing cross-origin data such as other renderers' SharedImages, browser UI state, or cryptographic material, though the report notes the attack sequence is theoretical and not demonstrated live.
What the attacker needed
Compromised renderer process; ability to send crafted font strikes to GPU process
The fix
The report suggests zero-initialising glyph image memory, either in the proxy's generateImage function or in SkGlyph::allocImage, or adding stricter validation to reject glyphs with metrics but no image or path data.
How it was found
- Craft a serialized font strike with a descriptor that sets a fill operation and disables image generation from path.
- Include a glyph with maximum atlas dimensions and ARGB32 format to request a large image.
- Place the glyph in the paths section with hasPath false to bypass image verification and create a glyph with null image.
- Send the strike to the GPU process and issue a draw command referencing the glyph.
- The GPU process allocates an uninitialized buffer, calls the no-op generateImage, and uploads the uninitialized memory to the atlas.
- Read back the rendered canvas pixels to exfiltrate the leaked GPU heap 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 draws text, the browser's renderer process sends font details to a separate GPU process, which caches the rendered letters. A bug meant that when a letter's image was missing, the GPU process allocated memory but never filled it in, so whatever was already in that memory (leftover data from other programs) got drawn and could be read back by the attacker. This could let an attacker who already controls the renderer steal sensitive information from the GPU process.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.