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

Use after free in Chromoting (CVE-2026-7925)

A race condition during shutdown of a Windows Remoting Host component allows a freed object to be used after deallocation, because asynchronous Job object notifications can arrive after the object is destroyed. An attacker with a compromised lower-privileged process could potentially achieve remote code execution as SYSTEM.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 24 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 race condition during the shutdown of WtsSessionProcessDelegate::Core in the Windows Remoting Host allows asynchronous Job object notifications to be processed after the object's destruction. Because the object pointer is stored in the Windows kernel as a raw integer, MiraclePtr protections are completely bypassed. This Use-After-Free could potentially allow a compromised lower-privileged process to achieve Remote Code Execution as SYSTEM.

Affected files:

  • remoting/host/win/wts_session_process_delegate.cc

Estimated timestamp from git blame: 2025-11-10

Description

A potential Use-After-Free (UAF) vulnerability exists in the Chrome Remote Desktop host (remoting_host) on Windows, specifically in WtsSessionProcessDelegate::Core.

The vulnerability stems from a race condition during the teardown of a Windows Job Object. The shutdown sequence assumes that a single task round-trip to the IO thread (DrainJobNotifications()) is sufficient to drain pending Job Object notifications. However, TerminateJobObject() is an asynchronous kernel operation. Processes within the Job may continue to terminate after the draining task completes.

Consequently, the Core object drops its final reference and is freed, but the Job Object remains associated with the IO Completion Port (IOCP). When the processes finally exit, the Windows kernel queues a JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO packet to the IOCP. The packet contains a completion key pointing directly to the freed Core object. When the IO thread dequeues this packet, it triggers a virtual call to OnIOCompleted() on the deleted object, resulting in a UAF.

MiraclePtr Bypass

During Job Object registration, the Core pointer is cast to a ULONG_PTR and passed to the Windows kernel. Because it is stored as a raw integer outside of Chromium's memory space, PartitionAlloc's BackupRefPtr (MiraclePtr) reference count is not incremented. When the object is freed on the caller thread, the memory is immediately returned to the allocator without being quarantined. This completely bypasses MiraclePtr protections and allows reliable reallocation.

Potential Reproduction Steps

(Note: These are suggested steps based on static analysis; our tooling agent cannot execute code to verify a PoC.)

  1. From a compromised lower-privileged process (e.g., a sandboxed renderer), send an IPC message to the remoting_host daemon (running as SYSTEM) to manage a worker session.
  2. Trigger the termination of the session, invoking WtsSessionProcessDelegate::Core::Stop().
  3. The host calls TerminateJobObject() and immediately runs its internal DrainJobNotifications task, releasing the Core object.
  4. Through IPC heap spraying, reallocate the freed Core object memory with attacker-controlled data, including a valid Core vtable to bypass Clang CFI.
  5. The asynchronous termination of the Job finishes, causing the kernel to queue the JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO packet.
  6. The IO thread dequeues the packet, casts the dangling ULONG_PTR completion key back to IOHandler*, and executes the OnIOCompleted() virtual call on the attacker-controlled memory, leading to RCE as SYSTEM.

Suggested Fix

To fix this race condition, WtsSessionProcessDelegate::Core must not be destroyed until the Job Object is verifiably empty. Instead of relying on a fire-and-forget draining task, the Core object should retain a scoped_refptr to itself until it explicitly receives the JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO notification via OnIOCompleted(). This ensures the object definitively outlives all possible IOCP callbacks generated by the kernel.

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.

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 shutdown sequence assumes a single task round-trip is enough to drain pending Job Object notifications, but TerminateJobObject is asynchronous, so the Core object can be freed before all notifications are processed.

What the attacker needed

Compromised lower-privileged process; ability to send IPC to remoting_host

The fix

The Core object should retain a scoped_refptr to itself until it explicitly receives the JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO notification via OnIOCompleted(), ensuring it outlives all possible IOCP callbacks.

How it was found

  1. From a compromised lower-privileged process, send an IPC message to the remoting_host daemon to manage a worker session.
  2. Trigger termination of the session, invoking WtsSessionProcessDelegate::Core::Stop().
  3. The host calls TerminateJobObject() and immediately runs its internal DrainJobNotifications task, releasing the Core object.
  4. Through IPC heap spraying, reallocate the freed Core object memory with attacker-controlled data, including a valid Core vtable to bypass Clang CFI.
  5. The asynchronous termination of the Job finishes, causing the kernel to queue the JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO packet.
  6. The IO thread dequeues the packet, casts the dangling ULONG_PTR completion key back to IOHandler*, and executes the OnIOCompleted() virtual call on the attacker-controlled memory, leading to RCE as SYSTEM.

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 a program finishes using an object, it frees the memory. If another part of the program still tries to use that memory, it is called a use-after-free. Here, a timing problem means a notification from the operating system arrives after the object is gone, letting an attacker who already controls a low-privilege process take over the system.

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.