Skip to content
Race condition Advisory Advanced CVE-2026-10006

Race in WebAudio (CVE-2026-10006)

An offline audio destination handler leaves its render task runner unchanged when an AudioWorklet becomes ready during context suspension, so worklet processing can run on the offline render thread instead of the worklet thread. This allows concurrent access to the same V8 isolate, which the text says could corrupt the heap and potentially lead to code execution in the renderer.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 12 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 potential race condition in OfflineAudioDestinationHandler fails to update the render task runner when an AudioWorklet is added during context suspension. This can cause worklet processing to execute on the incorrect thread, leading to concurrent V8 isolate access and heap corruption. This flaw could potentially be exploited for remote code execution in the renderer process.

Affected files:

  • third_party/blink/renderer/modules/webaudio/offline_audio_destination_handler.h
  • third_party/blink/renderer/modules/webaudio/offline_audio_destination_handler.cc
  • third_party/blink/renderer/modules/webaudio/base_audio_context.cc
  • third_party/blink/renderer/modules/webaudio/offline_audio_context.cc
  • third_party/blink/renderer/modules/webaudio/audio_worklet_handler.cc
  • third_party/blink/renderer/modules/webaudio/audio_worklet_processor.cc

Estimated timestamp from git blame: 2023-01-25

Summary

A potential vulnerability exists in the OfflineAudioDestinationHandler within Blink's Web Audio implementation. When an AudioWorklet module is loaded into an OfflineAudioContext while it is in a suspended state, the destination handler fails to update its internal rendering task runner. Consequently, upon resuming rendering, the AudioWorkletProcessor::Process method may execute on the incorrect thread (the OfflineAudioRender thread instead of the designated AudioWorkletThread), leading to concurrent access to a v8::Isolate from multiple threads.

Potential Root Cause

The issue originates in third_party/blink/renderer/modules/webaudio/offline_audio_destination_handler.h, where the PrepareTaskRunnerForWorklet() method is overridden with an empty implementation:

C++
// line 50
void PrepareTaskRunnerForWorklet() override {}

When an AudioWorklet becomes ready while the context is suspended, BaseAudioContext::NotifyWorkletIsReady() invokes this method. In the real-time destination handler, this method updates the render task runner. However, in the offline handler, this method does nothing, leaving render_thread_task_runner_ pointing to the initial OfflineAudioRender thread.

When resume() is subsequently called on the context, OfflineAudioContext::resumeContext() calls StartRendering(), which posts the rendering task (DoOfflineRendering) to the stale render_thread_task_runner_ without re-evaluating the active task runner.

Vulnerability Mechanism

As rendering proceeds on the incorrect thread, AudioWorkletHandler::Process() eventually calls AudioWorkletProcessor::Process(). This method enters the V8 isolate using ScriptState::Scope, which constructs a v8::HandleScope and enters the V8 context.

Since Blink does not utilize v8::Locker for AudioWorklets, V8 assumes the isolate is only accessed by its owner thread (the AudioWorkletThread). If the AudioWorkletThread is simultaneously active (e.g., handling MessagePort messages), the offline render thread will concurrently mutate isolate-specific data, such as HandleScope data and heap allocation pointers, leading to memory corruption.

Potential Impact

Successful exploitation could result in severe memory corruption within the V8 heap, potentially enabling an attacker to achieve arbitrary code execution within the sandboxed renderer process.

Suggested Steps to Reproduce (Potential)

  1. Create an OfflineAudioContext and call suspend(0) followed by startRendering(). This initializes the offline render thread and suspends rendering at the first frame.
  2. Use audioWorklet.addModule() to load a worklet script.
  3. Create an AudioWorkletNode and connect it to the destination.
  4. Call resume() on the context while simultaneously triggering activity on the worklet thread (e.g., via postMessage to the node's port).
  5. Observe if the worklet's processing logic executes concurrently with the worklet thread, potentially causing a crash or V8 corruption.

Suggested Fix

Implement OfflineAudioDestinationHandler::PrepareTaskRunnerForWorklet() to call PrepareTaskRunnerForRendering(), ensuring the render_thread_task_runner_ is correctly updated when a worklet becomes ready during suspension.

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 offline destination handler overrides the worklet task runner preparation with an empty method, so the render task runner is never switched to the worklet thread when a worklet becomes ready during suspension.

Impact

The text claims this could cause severe memory corruption in the V8 heap and potentially allow arbitrary code execution, but only within the sandboxed renderer process; no working exploit is shown.

What the attacker needed

Ability to run JavaScript in the browser; timing the resume with worklet thread activity

The fix

The offline destination handler should update its render task runner when a worklet becomes ready, matching the real-time handler; the text does not say this was fixed.

How it was found

  1. Create an offline audio context, suspend it at the first frame and start rendering.
  2. Load a worklet script into the context.
  3. Create a worklet node and connect it to the destination.
  4. Resume the context while also triggering activity on the worklet thread.
  5. Watch whether worklet processing runs concurrently with the worklet thread and crashes or corrupts V8.

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 page can play and process audio in the browser, and some audio processing runs on its own background thread. This report says that in one specific situation the audio processing can end up running on the wrong thread at the same time as the right one, and two threads touching the same memory at once can corrupt it. The report is a potential finding from an automated project, not a confirmed exploited bug.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.