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

Use after free in InterestGroups (CVE-2026-11673)

A use-after-free and stack use-after-return in Protected Audience worklets occurs because V8 microtask queues are shared across contexts and not drained when execution is terminated. An attacker could potentially trigger a dangling pointer by scheduling a microtask that survives termination and runs in a later execution.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 14 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 Use-After-Free and Stack Use-After-Return in Protected Audience (FLEDGE) worklets is caused by a failure to isolate and drain V8 microtask queues during execution termination. When the execution timeout watchdog terminates script execution, pending Promise microtasks can remain stranded in the shared default microtask queue. Subsequent execution cycles on the same V8 thread can trigger these stranded microtasks, causing callbacks to dereference deallocated binding objects or dead stack frames.

Affected files:

  • content/services/auction_worklet/auction_v8_helper.cc
  • content/services/auction_worklet/report_bindings.cc
  • content/services/auction_worklet/bidder_worklet.cc
  • content/services/auction_worklet/seller_worklet.cc
  • content/services/auction_worklet/lazy_filler.cc
  • content/services/auction_worklet/deprecated_url_lazy_filler.cc

Estimated timestamp from git blame: 2021-04-13

Detailed Analysis of the Potential Vulnerability

There is a potential Heap Use-After-Free (UAF) and Stack Use-After-Return (UAR) vulnerability within the Protected Audience (FLEDGE) utility process. The issue stems from a combination of sharing V8's default microtask queue, execution termination handling, and a lack of lifetime verification in the binding wrappers.

1. Shared Default Microtask Queue

In AuctionV8Helper::CreateContext (located in content/services/auction_worklet/auction_v8_helper.cc at line 381), the V8 context is created without specifying a dedicated microtask queue:

C++
v8::Local<v8::Context> context =
    v8::Context::New(isolate(), /*extensions=*/nullptr, global_template);

Because the microtask_queue parameter defaults to nullptr, all worklet contexts created on the same thread share the V8 isolate's single default microtask queue.

2. Execution Termination and Stranded Microtasks

When a worklet script runs, it may schedule microtasks (e.g., via a resolved Promise callback) which are added to the default microtask queue. If the script subsequently runs into an infinite loop or takes too long, the background watchdog timer fires and calls v8::Isolate::TerminateExecution() (defined in content/services/auction_worklet/auction_v8_helper.cc at line 247).

During stack unwinding, V8 reaches the microtask checkpoint helper Isolate::FireCallCompletedCallbackInternal(). Because is_execution_terminating() returns true, the microtask execution checkpoint is skipped:

C++
bool perform_checkpoint = microtask_queue && !is_execution_terminating(); // Evaluates to false; checkpoint is skipped

After returning from execution, CancelTerminateExecution() is called to restore the isolate's capability to run scripts. However, any unexecuted microtasks remain stranded in the shared default microtask queue. Since these microtasks retain strong references to the V8 context and global proxy, they prevent V8 from garbage collecting the context immediately.

3. Lifetime Mismatch (UAF/UAR)

When execution ends, the stack frame unwinds and the ContextRecycler (often allocated on the stack, e.g., in BidderWorklet::V8State::ReportWin at bidder_worklet.cc:1133) is destroyed, which deallocates any associated bindings, such as ReportBindings. Similarly, stack-allocated objects such as DeprecatedUrlLazyFiller are popped off the stack and destroyed.

If a subsequent execution runs on the same V8 isolate and completes successfully, V8 triggers a microtask checkpoint on the default queue because is_execution_terminating() is now false. This executes the stranded microtask from the previous run. The microtask attempts to execute its callback (e.g., sendReportTo), which invokes ReportBindings::SendReportTo (defined in content/services/auction_worklet/report_bindings.cc at line 71):

C++
ReportBindings* bindings = static_cast<ReportBindings*>(
    v8::External::Cast(*args.Data())->Value(gin::kReportBindingsTag));

Because the ContextRecycler and its owned ReportBindings have already been destroyed, this retrieves a dangling pointer. Attempting to access its fields (like bindings->v8_helper_) results in a Use-After-Free. A similar path via stack-allocated DeprecatedUrlLazyFiller results in a Use-After-Return (UAR).


Potential Steps to Trigger the Vulnerability

Note: These are theoretical/potential steps identified during static analysis; our tooling agent does not have the capability to run code or execute a live proof-of-concept.

  1. Register two sequential interest groups to run auctions on the same V8 utility thread.
  2. In the first interest group's bidding script, schedule a microtask via a resolved Promise callback that invokes a binding function (e.g., sendReportTo), followed immediately by an infinite loop (for(;;);) to trigger the 50 ms watchdog timeout.
  3. The script will be aborted due to execution termination, leaving the pending microtask stranded in the shared default microtask queue.
  4. The stack unwinds, and the stack-allocated ContextRecycler and ReportBindings are destroyed.
  5. When the second interest group's script executes and completes, V8 pumps the default microtask queue, running the stranded callback with a dangling pointer and causing an ASan violation.

Suggested Remediation

To prevent microtasks from one context execution leaking into and running during subsequent execution cycles, V8 context microtask queues should be isolated per context.

Recommended Fix: Create an independent, isolated v8::MicrotaskQueue for each v8::Context created inside AuctionV8Helper::CreateContext(). This can be achieved by allocating a v8::MicrotaskQueue instance and passing it to v8::Context::New():

C++
std::unique_ptr<v8::MicrotaskQueue> microtask_queue = v8::MicrotaskQueue::New(isolate());
v8::Local<v8::Context> context = v8::Context::New(
    isolate(), /*extensions=*/nullptr, global_template,
    /*global_object=*/v8::MaybeLocal<v8::Value>(),
    /*internal_fields_deserializer=*/v8::DeserializeInternalFieldsCallback(),
    microtask_queue.get());

Managing the lifecycle of the MicrotaskQueue alongside the context ensures that any pending or stranded microtasks are immediately discarded when the queue and context are destroyed, rather than leaking into the shared isolate queue.

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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 V8 context is created without a dedicated microtask queue, so pending microtasks from a terminated execution are not discarded and later run against deallocated bindings.

Impact

A use-after-free or use-after-return could occur, potentially leading to memory corruption or code execution, though the report notes these are theoretical steps and no live proof-of-concept was executed.

What the attacker needed

Ability to register interest groups; two sequential auctions on same thread; script triggers watchdog timeout

The fix

The report recommends creating an independent, isolated v8::MicrotaskQueue for each v8::Context so that pending microtasks are discarded when the context is destroyed.

How it was found

  1. Register two sequential interest groups to run auctions on the same V8 utility thread.
  2. In the first interest group's bidding script, schedule a microtask via a resolved Promise callback that invokes a binding function, followed immediately by an infinite loop to trigger the watchdog timeout.
  3. The script is aborted due to execution termination, leaving the pending microtask stranded in the shared default microtask queue.
  4. The stack unwinds, and the stack-allocated ContextRecycler and ReportBindings are destroyed.
  5. When the second interest group's script executes and completes, V8 pumps the default microtask queue, running the stranded callback with a dangling pointer and causing an ASan violation.

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 script runs, it can schedule small follow-up tasks called microtasks. If the script is stopped for taking too long, those tasks can be left behind and later run when the objects they refer to have already been destroyed, causing the program to access freed memory. This can lead to crashes or potentially worse.

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.