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

Use after free in Mobile (CVE-2026-79039)

The Recent Tabs UI on iOS looked up a sync-controlled session tag in a dictionary using valueForKey: rather than objectForKey:. An attacker controlling a synced device could set a tag beginning with '@' so that Key-Value Coding invokes a memory-management selector on the dictionary, potentially causing an over-release and a use-after-free in the browser process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

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: The Recent Tabs UI on iOS utilizes valueForKey: instead of objectForKey: to query if a section is collapsed, using a sync-controlled session tag as the lookup key. Under Cocoa/Foundation Key-Value Coding (KVC), lookup keys prefixed with @ strip the prefix and dynamically invoke matching memory-management selectors (like -release or -dealloc) on the target dictionary. This can allow an attacker who controls a synced device to trigger an over-release or premature deallocation, leading to a potential Use-After-Free (UAF) in the browser process.

Affected files:

  • ios/chrome/browser/recent_tabs/ui/recent_tabs_table_view_controller.mm
  • ios/chrome/browser/shared/ui/list_model/list_model.mm

Estimated timestamp from git blame: 2018-03-15

Description

In iOS Chrome, the Recent Tabs UI manages the collapsed state of remote sessions using a dictionary. When querying whether a session section is collapsed, both ListModelCollapsedSceneSessionMediator and ListModelCollapsedMediator retrieve the collapsed state from a dictionary using valueForKey: instead of objectForKey:. The lookup key (sectionKey) is derived directly from the foreign session's session_tag, which is sync-controlled.

In ios/chrome/browser/recent_tabs/ui/recent_tabs_table_view_controller.mm:

OBJC
- (BOOL)sectionKeyIsCollapsed:(NSString*)sectionKey {
  NSDictionary* collapsedSections = _session.userInfo[kListModelCollapsedKey];
  NSNumber* value = (NSNumber*)[collapsedSections valueForKey:sectionKey];   // <-- sync-controlled key
  return [value boolValue];
}

In ios/chrome/browser/shared/ui/list_model/list_model.mm:

OBJC
- (BOOL)sectionKeyIsCollapsed:(NSString*)sectionKey {
  NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
  NSDictionary* collapsedSections = [defaults dictionaryForKey:kListModelCollapsedKey];
  NSNumber* value = (NSNumber*)[collapsedSections valueForKey:sectionKey];   // <-- sync-controlled key
  return [value boolValue];
}

Under Cocoa/Foundation Key-Value Coding (KVC), if valueForKey: is called on an NSDictionary with an @-prefixed key (e.g., "@release" or "@dealloc"), the dictionary strips the @ prefix and forwards the call to [super valueForKey:]. The KVC engine then dynamically resolves and executes the matching selectors (like -release or -dealloc) on the receiver dictionary. This bypasses ARC ownership rules and can lead to immediate or delayed over-release, resulting in a potential Use-After-Free (UAF) or double-free condition when UIKit or ARC subsequently references the dictionary.

Potential Attack Scenario

Note: The following steps are potential/suggested vectors; our tooling does not currently have the capability to execute live proof-of-concept code on physical iOS devices.

  1. Ingest: An attacker with control over a synced device modifies a SESSIONS entity, setting the session_tag to a malicious string such as "@release" or "@dealloc".
  2. UI Loading: The victim opens the Recent Tabs UI, which parses the synced sessions and populates the table sections using addSessionSections.
  3. KVC Lookup: The UI queries sectionIsCollapsed: with the mapped session tag string. This triggers valueForKey: with the malicious key on the collapsed sections dictionary.
  4. Corruption: The dictionary receives a -release or -dealloc message directly via the KVC resolver. This decrements the dictionary's reference count prematurely, resulting in a dangling reference/UAF or immediate crash when the dictionary is later accessed or serialized.

Suggested Fix

To remediate this issue, replace all instances of valueForKey: with objectForKey: (or dictionary subscripting) to ensure standard lookup semantics are enforced rather than dynamic KVC selector dispatch.

In ios/chrome/browser/recent_tabs/ui/recent_tabs_table_view_controller.mm:

OBJC
- (BOOL)sectionKeyIsCollapsed:(NSString*)sectionKey {
  NSDictionary* collapsedSections = _session.userInfo[kListModelCollapsedKey];
  NSNumber* value = (NSNumber*)[collapsedSections objectForKey:sectionKey];
  return [value boolValue];
}

In ios/chrome/browser/shared/ui/list_model/list_model.mm:

OBJC
- (BOOL)sectionKeyIsCollapsed:(NSString*)sectionKey {
  NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
  NSDictionary* collapsedSections = [defaults dictionaryForKey:kListModelCollapsedKey];
  NSNumber* value = (NSNumber*)[collapsedSections objectForKey:sectionKey];
  return [value boolValue];
}

Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379


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 the code used Key-Value Coding lookup (valueForKey:) with an untrusted, sync-controlled key instead of a plain dictionary lookup, letting the key be interpreted as a selector.

Impact

Could cause a use-after-free or double-free in the browser process, leading to a crash or potential memory corruption; the report notes no live proof-of-concept was executed on a physical device.

What the attacker needed

Attacker controls a synced device; victim opens Recent Tabs UI; iOS Chrome

The fix

It should be fixed by replacing valueForKey: with objectForKey: or dictionary subscripting so that plain lookup semantics apply.

How it was found

  1. An attacker with control of a synced device changes a session's tag to a string starting with '@'.
  2. The victim opens the Recent Tabs UI, which loads the synced sessions into table sections.
  3. The UI checks the collapsed state using that tag as the lookup key.
  4. The dictionary receives a memory-management message through the KVC resolver, dropping its reference count and leaving a dangling reference.

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.

On Apple platforms, a dictionary can be asked for a value in two ways. One of them, valueForKey:, treats special-looking keys as instructions to run a method on the dictionary itself. Here the key came from another device's synced data, so someone else could choose it and make the app free memory it still needs, which can crash it or corrupt it.

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.