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

Use after free in Core (CVE-2026-10915)

A data race in the iOS browser process allows a use-after-free of an ARC-managed process object. An attacker who already has code execution in a renderer could potentially exploit this to escape the sandbox and run code in the browser process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A data race in ChildProcessLauncherHelper on iOS allows a potential use-after-free (UAF) of an ARC-managed process object. The UI thread reads the process object without synchronization while a background thread clears it, which under ARC can lead to retaining a deallocated object.

Affected files:

  • content/browser/child_process_launcher_helper_ios.mm
  • content/browser/child_process_launcher_helper.h

Estimated timestamp from git blame: 2024-04-12

Summary

A potential Use-After-Free (UAF) vulnerability exists in the browser process on iOS. It is caused by an unsynchronized cross-thread access to an ARC-managed strong pointer (process_) within the ProcessStorage class. Objective-C ARC pointer reads and writes are not atomic. A race condition between the UI thread reading the pointer and background termination handlers clearing it can cause ARC to retain a deallocated object, leading to a UAF.

Technical Details

In content/browser/child_process_launcher_helper_ios.mm, the ProcessStorage class manages the lifetime of iOS child process objects (BEWebContentProcess, BENetworkingProcess, or BERenderingProcess):

C++
class ProcessStorage : public ProcessStorageBase {
 public:
  // ...
  void ReleaseProcess() override { process_ = nullptr; }
  NSObject* Process() { return process_; }
 private:
  NSObject* process_; // ARC-managed __strong pointer
  // ...
};

There are two conflicting paths accessing process_:

  1. Writer Path (Background Thread): When a child process terminates, an XPC error handler or interruption handler runs on an arbitrary background libdispatch queue. This handler calls OnChildProcessTerminatedOnAnyThread, which acquires g_process_table_lock_ and eventually calls ReleaseProcess(). This sets process_ = nullptr, which ARC translates to an objc_storeStrong call that decrements the object's reference count and deallocates it if the count reaches zero.

  2. Reader Path (UI Thread): When the UI thread handles a Mojo channel error (e.g., in RenderProcessHostImpl::OnChannelError), it calls ChildProcessLauncherHelper::GetTerminationInfo. This method checks static_cast<ProcessStorage*>(process_storage_.get())->Process() == nullptr to determine the process status. Crucially, this read does not acquire g_process_table_lock_ or any other synchronization primitive.

The Race and UAF

When the UI thread calls Process(), ARC generates code to load the pointer and typically calls objc_retain (or objc_retainAutoreleasedReturnValue) to ensure the returned object remains valid. If the UI thread loads the pointer value, and then the background thread clears process_ and releases the object before the UI thread can call objc_retain, the object may be deallocated. The UI thread will then call objc_retain on a freed object, dereferencing its isa pointer and causing a Use-After-Free.

This occurs in the highly privileged browser process. Additionally, because the pointer is an Objective-C ARC pointer, it is not protected by MiraclePtr (BackupRefPtr).

Potential Exploitation Steps

Note: These are theoretical steps, as our tooling agent cannot execute code to provide a working PoC.

  1. An attacker exploits a renderer process to gain arbitrary code execution within the sandbox.
  2. The attacker performs heap grooming in the browser process via IPC, preparing malicious payloads to replace the BEWebContentProcess object in memory.
  3. The attacker deliberately crashes the renderer process or drops the Mojo connection, triggering concurrent termination handling in the browser process: the Mojo channel error on the UI thread and the XPC error on a background thread.
  4. If the UI thread loads the process_ pointer and is immediately preempted, the background thread may execute ReleaseProcess(), dropping the reference count to zero and freeing the object.
  5. The attacker's groomed data is immediately reallocated into the freed memory space, forging the isa pointer.
  6. The UI thread resumes and calls objc_retain on the attacker-controlled memory, hijacking the Objective-C method dispatch to redirect control flow to an attacker-controlled ROP chain, achieving arbitrary code execution and a full sandbox escape.

Suggested Fix

Synchronize access to the process_ pointer and exit_code_ within ChildProcessLauncherHelper. One solution is to require g_process_table_lock_ to be held when accessing process_storage_ in GetTerminationInfo, or by using explicit thread-safe primitives (like std::atomic or locks) to manage the Objective-C pointer access.

Evaluated with Chrome root at commit: 876d480da1f794d87813cfa2e6ff4fcf9771e939


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 process pointer is read on the UI thread without holding the lock that the background thread uses when clearing it, and Objective-C ARC pointer accesses are not atomic.

Impact

An attacker who already has renderer code execution could potentially achieve arbitrary code execution in the browser process and a full sandbox escape, though the report notes these steps are theoretical and no working proof of concept was produced.

What the attacker needed

Code execution in a renderer process; precise timing of two threads; iOS browser process

The fix

Access to the process pointer should be synchronised, for example by requiring the existing lock to be held in GetTerminationInfo or by using explicit thread-safe primitives.

How it was found

  1. Gain code execution inside a renderer sandbox.
  2. Groom the browser process heap via IPC to prepare fake objects.
  3. Trigger concurrent termination handling by crashing the renderer or dropping the Mojo connection.
  4. If the UI thread is preempted after loading the pointer, the background thread frees the object.
  5. Reallocate the freed memory with attacker-controlled data to forge the isa pointer.
  6. When the UI thread resumes, objc_retain uses the forged pointer to hijack control flow.

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 timing bug in a web browser on iPhones and iPads. Two parts of the program access the same piece of memory at the same time without coordination: one reads it while another frees it. If the timing is just right, the program uses memory that has already been freed, which can let an attacker who already controls a web page's process take over the more powerful 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.