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

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

A use-after-free vulnerability exists in Chrome for iOS where Objective-C assign properties hold raw pointers to the LargeIconService, which is destroyed when an Incognito tab closes. During the subsequent UI transition animation, a layout pass can dereference the freed service, leading to a virtual call on freed memory.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 36 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 without the Chrome Security team. 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 exists in the iOS Omnibox UI. Objective-C assign properties in OmniboxPopupViewController and FaviconAttributesProvider hold raw pointers to the OTR profile-scoped LargeIconService. When an Incognito tab closes, the service is destroyed faster than the associated UI transition animation finishes, allowing a layout pass to access the freed service.

Affected files:

  • ios/chrome/browser/omnibox/coordinator/popup/omnibox_popup_coordinator.mm
  • ios/chrome/browser/omnibox/ui/popup/omnibox_popup_view_controller.mm
  • ios/chrome/browser/favicon/ui_bundled/favicon_attributes_provider.mm
  • ios/chrome/browser/omnibox/ui/popup/omnibox_popup_view_controller.h
  • ios/chrome/browser/omnibox/ui/popup/omnibox_popup_presenter.mm

Estimated timestamp from git blame: 2025-09-18

Summary

A potential Use-After-Free (UAF) vulnerability has been identified in the iOS Omnibox UI when handling Incognito (Off-The-Record) profile destruction. The OmniboxPopupViewController and FaviconAttributesProvider retain raw, non-zeroing C++ pointers to profile-scoped services, specifically LargeIconService and LargeIconCache. Because these are stored using Objective-C @property(assign), they bypass memory protections like MiraclePtr. If a layout pass occurs while the UI is transitioning out of an Incognito context, these dangling pointers can be dereferenced, leading to a virtual function call on freed memory.

Root Cause Analysis

In OmniboxPopupCoordinator -start, the coordinator fetches the LargeIconService for the Incognito profile and passes it to the OmniboxPopupViewController:

OBJC
// ios/chrome/browser/omnibox/ui/popup/omnibox_popup_view_controller.h
@property(nonatomic, assign) favicon::LargeIconService* largeIconService;

This pointer is then copied into a FaviconAttributesProvider.

When the last Incognito tab is closed, two parallel processes begin:

  1. UI Transition: The SceneController initiates an animated transition to the Tab Grid (TabToGridAnimation). This animation lasts roughly 300ms. During this time, the TabGridTransitionHandler retains the BrowserLayoutViewController, which in turn keeps the BrowserViewController and its child OmniboxPopupViewController alive in memory.
  2. Profile Destruction: Simultaneously, OTRPRofileDestroyerProfileAgent schedules the destruction of the OTR profile. This happens rapidly, typically within 2-5ms, after a quick roundtrip to the IO thread. The BrowserCoordinator is stopped, and profile->DestroyOffTheRecordProfile() is called. This synchronously destroys all KeyedService instances, including the LargeIconService, freeing its memory on the heap.

The vulnerability occurs because the OmniboxPopupViewController outlives the LargeIconService by almost 300ms. During the TabToGridAnimation, the view's frame and transform are continuously modified, triggering UIKit layout passes.

If the OmniboxPopupViewController contains a carousel suggestion, the SelfSizingTableView responds to the layout pass by calling cellForRowAtIndexPath:. This method invokes fetchFaviconForCarouselItem:, which ultimately calls the FaviconAttributesProvider:

C++
// ios/chrome/browser/favicon/ui_bundled/favicon_attributes_provider.mm
self.largeIconService->GetLargeIconRawBitmapOrFallbackStyleForPageUrl(...); // Pure virtual call on freed vptr

Because the LargeIconService was freed milliseconds earlier, this results in a UAF and a virtual call on corrupted memory.

Potential Reproduction Steps

Note: Our tooling agent does not run code; these are suggested steps based on static analysis.

  1. An attacker hosts a malicious website.
  2. The user opens the malicious website in a Chrome iOS Incognito tab.
  3. The attacker's site prompts the user to interact with the omnibox, bringing up the autocomplete popup containing carousel items.
  4. While the user is interacting with the omnibox, the website executes window.close() via JavaScript (or the user manually taps the 'X' to close the tab on an iPad background tab).
  5. If this is the only Incognito tab open, the OTR profile is rapidly destroyed.
  6. The UI begins a 300ms transition animation to the Tab Grid.
  7. During the animation, a layout pass on the still-alive omnibox popup UI triggers a fetch to the freed LargeIconService, resulting in a Use-After-Free in the browser process.

Suggested Fix

  1. Clear Pointers Explicitly: In OmniboxPopupCoordinator -stop, explicitly call a teardown method on OmniboxPopupViewController to nil out largeIconService, largeIconCache, and the FaviconAttributesProvider before the service is destroyed.
  2. Use Safe Pointers: Instead of using @property(assign) for C++ objects, wrap the C++ pointers in an Objective-C class holding a base::WeakPtr<LargeIconService> (if supported by the service) or ensure raw_ptr<T> can be utilized securely across the Objective-C++ boundary.

Evaluated with Chrome root at commit: a1e33f5848218e21d4a16ae2c1bc94e815c30c7f


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 root cause is that Objective-C assign properties hold raw pointers to profile-scoped services without zeroing them, so when the service is destroyed during Incognito profile destruction, the pointers become dangling and are later dereferenced during a layout pass.

Impact

A use-after-free in the browser process could lead to a crash or potentially allow an attacker to execute arbitrary code, though the report does not demonstrate full exploitation.

What the attacker needed

Chrome for iOS; Incognito tab open; User interacts with omnibox; Only Incognito tab

The fix

The fix should explicitly clear the pointers in OmniboxPopupCoordinator -stop and use safe pointers such as base::WeakPtr or raw_ptr instead of assign properties.

How it was found

  1. An attacker hosts a malicious website.
  2. The user opens the malicious website in a Chrome iOS Incognito tab.
  3. The attacker's site prompts the user to interact with the omnibox, bringing up the autocomplete popup containing carousel items.
  4. While the user is interacting with the omnibox, the website executes window.close() via JavaScript (or the user manually taps the 'X' to close the tab on an iPad background tab).
  5. If this is the only Incognito tab open, the OTR profile is rapidly destroyed.
  6. The UI begins a 300ms transition animation to the Tab Grid.

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 you close an Incognito tab, Chrome starts an animation to show the tab grid. Meanwhile, it also destroys some background services. A part of the screen that is still animating tries to use one of those destroyed services, which can crash the browser or potentially allow an attacker to run code. This is called a use-after-free because the program uses memory after it has been freed.

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.