Information leak in WebAudio (CVE-2026-106392)
The experimental AudioContextPlayoutStats feature exposes uncoarsened microsecond timing values, and the 1Hz update limit is applied per AudioContext, so an attacker can create many contexts to poll hardware latency at high frequency. This could enable timing side-channel attacks.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 months
Flapjack, 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: The experimental AudioContextPlayoutStats feature exposes high-precision, uncoarsened microsecond timing metrics via maximumLatency and minimumLatency. An attacker can potentially bypass the intended 1Hz rate limit by repeatedly creating new AudioContexts to poll the system audio hardware latency, enabling a timing side-channel attack.
Affected files:
third_party/blink/renderer/modules/webaudio/audio_playout_stats.cc
Estimated timestamp from git blame: 2024-05-28
Description
The AudioContextPlayoutStats interface (currently an experimental feature available via Origin Trials or feature flags) provides timing metrics to JavaScript. However, the implementation fails to apply time coarsening (clamping) to the DOMHighResTimeStamp values returned by attributes like maximumLatency, minimumLatency, and fallbackFramesDuration.
In Chromium, web-exposed timings that can leak system state or hardware performance must be coarsened using Performance::ClampTimeResolution (typically to 100 µs, or 5 µs if cross-origin isolated). AudioPlayoutStats bypasses this by converting exact base::TimeDelta objects to doubles using InMillisecondsF() without any clamping.
While the API attempts to mitigate high-frequency polling by restricting updates to 1Hz via the StatsUpdateRestrictor class, this restrictor is instantiated per AudioContext. Because an AudioContext initializes the restrictor's last_update_time_ to zero, the first render callback will always successfully update the stats. An attacker can repeatedly instantiate new AudioContext objects to poll the uncoarsened hardware delay and internal FIFO state at a high frequency.
Impact
The exposure of microsecond-precision timing metrics, combined with the ability to poll them frequently, provides a high-fidelity signal for timing side-channel attacks. An attacker could potentially leverage this to measure the timing of cross-origin events or system resource contention.
Potential Steps to Reproduce
Note: These are suggested steps based on source code analysis. Our tooling agent cannot run active proof-of-concept exploits.
- Ensure the page is visible or has microphone permission to pass the
StatsUpdateRestrictor::IsVisibleOrHasPermission()check. - In a loop, create a new
AudioContext:const ctx = new AudioContext();. - Wait a very brief period (e.g., using
setTimeout) to allow theAudioContextto transition torunningand process its first render quantum. - Read the uncoarsened timing data:
let maxLat = ctx.playoutStats.maximumLatency; - Close the context (
ctx.close()) to avoid exhausting resources, and repeat. - Observe high-resolution fluctuations in hardware latency and FIFO state that correspond to system load.
Source Code References
- Uncoarsened value exposure:
third_party/blink/renderer/modules/webaudio/audio_playout_stats.cclines 48-52. - Hardware delay accumulation:
third_party/blink/renderer/platform/audio/audio_destination.ccline 617. - Per-context restrictor initialization:
third_party/blink/renderer/modules/webaudio/audio_context.ccline 604.
Recommended Fix
- All
DOMHighResTimeStampvalues returned by theAudioPlayoutStatsinterface should be coarsened usingPerformance::ClampTimeResolutionto ensure compliance with Chromium's security policies. - Consider making the 1Hz
StatsUpdateRestrictora page-level or origin-level rate limit, or require theAudioContextto be alive for at least 1 second before exposing the first set of statistics, to prevent the bypass via context cycling.
Evaluated with Chrome root at commit: b7d0c4d810da1b31400f198c70d9720fc8f0e5a0
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.
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 code converts exact time deltas to milliseconds without applying Chromium's standard time coarsening, and the rate limiter is per-context rather than global.
Impact
The exposure of precise timing metrics could allow an attacker to measure cross-origin events or system resource contention, though the report only suggests this potential.
What the attacker needed
Experimental feature enabled; page visible or microphone permission
The fix
The values should be coarsened using Performance::ClampTimeResolution, and the rate limit should be made page-level or origin-level, or the first statistics should be delayed until the context has been alive for at least one second.
How it was found
- Ensure the page is visible or has microphone permission.
- Create a new AudioContext in a loop.
- Wait briefly for the context to start and process its first render quantum.
- Read the uncoarsened maximumLatency value.
- Close the context and repeat.
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.
Web pages can measure how long things take, but browsers usually round those measurements to make them less precise, so attackers cannot use tiny timing differences to guess secrets. Here, a new audio feature returned exact microsecond timings, and a rate limit meant to slow down polling could be bypassed by making many audio contexts. This could let an attacker learn about system activity through timing.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.