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

Insufficient validation of untrusted input in Skia (CVE-2026-14414)

Skia's Slug deserialisation in the Ganesh backend does not check that the declared creation bounds match the actual glyph positions, so a compromised renderer can supply tiny bounds while placing glyphs far outside them. This can drop clipping and cause an undersized destination copy to be taken from an uncleared recycled scratch texture, potentially letting fragments sample stale pixels from other origins.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 45 days

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 lack of consistency checks in Skia's Slug deserialization allows a compromised renderer to potentially trigger a cross-origin information leak. By providing undersized bounds for glyphs located elsewhere, an attacker can bypass clipping and sample from uninitialized recycled GPU scratch textures in the GPU process.

Affected files:

  • third_party/skia/src/text/gpu/VertexFiller.cpp
  • third_party/skia/src/gpu/ganesh/ops/AtlasTextOp.cpp
  • third_party/skia/src/gpu/ganesh/SurfaceDrawContext.cpp
  • third_party/skia/src/text/gpu/SubRunContainer.cpp
  • third_party/skia/src/gpu/ganesh/text/GlyphData.cpp
  • third_party/skia/src/gpu/ganesh/glsl/GrGLSLProgramBuilder.cpp
  • third_party/skia/src/gpu/ganesh/GrSurfaceProxy.cpp

Estimated timestamp from git blame: 2022-08-25

Summary

A potential vulnerability in Skia's Ganesh backend, specifically within the VertexFiller class used for text rendering, may allow for a cross-origin information leak. A compromised renderer can provide a serialized sktext::gpu::Slug payload where the declared creationBounds are inconsistent with the actual glyph vertex positions. This desynchronization can lead to the elision of clipping and the subsequent allocation of an undersized destination-copy texture during advanced blend mode operations. Because these destination copies may use recycled scratch textures without clearing them, fragments rendered outside the intended region can sample stale pixel data from other origins.

Root Cause

The potential issue is located in VertexFiller::MakeFromBuffer within third_party/skia/src/text/gpu/VertexFiller.cpp. The method deserializes creationBounds and glyph positions (leftTop) from a renderer-supplied buffer without enforcing any relationship or consistency between them:

C++
// third_party/skia/src/text/gpu/VertexFiller.cpp
std::optional<VertexFiller> VertexFiller::MakeFromBuffer(SkReadBuffer &buffer, ...) {
    // ...
    SkRect creationBounds = buffer.readRect();
    SkSpan<SkPoint> leftTop = MakePointsFromBuffer(buffer, alloc);
    // ...
    return VertexFiller{..., creationBounds, leftTop, ...};
}

A compromised renderer could set creationBounds to a very small area (e.g., 1x1) while placing glyphs far outside those bounds.

Potential Exploitation Path

The following steps are theorized based on a code review of the Ganesh backend:

  1. Clip Elision: In AtlasTextOp::Make (third_party/skia/src/gpu/ganesh/ops/AtlasTextOp.cpp), calculate_clip is called using the provided creationBounds. If these bounds are small and within the current user clip, the GrClip may be dropped (clip = nullptr), and the operation's bounds are set to the tiny, incorrect rect.
  2. Undersized Destination-Copy: When an advanced blend mode (like kDifference) is used, SurfaceDrawContext::addDrawOp (third_party/skia/src/gpu/ganesh/SurfaceDrawContext.cpp) triggers a destination copy. setupDstProxyView uses the operation's bounds (the lied 1x1 rect) to determine the copy size, resulting in a tiny copy region.
  3. Recycled Scratch Textures: The destination copy is allocated with SkBackingFit::kApprox, which pulls a recycled scratch texture from the GrResourceCache. This cache is shared across origins in the GPU process. Stale content from other origins is typically preserved in these textures as they are not cleared before use.
  4. Unclipped Sampling: Although the destination copy is tiny, the actual glyphs are rendered at their true positions because clipping was dropped in Step 1. The fragment shader calculates destination texture coordinates relative to the backing dimensions of the scratch texture but does not clamp them to the copied region. Consequently, fragments outside the 1x1 area sample stale pixels from the recycled texture.
  5. Information Exfiltration: By using a blend mode like kDifference and a known source color, an attacker can potentially recover the stale pixel data from the rendered results, leaking cross-origin GPU memory.

Suggested Fix

Enforce consistency during deserialization in VertexFiller::MakeFromBuffer. After reading the glyph positions, compute their actual bounding box and verify that it is contained within the deserialized creationBounds. Alternatively, the creationBounds should be recomputed from the actual glyph positions rather than relying on the potentially malicious serialized value.

Note: These are suggested/potential steps identified via static analysis; a functional proof-of-concept has not yet been executed.

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.

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 deserialiser reads the declared creation bounds and the glyph positions independently and never verifies that the glyphs actually fit inside the bounds.

Impact

A compromised renderer could potentially leak cross-origin GPU memory, though the report notes no functional proof of concept has been executed.

What the attacker needed

Compromised renderer process; advanced blend mode rendering; GPU process with shared scratch textures

The fix

Consistency should be enforced during deserialisation by recomputing the bounding box from the glyph positions and checking it fits within the declared creation bounds, or by recomputing the bounds entirely.

How it was found

  1. Supply a serialised Slug whose creation bounds are tiny while glyphs sit far outside them.
  2. The small bounds fall inside the user clip, so clipping is dropped and the operation bounds are set to the tiny rect.
  3. An advanced blend mode triggers a destination copy sized from the tiny bounds, pulling a recycled scratch texture.
  4. The glyphs still render at their true positions and sample outside the copied region, reading stale pixels.
  5. A blend mode with a known source colour is used to recover the stale pixel values.

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.

A web browser splits work between a renderer process (which handles page content) and a GPU process (which draws pixels). The GPU process reuses memory buffers between different websites without wiping them, so old pixels from one site can linger. This report suggests a malicious page could trick the drawing code into reading those leftover pixels, which would leak data across sites, though no working exploit was built.

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.