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

Uninitialized Use in Skia (CVE-2026-17771)

The Skia Ganesh backend in Chromium may allow a malicious site to read stale GPU memory from other origins because texture coordinate clamping for approx-fit textures does not account for hardware precision errors, letting bilinear samplers fetch uninitialized padding texels. An attacker could potentially reconstruct content rendered by other websites.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The Skia Ganesh backend in the GPU process potentially leaks cross-origin pixel data due to improper texture coordinate clamping when using linear filters on approx-fit textures. Malicious sites may be able to read stale GPU memory from other origins by sampling uninitialized padding texels in recycled scratch textures.

Affected files:

  • third_party/skia/src/gpu/ganesh/effects/GrTextureEffect.h
  • third_party/skia/src/gpu/ganesh/effects/GrTextureEffect.cpp
  • third_party/skia/src/gpu/ganesh/ops/TextureOp.cpp
  • third_party/skia/src/gpu/ganesh/ops/QuadPerEdgeAA.cpp
  • third_party/skia/src/gpu/ganesh/SurfaceContext.cpp
  • third_party/skia/src/gpu/ganesh/GrResourceProvider.cpp
  • third_party/skia/src/gpu/ganesh/GrBlurUtils.cpp
  • third_party/skia/src/gpu/ganesh/Device_drawTexture.cpp

Estimated timestamp from git blame: 2020-01-24

Summary

In Chromium's Skia Ganesh backend, the GrResourceCache is shared across all origins within the GPU process to facilitate Out-of-Process Rasterization (OOP-R). When complex filters (e.g., large blurs) are applied, Skia often allocates 'approx-fit' intermediate textures that are physically larger than their logical content. When these textures are recycled, their 'padding' region is not cleared. Due to a configuration choice in Chromium's Skia build, the shader-based clamping logic for these textures may allow hardware bilinear samplers to fetch data from this uninitialized padding, leading to a potential cross-origin information leak.

Technical Details

In third_party/skia/src/gpu/ganesh/effects/GrTextureEffect.h, the constant kLinearInset defines the clamping boundary for texture subsets. It is calculated as 0.5f + kInsetEpsilon. In Chromium, the macro SK_USE_SAFE_INSET_FOR_TEXTURE_SAMPLING is not defined, resulting in kInsetEpsilon being 0.f.

C++
// third_party/skia/src/gpu/ganesh/effects/GrTextureEffect.h
#if defined(SK_USE_SAFE_INSET_FOR_TEXTURE_SAMPLING)
    inline static constexpr float kInsetEpsilon = 0.0001f;
#else
    inline static constexpr float kInsetEpsilon = 0.f;
#endif
inline static constexpr float kLinearInset = 0.5f + kInsetEpsilon; // 0.5f in Chromium

When sampling a subset of width W, the shader clamps the coordinate to exactly W - 0.5. On many GPUs (especially mobile hardware using mediump), precision limits in the shader or the hardware bilinear unit can cause the sampler to fetch the texel at index W, which resides in the uninitialized padding.

Since GrResourceCache is shared across all GpuChannels (and thus all origins) in SharedContextState, a scratch texture previously used by a victim origin may be recycled for an attacker. If the attacker's logical dimensions are smaller than the victim's, the attacker can potentially sample the victim's stale data in the padding. If the stale memory contains NaN or Inf bit patterns (common in F16/F32 textures), these values will propagate to the attacker's output regardless of the sampling weight.

Potential Impact

This is a cross-origin information leak of GPU pixel data. An attacker could potentially reconstruct content rendered by other websites. On Android, the risk is elevated as the GPU process is currently unsandboxed by default.

Suggested Reproductions Steps (Hypothetical)

  1. From an attacker page, utilize a 2D canvas with a large CSS or Canvas filter (e.g., ctx.filter = 'blur(50px)') to force the allocation of SkBackingFit::kApprox intermediate textures.
  2. Prime the shared GPU scratch cache by having a different origin (victim) render content that uses similar approximate texture sizes.
  3. In the attacker's context, draw the filtered content and sample the edges of the logical subset using linear filtering.
  4. Use a high-precision F16 canvas and additive blending (globalCompositeOperation = 'lighter') to amplify subtle contributions from the padding texels.
  5. Read back the edge pixels using ctx.getImageData() to attempt reconstruction of the stale padding data.

Suggested Fix

Define SK_USE_SAFE_INSET_FOR_TEXTURE_SAMPLING in Chromium's Skia configuration (e.g., in skia/config/SkUserConfig.h or via GN defines). This adds a small epsilon (0.0001f) to the inset, ensuring that hardware samplers remain strictly within the logical texel boundaries even in the presence of precision errors.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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 texture coordinate clamping inset lacks a small epsilon, so hardware bilinear samplers can fetch one texel beyond the logical subset into uninitialized padding of recycled approx-fit textures.

Impact

This could leak cross-origin GPU pixel data, potentially allowing an attacker to reconstruct content rendered by other websites; on Android the risk is elevated because the GPU process is currently unsandboxed by default.

What the attacker needed

Victim renders content with similar texture sizes; attacker uses large filters on canvas; GPU with precision limits (e.g., mobile)

The fix

Define SK_USE_SAFE_INSET_FOR_TEXTURE_SAMPLING in Chromium's Skia configuration to add a small epsilon to the inset, ensuring hardware samplers stay within logical texel boundaries.

How it was found

  1. From an attacker page, use a 2D canvas with a large filter to force allocation of approx-fit intermediate textures.
  2. Prime the shared GPU scratch cache by having a victim origin render content using similar approximate texture sizes.
  3. In the attacker's context, draw filtered content and sample the edges of the logical subset using linear filtering.
  4. Use a high-precision F16 canvas and additive blending to amplify subtle contributions from padding texels.
  5. Read back edge pixels using getImageData to attempt reconstruction of stale padding data.

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 something with a blur or other filter, the browser's graphics system may create a temporary image that is slightly larger than needed. The extra border area is not cleared before the image is reused for another website. Because of a tiny rounding error in how the graphics hardware picks pixels, a malicious site might be able to read that leftover border and see fragments of what another site drew.

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.