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

Use after free in PerformanceManager (CVE-2026-10001)

A raw pointer to a TabHandle is held across a synchronous discard operation in the browser process. If an observer synchronously closes the replacement tab during discard, the pointer dangles and is later dereferenced, potentially allowing an attacker to control a virtual call and achieve code execution in the unsandboxed browser process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 13 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 Use-After-Free (UAF) vulnerability potentially exists in the browser process due to a raw stack pointer being held across a synchronous discard operation. If a tab is synchronously closed during the discard process via an observer gadget, the pointer dangles and is subsequently dereferenced. This could lead to remote code execution in the unsandboxed browser process.

Affected files:

  • chrome/browser/performance_manager/policies/page_discarding_helper.cc
  • components/performance_manager/decorators/tab_page_decorator.cc
  • chrome/browser/resource_coordinator/tab_lifecycle_unit.cc
  • chrome/browser/ui/tabs/tab_strip_model.cc
  • components/performance_manager/performance_manager_tab_helper.cc
  • components/performance_manager/graph/page_node_impl.cc

Estimated timestamp from git blame: 2025-11-26

Analysis

A potential Use-After-Free (UAF) vulnerability has been identified in PageDiscardingHelper::DiscardMultiplePagesImpl within the browser process. This issue arises from the use of a bare stack pointer to a TabPageDecorator::TabHandle object that is held across a synchronous discard operation.

In the current Chromium codebase, the Performance Manager graph and its associated policies, including PageDiscardingHelper, reside on the UI thread. This allows for synchronous interaction with UI-bound components like WebContents and the TabStripModel.

Root Cause

The vulnerability is located in chrome/browser/performance_manager/policies/page_discarding_helper.cc:

C++
// Capture a raw pointer to the TabHandle
TabPageDecorator::TabHandle* tab_handle;
if (!result.first_discard_time.has_value()) {
  tab_handle = TabPageDecorator::FromPageNode(node);
}

// Perform the discard synchronously on the UI thread
std::optional<base::ByteSize> estimated_memory_freed =
    page_discarder_->DiscardPageNode(node, discard_reason);

if (estimated_memory_freed.has_value()) {
  if (tab_handle) {
    // tab_handle may now be a dangling pointer
    const PageNode* node_after_discard = tab_handle->page_node();  // UAF Read
    if (node_after_discard) {
      result.first_content_after_discard =
          node_after_discard->GetWebContents().get();        // Potential Controlled Virtual Call
    }
  }
}

During the call to DiscardPageNode, the TabLifecycleUnit performs a synchronous replacement of the WebContents. During this process, TabPageDecorator moves the TabHandle from the old PageNode to the newly created replacement PageNode.

Critically, TabLifecycleUnit::FinishDiscard triggers notifications to TabStripModelObservers. If an observer (such as DevTools or a component managing Saved Tab Groups) synchronously closes the replacement tab, the new PageNode is destroyed. This destruction synchronously deletes the TabPageDecorator::Data attached to the node, which owns the TabHandle object via a std::unique_ptr. When DiscardPageNode returns, the tab_handle variable on the stack dangles.

Potential Impact

A subsequent dereference of tab_handle results in a UAF read. An attacker who can reclaim the freed memory (e.g., via heap spraying using Mojo allocations) could control the returned node_after_discard pointer. This leads to a controlled virtual function call (GetWebContents()), potentially allowing for arbitrary code execution in the unsandboxed browser process, effectively escaping the renderer sandbox.

Potential Reproduction Steps

  1. From a compromised renderer, induce MEMORY_PRESSURE_LEVEL_CRITICAL to trigger the UrgentPageDiscardingPolicy.
  2. Ensure a TabStripModelObserver gadget is active (e.g., a DevTools window or an observer that reacts to tab replacements) which will synchronously call CloseWebContentsAt for the replacement tab created during discard.
  3. The PageDiscardingHelper::DiscardMultiplePagesImpl will capture the TabHandle pointer, call the synchronous discard, and then dereference the pointer after it has been freed by the re-entrant closure.
  4. Use heap spraying primitives in the browser process to reclaim the TabHandle memory slot before the dereference occurs.

Suggested Fix

The TabHandle should not be stored as a raw pointer across the synchronous DiscardPageNode call. Instead, the code should either re-query the TabHandle from the graph using a WeakPtr<PageNode> or the TabHandle itself should be managed via a base::WeakPtr if supported by the decorator. Alternatively, verify the continued existence of the tab before accessing the pointer.

Note: These findings are based on manual code analysis. No working Proof-of-Concept has been executed.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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 a raw TabHandle pointer is captured before a synchronous discard call and dereferenced afterwards, without accounting for the object being freed during the call by a re-entrant observer.

Impact

Could lead to remote code execution in the unsandboxed browser process, effectively escaping the renderer sandbox, though no working proof-of-concept has been executed.

What the attacker needed

Compromised renderer; ability to trigger critical memory pressure; a suitable observer gadget active

The fix

The TabHandle should not be stored as a raw pointer across the synchronous discard call; instead it should be re-queried or managed via a weak pointer, or its continued existence verified before access.

How it was found

  1. From a compromised renderer, induce critical memory pressure to trigger urgent page discarding.
  2. Ensure a TabStripModelObserver gadget is active that synchronously closes the replacement tab created during discard.
  3. The discard helper captures the TabHandle pointer, performs the synchronous discard, then dereferences the pointer after it has been freed.
  4. Use heap spraying in the browser process to reclaim the freed TabHandle memory before the dereference.

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 happens when a program keeps a reference to memory it has already freed and then uses it again. Here, the browser frees an object while discarding a tab, but a pointer to it is still used afterwards. If an attacker can put their own data in that freed memory, they might trick the browser into running their code.

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.