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

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

An Objective-C associated object on a UIView was stored with an unsafe assign policy, so when the owning UIWindow was deallocated the stored reference became dangling. The text claims that later KVO updates could dereference this freed pointer, potentially allowing arbitrary code execution from a compromised renderer.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 34 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 https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: Fix requires changing .OBJC_ASSOCIATION_ASSIGN to .OBJC_ASSOCIATION_RETAIN_NONATOMIC for the mirror view. The current unsafe policy creates a dangling pointer when the associated UIWindow is deallocated. Accessing this pointer during subsequent KVO updates triggers a Use-After-Free.

Affected files:

  • ios/chrome/browser/shared/ui/util/UIView+WindowCoordinates.swift

Estimated timestamp from git blame: Unknown (Google3 checkout)

Suggested Fix: Change the associated object policy for MirrorViewInWindowKey from .OBJC_ASSOCIATION_ASSIGN to .OBJC_ASSOCIATION_RETAIN_NONATOMIC (ios/chrome/browser/shared/ui/util/UIView+WindowCoordinates.swift:159).

Vulnerability Summary

Initial KVO observer registration and helper view instantiation are validated as standard UI state management. The critical flaw lies in the Objective-C associated object policy.

The mirrorViewInWindow property holds an __unsafe_unretained reference to a NotifyingView whose sole strong owner is a UIWindow. Upon window deallocation, the NotifyingView is freed.

If the tracked UIView outlives its window (e.g., cached UI components like OmniboxAssistiveKeyboardMediator), it retains a dangling pointer.

Potential Exploitation Steps

  1. A compromised renderer directs IPC to allocate the UI state and then triggers window destruction, freeing the NotifyingView.
  2. The attacker uses standard heap spraying to reallocate the freed NotifyingView memory with a forged object.
  3. The attacker forces a UI hierarchy update on the cached UIView so it detaches or moves, triggering the KVO observer with self.window == nil.
  4. The KVO closure jumps to removeMirrorViewInWindow().
  5. The Swift runtime evaluates the property getter (as? NotifyingView), dereferencing the attacker-controlled isa pointer from the forged object, leading to potential arbitrary code execution.

Note: These are suggested potential steps; our tooling agent does not yet have the ability to run code to produce a live proof-of-concept.

Evaluated with Chrome root at commit: cc901875d53bf4e4fe0e01f02843871da4106e70


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 associated object for the mirror view was stored with an assign (unsafe unretained) policy instead of a retaining policy, so it did not keep the NotifyingView alive and left a dangling pointer once the window was freed.

Impact

A compromised renderer could potentially achieve arbitrary code execution in the browser process, though the text notes these are suggested steps and no live proof-of-concept was produced.

What the attacker needed

Compromised renderer; ability to send crafted IPC; heap spray control

The fix

The associated object policy for the mirror view key should be changed from assign to retain nonatomic so the reference keeps the NotifyingView alive.

How it was found

  1. A compromised renderer sends IPC to set up the UI state and then causes the window to be destroyed, freeing the NotifyingView.
  2. The attacker heap-sprays to place a forged object in the freed memory.
  3. The attacker forces a UI hierarchy update on the cached UIView so the KVO observer fires with no window.
  4. The KVO closure calls removeMirrorViewInWindow().
  5. The property getter dereferences the forged object's isa pointer, potentially giving arbitrary code execution.

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 one object points at another, it can either keep that other object alive or just remember its address. Here the code only remembered the address, so when the window was destroyed the remembered address pointed at freed memory. Using that stale address later is called a use-after-free, and an attacker who can control what lands in that freed memory may be able to influence what the program does next.

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.