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

Use after free in Chrome for iOS (CVE-2026-10952)

A use-after-free vulnerability exists in the iOS bookmarks folder chooser when a parent folder is deleted remotely via Sync while a user is moving its child bookmark. An attacker could cause a browser crash by triggering this race condition.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 42 days

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 Chrome Security team. Please see go/chrome-ai-generated-security-bugs-faq for more information.

Overview: A Use-After-Free (UAF) vulnerability exists in the iOS bookmarks folder chooser. If a parent folder is deleted remotely via Sync while a user is moving its child bookmark, the mediator retains a dangling raw pointer to the child because it only checks for the deletion of the root node. When the user completes the move, dereferencing the dangling pointer results in a UAF in the Browser Process.

Affected files:

  • ios/chrome/browser/bookmarks/folder_chooser/coordinator/bookmarks_folder_chooser_mediator.mm
  • ios/chrome/browser/bookmarks/ui_bundled/bookmark_utils_ios.mm

Estimated timestamp from git blame: 2026-01-09

Summary

A potential Use-After-Free (UAF) vulnerability exists in the iOS Bookmarks Folder Chooser. The vulnerability occurs when a user is in the process of moving a bookmark, and a remote sync event deletes an ancestor folder of that bookmark. The UI mediator fails to evict the descendant bookmarks from its selected items set, resulting in dangling raw pointers that are later dereferenced when the move operation is confirmed.

Technical Details

In iOS, when a user initiates a bookmark move, BookmarksFolderChooserMediator stores the selected nodes in a standard C++ set using raw pointers:

OBJC
// ios/chrome/browser/bookmarks/folder_chooser/coordinator/bookmarks_folder_chooser_mediator.mm
@implementation BookmarksFolderChooserMediator {
  // ...
  std::set<const BookmarkNode*> _editedNodes;
}

When a remote device deletes a folder via Bookmark Sync, the iOS device processes the update on the UI thread. To prevent UI flicker, BookmarkDataTypeProcessor wraps the sync updates in ScopedRemoteUpdateBookmarks, which calls BookmarkModel::BeginExtensiveChanges(). This triggers BookmarkUndoService::ExtensiveBookmarkChangesBeginning(), which explicitly suspends undo tracking (undo_manager()->SuspendUndoTracking()).

The sync processor then calls BookmarkModel::RemoveChildAt to delete the folder. The BookmarkModel design dictates that observers are only notified about the root node being removed, not its descendants:

C++
// components/bookmarks/browser/bookmark_model.cc
for (BookmarkModelObserver& observer : observers_) {
  observer.BookmarkNodeRemoved(parent, index, node, removed_urls, location);
}

The mediator receives this notification via its bridge:

OBJC
- (void)bookmarkNodeDeleted:(const BookmarkNode*)bookmarkNode {
  if (_editedNodes.contains(bookmarkNode)) {
    _editedNodes.erase(bookmarkNode);
    // ... exit if empty ...
    return;
  }
  // ...
}

If the user is moving "Bookmark X" and the sync event deletes its parent "Folder A", bookmarkNodeDeleted: is called with "Folder A". Because _editedNodes contains "Bookmark X" (not "Folder A"), the check fails, and the pointer to "Bookmark X" remains in _editedNodes. The mediator lacks an ancestor check (e.g., deletedNode->HasAncestor(editedNode)).

Because undo tracking is currently suspended by the extensive sync changes, the unique_ptr holding the deleted folder is immediately discarded by UndoManager::AddUndoOperation. This instantly destroys the folder and its children, leaving the raw pointer in _editedNodes dangling. MiraclePtr (base::raw_ptr) does not protect raw pointers stored inside standard containers like std::set.

When the sync update finishes processing, the UI unblocks. If the user then selects a destination folder to complete the move, the dangling pointers are packaged into a std::vector and passed to bookmark_utils_ios::MoveBookmarksWithUndoSnackbar:

C++
// ios/chrome/browser/bookmarks/ui_bundled/bookmark_utils_ios.mm
bool contains_a_folder =
    std::find_if(bookmarks_to_move.begin(), bookmarks_to_move.end(),
                 [](const BookmarkNode* node) {
                   return node->is_folder(); // UAF
                 }) != bookmarks_to_move.end();

Dereferencing the dangling pointer here, and subsequently in MoveBookmarks (node->parent()), triggers a Browser Process Use-After-Free.

Potential Reproduction Steps

Note: These are suggested steps based on static analysis.

  1. Sign in to Chrome on an iOS device and a Desktop device with the same account; enable Bookmark Sync.
  2. On both devices, ensure a folder named "Folder A" exists containing a bookmark named "Bookmark X".
  3. On the iOS device, navigate to Bookmarks, tap Edit, select "Bookmark X", and tap "Move". The folder chooser UI appears.
  4. On the Desktop device, delete "Folder A".
  5. Wait a moment for the deletion to sync to the iOS device. (The UI on iOS will remain open).
  6. On the iOS device, tap any destination folder (e.g., "Mobile Bookmarks") to complete the move.
  7. The browser will crash due to a Use-After-Free in the browser process.

Suggested Fix

Update bookmarkNodeDeleted: in BookmarksFolderChooserMediator to properly handle the deletion of ancestor folders:

OBJC
- (void)bookmarkNodeDeleted:(const BookmarkNode*)bookmarkNode {
  auto it = _editedNodes.begin();
  while (it != _editedNodes.end()) {
    if (*it == bookmarkNode || bookmarkNode->HasAncestor(*it)) {
      it = _editedNodes.erase(it);
    } else {
      ++it;
    }
  }
  if (_editedNodes.empty()) {
    [_delegate bookmarksFolderChooserMediatorWantsDismissal:self];
  }
}

Alternatively, consider using node IDs instead of raw pointers to track selected nodes across asynchronous operations.

Evaluated with Chrome root at commit: 4a3e9db74111a3c6c4b3acfd70050a05077cf27a


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

The mediator only checks if the deleted node itself is in the set of edited nodes, not if it is an ancestor of any edited node, leaving dangling pointers when an ancestor is removed.

Impact

The browser will crash due to a Use-After-Free in the browser process.

What the attacker needed

Chrome on iOS and Desktop with same account; Bookmark Sync enabled; Victim initiates a bookmark move; Attacker deletes parent folder remotely

The fix

Update the mediator to check for ancestor deletions and remove affected nodes from the set, or use node IDs instead of raw pointers.

How it was found

  1. Sign in to Chrome on an iOS device and a Desktop device with the same account; enable Bookmark Sync.
  2. On both devices, ensure a folder named "Folder A" exists containing a bookmark named "Bookmark X".
  3. On the iOS device, navigate to Bookmarks, tap Edit, select "Bookmark X", and tap "Move". The folder chooser UI appears.
  4. On the Desktop device, delete "Folder A".
  5. Wait a moment for the deletion to sync to the iOS device. (The UI on iOS will remain open).
  6. On the iOS device, tap any destination folder (e.g., "Mobile Bookmarks") to complete the move.

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 that has already been freed. Here, the bookmark chooser holds a pointer to a bookmark, but if its parent folder is deleted from another device, that bookmark is also deleted and the pointer becomes invalid. When the user finishes moving the bookmark, the program tries to use the invalid pointer and crashes.

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.