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

Inappropriate implementation in Dawn (CVE-2026-14061)

A logic error in Dawn's command encoder skips the compute pass that applies timestamp quantization when the GPU reports a timestamp period of exactly 1.0 ns. This lets malicious web content read raw, unquantized high-resolution GPU ticks, providing a precise timer that could aid microarchitectural timing side-channel attacks.

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.

Overview: A logic error in Dawn's command encoder bypasses the WebGPU timestamp quantization mitigation when the GPU hardware reports a timestamp period of exactly 1.0 nanosecond. An optimization check skips the internal compute pass responsible for applying the quantization mask, allowing malicious web content to read raw, unquantized high-resolution GPU ticks. This provides a precise timer primitive that can facilitate microarchitectural timing side-channel attacks.

Affected files:

  • third_party/dawn/src/dawn/native/CommandEncoder.cpp
  • third_party/dawn/src/dawn/native/metal/DeviceMTL.mm
  • third_party/dawn/src/dawn/native/vulkan/DeviceVk.cpp

Estimated timestamp from git blame: 2026-01-26

Description

To mitigate high-resolution timing side-channel attacks, Dawn implements a TimestampQuantization toggle (enabled by default) that coarsens WebGPU timestamp queries. This is achieved by applying a quantization mask (kTimestampQuantizationMask = 0xFFFF0000) to the raw GPU ticks, reducing the timer resolution to approximately 65.5µs.

However, there is a potential bypass in CommandEncoder::APIResolveQuerySet (third_party/dawn/src/dawn/native/CommandEncoder.cpp). When resolving a timestamp query set, Dawn encodes an internal compute pipeline pass (EncodeTimestampsToNanosecondsConversion) to scale the raw hardware ticks into nanoseconds and apply the quantization mask.

To avoid an unnecessary compute pass when scaling is not mathematically required, the code includes the following optimization check:

C++
// third_party/dawn/src/dawn/native/CommandEncoder.cpp
if (querySet->GetQueryType() == wgpu::QueryType::Timestamp &&
    !GetDevice()->IsToggleEnabled(Toggle::DisableTimestampQueryConversion) &&
    GetDevice()->GetTimestampPeriodInNS() != 1.0f) { 
    // ...
    DAWN_TRY(EncodeTimestampsToNanosecondsConversion(...));
}

If GetTimestampPeriodInNS() == 1.0f, this condition fails and EncodeTimestampsToNanosecondsConversion is completely skipped. Because the quantization mask is only applied within the compute shader generated by this skipped pass, the backend executes a raw buffer copy (e.g., vkCmdCopyQueryPoolResults in Vulkan). The user's buffer is populated with raw, unquantized GPU ticks.

This affects systems where the driver natively reports a timestamp period of exactly 1.0, most notably NVIDIA GPUs running on the Vulkan backend (e.g., on Linux, ChromeOS, and Android). It also temporarily affects the Metal backend, which initializes its timestamp period to 1.0f before a Kalman filter refines it.

Impact

An attacker can obtain ~1ns resolution GPU timers, completely defeating the intended ~65.5µs coarsening mitigation. This high-precision timer primitive can be used to mount GPU microarchitectural side-channel attacks, cache-timing attacks, and fine-grained device fingerprinting.

Suggested Reproduction Steps

Note: Our tooling agent does not have the ability to run code, so these are suggested steps to trigger the potential vulnerability.

  1. On a system with an NVIDIA GPU using the Vulkan backend, navigate to a page executing malicious JavaScript.
  2. The script requests a WebGPU device with the required feature enabled: const device = await adapter.requestDevice({ requiredFeatures: ['timestamp-query'] });
  3. Create a GPUQuerySet of type "timestamp" and a GPUBuffer with QUERY_RESOLVE and MAP_READ usages.
  4. Encode a compute or render pass and provide a timestampWrites array in the descriptor (e.g., recording timestamps at beginningOfPass and endOfPass).
  5. Resolve the queries by calling commandEncoder.resolveQuerySet(querySet, 0, queryCount, resolveBuffer, 0); and submit the command buffer.
  6. Map the resolve buffer to the CPU: await resolveBuffer.mapAsync(GPUMapMode.READ);
  7. Read the 64-bit integer values. Observe that the lower 16 bits are non-zero, proving that the 0xFFFF0000 quantization mask was not applied.

Suggested Fix

The optimization check in CommandEncoder::APIResolveQuerySet should be modified so that it does not skip the compute pass if timestamp quantization is mandated, regardless of the timestamp period.

For example, the condition should be updated to execute the compute pass if either scaling is needed or quantization is enabled:

C++
const bool needsScaling = GetDevice()->GetTimestampPeriodInNS() != 1.0f;
const bool needsQuantization = GetDevice()->IsToggleEnabled(Toggle::TimestampQuantization);

if (querySet->GetQueryType() == wgpu::QueryType::Timestamp &&
    !GetDevice()->IsToggleEnabled(Toggle::DisableTimestampQueryConversion) &&
    (needsScaling || needsQuantization)) {
    // ... execute EncodeTimestampsToNanosecondsConversion
}

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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.

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 an optimization check in the query resolve path skips the conversion and quantization compute pass whenever the timestamp period is exactly 1.0 ns, even though quantization is still required.

Impact

An attacker could obtain roughly 1 ns resolution GPU timers, defeating the intended ~65.5 µs coarsening and potentially enabling GPU microarchitectural side-channel, cache-timing and fingerprinting attacks; the report notes the affected systems are mainly NVIDIA Vulkan and temporarily Metal.

What the attacker needed

WebGPU with timestamp-query feature; GPU reports timestamp period of 1.0 ns; NVIDIA Vulkan or early Metal backend; Victim visits attacker-controlled page

The fix

The optimization check should be changed so the conversion and quantization pass runs whenever quantization is enabled, not only when scaling is needed.

How it was found

  1. On a system with an NVIDIA GPU using the Vulkan backend, open a page running JavaScript.
  2. Request a WebGPU device with the timestamp-query feature enabled.
  3. Create a timestamp query set and a resolve buffer with the needed usages.
  4. Record a pass with timestamp writes at the beginning and end.
  5. Resolve the query set into the buffer and submit the command buffer.
  6. Map the buffer and read the values; the low 16 bits are non-zero, showing the mask was not applied.

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.

WebGPU lets web pages ask the GPU for timestamps, which are like very precise stopwatch readings. To stop pages using these as a high-resolution timer for spying on other code, the browser normally rounds the numbers down to make them less precise. This report says a coding mistake means that rounding is skipped on some graphics cards, so a page can get very precise timings again.

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.