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

Use after free in Device Trust (CVE-2026-11114)

A use-after-free vulnerability exists in the macOS implementation of the enterprise.reportingPrivate API because unsanitised key paths are passed to Objective-C Key-Value Coding methods. A compromised allowlisted extension could exploit this to over-release a dictionary and potentially escape the renderer sandbox to execute arbitrary code in the browser process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 54 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.

Overview: A potential Use-After-Free vulnerability exists in the macOS implementation of the enterprise.reportingPrivate API. By passing a specially crafted Key-Value Coding (KVC) key path to valueForKey:, a compromised allowlisted extension can over-release an Objective-C dictionary. This could potentially allow an attacker to escape the renderer sandbox and execute arbitrary code in the browser process.

Affected files:

  • components/device_signals/core/browser/mac/plist_settings_client.mm
  • chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc
  • chrome/browser/extensions/api/enterprise_reporting_private/conversion_utils.cc
  • components/device_signals/core/common/posix/platform_utils_posix.cc

Estimated timestamp from git blame: 2022-10-12

Summary

A potential Use-After-Free (UAF) vulnerability exists in PlistSettingsClient on macOS. The issue stems from passing unsanitized, renderer-supplied strings directly to Objective-C Key-Value Coding (KVC) methods (valueForKey: and valueForKeyPath:). By supplying a crafted key path such as @autorelease, an attacker can invoke arbitrary zero-argument methods on an NSDictionary. This can be abused to over-release the dictionary, creating dangling pointers in the thread's autorelease pool, which may lead to arbitrary code execution in the browser process.

Technical Details

The chrome.enterpriseReportingPrivate.getSettings API allows specific allowlisted extensions to retrieve configuration settings. On macOS, the request is routed to the browser process and handled by PlistSettingsClient::GetSettings, which schedules GetSettingItems to run on a base::ThreadPool worker thread.

In components/device_signals/core/browser/mac/plist_settings_client.mm, the GetSettingItems function parses a plist file into an ARC-managed NSDictionary* (plist_dict). It then attempts to extract the requested setting by calling ParsePlist:

OBJECTIVEC
id ParsePlist(NSDictionary* dict, NSString* key_path) {
  NSRange test_range = [key_path rangeOfString:@"["];
  if (test_range.location == NSNotFound)
    return [dict valueForKeyPath:key_path];

  NSDictionary* current_obj = dict;
  for (NSString* sub_path in [key_path componentsSeparatedByString:@"."]) {
    // ...
    current_obj = [current_obj valueForKey:sub_path];
    // ...
  }
  return current_obj;
}

The key_path originates directly from the extension and is not sanitized. In Objective-C, if a key passed to valueForKey: or valueForKeyPath: begins with an @ character, NSDictionary strips the @ and invokes [super valueForKey:]. The default NSObject implementation of KVC will then dynamically invoke a method matching the remaining string.

If an attacker provides a key path like @autorelease.@autorelease.@autorelease, the autorelease method is invoked multiple times on the dictionary. This registers the object multiple times in the worker thread's apple::ScopedNSAutoreleasePool. At the end of the loop iteration in GetSettingItems, ARC automatically releases the dictionary, and it is deallocated. However, the autorelease pool still holds dangling pointers to the freed memory. When the pool drains at the end of the task, it sends release messages to the reclaimed memory, causing a UAF.

Potential Attack Steps

Note: These are suggested steps; our tooling agent does not yet have the ability to run code to produce a working Proof-of-Concept.

  1. An attacker compromises the renderer process of an extension allowlisted for the enterprise.reportingPrivate permission (e.g., SecureConnect).
  2. The attacker calls chrome.enterpriseReportingPrivate.getSettings and provides an options array.
  3. The first option is crafted with a valid plist path and a malicious key set to "@autorelease.@autorelease.@autorelease".
  4. Subsequent options in the array are crafted with specific path lengths to trigger heap allocations of specific sizes. This is used to groom the heap and reclaim the memory previously occupied by the freed dictionary with a fake Objective-C object (a "fake-isa" payload).
  5. The browser process executes the request on a worker thread. The dictionary is allocated, over-autoreleased via KVC, and then freed by ARC.
  6. The subsequent requests reclaim the freed memory with the attacker's payload.
  7. When the thread pool task completes, the ScopedNSAutoreleasePool drains, sending a release message to the dangling pointer, which now points to the attacker's fake object. This vectors execution to an attacker-controlled address, achieving a sandbox escape.

Suggested Fix

Untrusted input should never be passed to valueForKey: or valueForKeyPath:.

In ParsePlist, replace the KVC method calls with explicit dictionary lookups. Instead of using valueForKeyPath:, iteratively split the string by . and use [dict objectForKey:key].

For example, change [current_obj valueForKey:sub_path] to [current_obj objectForKey:sub_path], and manually handle the key path traversal without relying on KVC.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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.

Raised in root component due to access or custom field issues on 1163683

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 passes renderer-supplied strings directly to Objective-C Key-Value Coding methods without sanitisation, allowing special key paths to invoke arbitrary methods and cause over-release.

Impact

A compromised allowlisted extension could potentially escape the renderer sandbox and execute arbitrary code in the browser process.

What the attacker needed

Compromised allowlisted extension; macOS; enterprise.reportingPrivate permission

The fix

The fix should replace KVC method calls with explicit dictionary lookups using objectForKey: and manual key path traversal.

How it was found

  1. Compromise the renderer process of an extension allowlisted for the enterprise.reportingPrivate permission.
  2. Call chrome.enterpriseReportingPrivate.getSettings with an options array.
  3. Craft the first option with a valid plist path and a malicious key.
  4. Craft subsequent options with specific path lengths to groom the heap and reclaim freed memory with a fake object.
  5. The browser process executes the request on a worker thread, over-releasing and freeing the dictionary.
  6. When the autorelease pool drains, it sends a release message to the dangling pointer, potentially achieving 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.

This report describes a memory bug in a macOS browser component. A dictionary object is freed but still referenced, so later use can crash or be hijacked. An attacker who already controls an extension could try to turn this into code execution in the browser process.

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.