Skip to content
Memory corruption Advisory Advanced CVE-2026-13934

Insufficient validation of untrusted input in Dawn (CVE-2026-13934)

The Graphite-Dawn-Vulkan path on Android did not enforce the Vulkan rule that samplers with YCbCr conversion must use CLAMP_TO_EDGE address modes, so a repeat-tiled YCbCr image produced an invalid sampler creation call. A compromised renderer could reach driver-level undefined behaviour in the unsandboxed GPU process, which the report suggests could lead to a sandbox escape.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 48 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 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 Graphite-Dawn-Vulkan path on Android fails to enforce the Vulkan requirement that samplers using YCbCr conversion must have their address modes set to CLAMP_TO_EDGE. A compromised renderer can trigger this by applying REPEAT tiling to a YCbCr image, leading to an invalid vkCreateSampler call. Since the GPU process is unsandboxed on Android, this driver-level undefined behavior could facilitate a sandbox escape.

Affected files:

  • third_party/dawn/src/dawn/native/vulkan/SamplerVk.cpp
  • third_party/dawn/src/dawn/native/Sampler.cpp
  • third_party/skia/src/gpu/graphite/dawn/DawnSampler.cpp

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

A potential vulnerability exists in the Graphite-Dawn-Vulkan path on Android where the system fails to enforce Vulkan's VUID-01646 requirement. The Vulkan specification states that if a sampler YCbCr conversion is enabled, the sampler's address modes (addressModeU, addressModeV, and addressModeW) must be set to VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE.

Currently, multiple layers (Skia Graphite, Dawn Frontend, and Dawn Vulkan Backend) omit the necessary validation or overrides to ensure this constraint is met. A compromised renderer can exploit this to trigger driver-level undefined behavior in the unsandboxed GPU process.

Technical Analysis

1. Root Cause in Skia Graphite

In third_party/skia/src/gpu/graphite/KeyHelpers.cpp, the function can_do_tiling_in_hw (line 536) determines if tiling can be handled by the hardware sampler. It currently only checks if the subset contains the full image and if decal substitution is required. It fails to check if the image requires an immutable YCbCr sampler. Consequently, ImageShaderBlock::AddBlock (line 567) may create a SamplerDesc with SkTileMode::kRepeat even when YCbCr info is present.

2. Translation in Skia Dawn Backend

In third_party/skia/src/gpu/graphite/dawn/DawnSampler.cpp, DawnSampler::Make (line 73) translates the SamplerDesc into a wgpu::SamplerDescriptor. If kRepeat was chosen, it is translated to wgpu::AddressMode::Repeat (line 77), and the YCbCr info is attached via a wgpu::YCbCrVkDescriptor (line 96).

3. Missing Validation in Dawn

Dawn's frontend validation in third_party/dawn/src/dawn/native/Sampler.cpp:ValidateSamplerDescriptor (line 40) does not verify that AddressMode is compatible with the YCbCrVkDescriptor. This allows the invalid descriptor to reach the Vulkan backend.

4. Backend Execution

In third_party/dawn/src/dawn/native/vulkan/SamplerVk.cpp, Sampler::Initialize (line 100) populates VkSamplerCreateInfo with VK_SAMPLER_ADDRESS_MODE_REPEAT and attaches the VkSamplerYcbcrConversionInfo. The subsequent call to vkCreateSampler (line 150) violates VUID-01646.

Impact and Reachability

This issue is reachable from a compromised renderer on Android. An attacker can:

  1. Obtain a SharedImage mailbox referencing a YCbCr format (e.g., from a video element).
  2. Construct a cc::DrawRectOp using a PaintShader with SkTileMode::kRepeat referencing that mailbox.
  3. Submit the command to the GPU process.

On Android, the GPU process is unsandboxed by default (confirmed in content/gpu/gpu_main.cc and sandbox/policy/features.cc). Driver-level undefined behavior resulting from a VUID violation can lead to memory corruption or cross-origin information leaks, providing a direct path for a sandbox escape from a compromised renderer to a high-privileged process.

Suggested Fix

  1. Skia Graphite: Update can_do_tiling_in_hw in third_party/skia/src/gpu/graphite/KeyHelpers.cpp to return false if the image has immutable YCbCr info and the tile mode is not kClamp. This will force Skia to handle tiling in the shader instead of the hardware sampler.

  2. Dawn Frontend: Add validation in third_party/dawn/src/dawn/native/Sampler.cpp:ValidateSamplerDescriptor to ensure that if a YCbCrVkDescriptor is present, the address modes u, v, and w must be wgpu::AddressMode::ClampToEdge.

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 several layers (Skia Graphite, Dawn frontend and Dawn Vulkan backend) each omitted the check that a YCbCr sampler must use CLAMP_TO_EDGE address modes, so an invalid descriptor reached the driver.

Impact

Driver-level undefined behaviour from the rule violation could lead to memory corruption or cross-origin information leaks, and since the GPU process is unsandboxed on Android this could provide a path from a compromised renderer to a high-privileged process.

What the attacker needed

Compromised renderer on Android; YCbCr image such as a video frame; unsandboxed GPU process

The fix

It should be fixed by making Skia fall back to shader-based tiling when a YCbCr image is not clamped, and by adding Dawn frontend validation that requires clamp-to-edge address modes whenever a YCbCr descriptor is present.

How it was found

  1. Obtain a SharedImage mailbox that references a YCbCr format, for example from a video element.
  2. Build a draw operation whose paint shader uses repeat tiling and references that mailbox.
  3. Submit the command to the GPU process, which creates the invalid sampler.

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 sampler is the part of a graphics system that decides how an image is read when it is drawn, including what happens at the edges. Vulkan, the graphics API here, has a rule that images in a special colour format called YCbCr must only use a clamp-at-the-edge setting, but the code let a repeat setting through. Because the graphics driver runs in a process without a sandbox on Android, breaking that rule could let an attacker who already controls the web page renderer cause memory problems in a more powerful process.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.