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

Use after free in PresentationAPI (CVE-2026-7926)

A use-after-free occurs in PresentationAvailability::ResolvePendingPromises because resolving a promise can run JavaScript that adds new resolvers to the same vector being iterated. An attacker could trigger this to cause memory corruption, potentially leading to code execution or a crash.

anonymous Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 22 days

Security Bug

Important: Please do not change the component of this bug manually.

Please READ THIS FAQ before filing a bug: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md

Please see the following link for instructions on filing security bugs: https://www.chromium.org/Home/chromium-security/reporting-security-bugs

Reports may be eligible for reward payments under the Chrome VRP: https://g.co/chrome/vrp

NOTE: Security bugs are normally made public once a fix has been widely deployed.


Use-After-Free in

  1. chromium/blink/renderer/modules/presentation/presentation_availability.cc

void PresentationAvailability::ResolvePendingPromises() { for (auto& resolver : availability_resolvers_) { /************* [1] ****************/ resolver->Resolve(this); } availability_resolvers_.clear(); }

HeapVector<Member<ScriptPromiseResolver<PresentationAvailability>>> availability_resolvers_;

In PresentationAvailibility::ResolvePendingPromises,

the call resolver->Resolve(this) can trigger a synchronous javascript using a "then" getter on object prototype, The user javascript code can call AddResolver to add more resolvers into availability_resolvers_ heapVector, This mutates the heap vector backing store and reallocates , while the iterator is running on the stack. as A result the iterator points to stale memory a Use-After-Free.

C++

void PresentationAvailability::AddResolver(
    ScriptPromiseResolver<PresentationAvailability>* resolver) {
  availability_resolvers_.push_back(resolver);
}

Other code in blink similar to the iterator resolvers first copy the resolvers on the stack and then run the for loop.

I will provide a poc as well as a patch to fix the bug.

To fix the bug here is the patch provided,

C++
void PresentationAvailability::ResolvePendingPromises() {

  HeapVector<Member<ScriptPromiseResolver<PresentationAvailability>>> resolvers;
  resolvers.swap(availability_resolvers_);

  for (auto& resolver : resolvers) {
    resolver->Resolve(this);
  }
  availability_resolvers_.clear();
}

VULNERABILITY DETAILS Please provide a brief explanation of the security issue.

VERSION Chrome Version: HEAD Operating System: [Please indicate OS, version, and service pack level]

REPRODUCTION CASE Please include a demonstration of the security bug, such as an attached HTML or binary file that reproduces the bug when loaded in Chrome. PLEASE make the file as small as possible and remove any content not required to demonstrate the bug, or any personal or confidential information.

Please attach files directly, not in zip or other archive formats, and if you've created a demonstration site please also attach the files needed to reproduce the demonstration locally.

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: [tab, browser, etc.] Crash State: [see link above: stack trace with symbols, registers, exception record] Client ID (if relevant): [see link above]

CREDIT INFORMATION Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited? Reporter credit: [anonymous]

The original report as published on the Chromium issue tracker, by anonymous. 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

The code iterates over a heap-allocated vector while calling a function that can synchronously re-enter and modify that same vector, invalidating the iterator.

Impact

This could lead to memory corruption, potentially allowing an attacker to execute arbitrary code or cause a crash.

What the attacker needed

Victim visits a malicious page

The fix

The bug should be fixed by swapping the vector into a local copy before iterating, so that re-entrant modifications do not affect the loop.

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 use-after-free is a bug where a program keeps using memory after it has been freed, which can let an attacker control what happens next. Here, a list of pending promises is being looped over, but resolving one promise can run JavaScript that adds more items to the same list, causing the list's memory to be reallocated and the loop to read from the old, freed memory.

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 by anonymous

View all

2,270 more disclosed reports, best first.

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.