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

Use after free in TabStrip (CVE-2026-11262)

The tab strip model's close methods lack re-entrancy guards, so a synchronous observer can destroy a tab while a move operation is still in progress. The move code then dereferences the freed tab pointer, which the report says could lead to remote code execution in the browser process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 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 without the security team.

Overview: A potential Use-After-Free vulnerability exists in TabStripModel because CloseWebContentsAt and CloseTabs lack re-entrancy guards. This allows a synchronous observer to destroy a tab while it is being moved, bypassing MiraclePtr protection and leading to a use-after-free when the move operation resumes.

Affected files:

  • chrome/browser/ui/tabs/tab_strip_model.cc
  • chrome/browser/ui/tabs/tab_strip_model.h

Estimated timestamp from git blame: 2025-12-30

Summary

A potential Use-After-Free (UAF) vulnerability has been identified in TabStripModel within the browser process. The issue arises from the omission of ReentrancyCheck guards in the TabStripModel::CloseWebContentsAt and TabStripModel::CloseTabs methods. This omission permits synchronous observers to initiate tab closures while another model operation, such as moving a tab, is already underway.

Specifically, during a tab move operation, TabStripModel::MoveTabToIndexImpl caches a raw pointer to the tab, synchronously notifies observers, and then later dereferences the raw pointer. If an observer closes the tab during the notification, the tab is destroyed, leading to a UAF upon return. Furthermore, the local raw_ptr that temporarily protects the tab during the notification is destroyed before the vulnerable dereference, bypassing MiraclePtr (BRP) protections.

Technical Details

  1. Missing Guard: Most state-modifying methods in TabStripModel (e.g., MoveWebContentsAt, InsertWebContentsAt) instantiate a ReentrancyCheck reentrancy_check(&reentrancy_guard_) to prevent nested modifications. However, CloseWebContentsAt and CloseTabs do not.
  2. Vulnerable Flow: When a tab is moved, MoveWebContentsAt correctly sets the re-entrancy guard and calls MoveTabToIndexImpl.
  3. Raw Pointer Usage: MoveTabToIndexImpl stores a raw pointer: tabs::TabInterface* const tab = GetTabAtIndex(initial_index);.
  4. Observer Notification: It then calls SendMoveNotificationForTab(initial_index, final_index, tab, selection);.
  5. Temporary BRP Protection: Inside SendMoveNotificationForTab, the tab is placed into a TabStripModelChange::Move struct, which stores it as a raw_ptr<tabs::TabInterface>. This temporarily increments the BackupRefPtr (BRP) reference count.
  6. Re-entrant Close: Observers are notified synchronously. If an attacker-controlled or influenced observer (e.g., via an extension) calls CloseWebContentsAt for the moving tab, the call proceeds because CloseWebContentsAt lacks a ReentrancyCheck. The tab is subsequently detached and deleted.
  7. Protection Scope Ends: When the notification completes, SendMoveNotificationForTab returns, and its local TabStripModelChange object is destroyed. This decrements the BRP reference count to zero, freeing the memory for reallocation.
  8. The UAF: Execution resumes in MoveTabToIndexImpl, which immediately calls if (initial_pinned_state != tab->IsPinned()). The virtual call IsPinned() dereferences the now-freed and unquarantined raw tab pointer. If an attacker has sprayed the heap in the interim, this results in Remote Code Execution (RCE) in the browser process.

Note: These are potential steps, as our tooling does not currently run the code to produce a working proof-of-concept.

Suggested Fix

  1. Add Re-entrancy Guards: Instantiate ReentrancyCheck reentrancy_check(&reentrancy_guard_); in TabStripModel::CloseWebContentsAt and TabStripModel::CloseTabs to prevent nested tab closures.
  2. Defense in Depth: In MoveTabToIndexImpl (and similar methods like InsertTabAtIndexImpl), use base::raw_ptr<tabs::TabInterface> tab = GetTabAtIndex(...) instead of a raw pointer. This ensures that BRP quarantines the memory for the entire duration of the function's execution, turning any potential UAFs from complex re-entrancy bugs into safe crashes.

Evaluated with Chrome root at commit: 09ec9e7cc4d24823d20b6d37cf3d282734f6bf0f


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 close methods omit the re-entrancy guard used by other state-changing methods, and the move code holds a plain pointer whose temporary protection ends before the final dereference.

Impact

If an attacker can spray the heap in the gap, this could result in remote code execution in the browser process, though the report notes no working proof-of-concept was produced.

What the attacker needed

An observer that closes the tab; attacker-influenced observer, e.g. extension; heap spray to control freed memory

The fix

It should be fixed by adding re-entrancy guards to the close methods and by holding a protected pointer for the whole move function so the memory stays quarantined.

How it was found

  1. Move a tab so the move implementation caches a pointer to it and notifies observers.
  2. Have an observer close that same tab during the synchronous notification.
  3. The tab is detached and deleted while the move operation is paused.
  4. The notification returns and its temporary protection is released.
  5. The move code resumes and calls a method on the freed tab pointer.

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 frees an object but keeps using it, like deleting a file and then opening it again. Here, moving a tab briefly tells other parts of the browser about the move, and one of those parts can close the tab in the middle of that. When the move code carries on, it touches memory that has already been released.

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.