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

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

The UnprivilegedProcessDelegate in Chrome Remote Desktop duplicates a worker process handle without the PROCESS_TERMINATE right, so KillProcess fails silently and a compromised worker can persist. It also closes the handle while an ObjectWatcher is still monitoring it, and a subsequent relaunch can race on the watcher's callback reference, potentially causing memory corruption in the SYSTEM daemon.

Google Chrome

Originally disclosed on Chrome VRP

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

Overview: The UnprivilegedProcessDelegate in Chrome Remote Desktop fails to request necessary termination rights for worker processes and violates the ObjectWatcher contract by closing handles while they are being monitored. This combination allows compromised processes to persist and can trigger a data race leading to memory corruption in the privileged SYSTEM daemon.

Affected files:

  • remoting/host/win/unprivileged_process_delegate.cc
  • remoting/host/win/windows_process_delegate.cc

Estimated timestamp from git blame: 2026-02-03

Potential Vulnerability: Persistence and Memory Corruption in CRD SYSTEM Daemon

Summary

The remoting::UnprivilegedProcessDelegate class in Chrome Remote Desktop (CRD) for Windows exhibits two critical handle management flaws. These flaws collectively allow a compromised low-privilege worker process (running as LocalService) to bypass termination attempts and potentially trigger memory corruption in the highly privileged SYSTEM daemon.

Root Cause Analysis

1. Insufficient Access Rights for Worker Termination In remoting/host/win/unprivileged_process_delegate.cc, the ReportProcessLaunched method duplicates the worker process handle with restricted rights: SYNCHRONIZE | PROCESS_DUP_HANDLE | PROCESS_QUERY_INFORMATION. Crucially, it omits the PROCESS_TERMINATE right. Unlike other delegate implementations (e.g., WtsSessionProcessDelegate), UnprivilegedProcessDelegate does not retain the original full-privilege handle.

When KillProcess() is called (e.g., during a process restart or IPC error), it attempts to call TerminateProcess() using the restricted handle. Because the handle lacks PROCESS_TERMINATE permissions, the kernel rejects the call with ERROR_ACCESS_DENIED. The failure is silent, allowing a compromised process to remain active indefinitely.

2. ObjectWatcher Contract Violation and Data Race Following the failed termination attempt, KillProcess() calls worker_process_.Close(). However, this handle is still actively monitored by a base::win::ObjectWatcher instance (initialized in WindowsProcessDelegate::WatchProcess). The documentation for base::win::ObjectWatcher explicitly forbids closing a handle while a wait is pending.

When the WorkerProcessLauncher attempts to relaunch the process using the same delegate instance, it calls StartWatchingOnce again. In release builds, the DCHECK guarding against multiple active watches is absent. This leads to a situation where the Windows thread pool may execute the callback for the first (leaked) wait registration while the main thread is initializing the second watch.

This concurrent access to ObjectWatcher's internal state (specifically the callback_ member, which is a scoped_refptr) constitutes a data race. Since scoped_refptr is not thread-safe for simultaneous read/write operations, this can lead to reference count corruption, resulting in a Use-After-Free (UAF) or double-free within the privileged SYSTEM daemon.

Potential Impact

  • Persistence: A compromised network process can persist even when the daemon attempts to shut it down.
  • Privilege Escalation: The memory corruption in the SYSTEM daemon could potentially be leveraged by an attacker to execute arbitrary code with SYSTEM privileges, achieving a full sandbox escape from the LocalService worker.

Suggested Steps for Potential Exploitation

  1. Achieve code execution in the CRD LocalService network process.
  2. Trigger a process restart in the daemon by closing the IPC pipe while remaining alive.
  3. The daemon's KillProcess() will fail to terminate the compromised process due to missing rights.
  4. The daemon will attempt to relaunch the process, calling ObjectWatcher::StartWatchingOnce on the main thread.
  5. Carefully time the exit of the original compromised process to trigger the leaked ObjectWatcher callback on a thread pool thread during the relaunch.
  6. Exploit the resulting data race on the callback_ member to achieve memory corruption and control flow hijacking in the SYSTEM daemon.

Suggested Fix

  1. In UnprivilegedProcessDelegate::ReportProcessLaunched, include PROCESS_TERMINATE in the desired_access for the duplicated handle.
  2. In UnprivilegedProcessDelegate::KillProcess, explicitly call process_watcher_.StopWatching() before closing the worker_process_ handle to ensure the wait registration is properly cancelled and the ObjectWatcher contract is respected.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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 duplicated worker handle lacks PROCESS_TERMINATE and is closed while still registered with an ObjectWatcher, so a relaunch can race on the watcher's callback reference.

Impact

A compromised low-privilege worker could persist despite shutdown attempts, and the data race could potentially be leveraged to execute code with SYSTEM privileges, escaping the sandbox.

What the attacker needed

Code execution in the LocalService worker; ability to close the IPC pipe; precise timing of process exit

The fix

The duplicated handle should include PROCESS_TERMINATE, and KillProcess should call StopWatching before closing the worker handle.

How it was found

  1. Achieve code execution in the CRD LocalService network process.
  2. Trigger a process restart in the daemon by closing the IPC pipe while remaining alive.
  3. The daemon's KillProcess fails to terminate the compromised process due to missing rights.
  4. The daemon attempts to relaunch the process, calling ObjectWatcher::StartWatchingOnce on the main thread.
  5. Time the exit of the original compromised process to trigger the leaked ObjectWatcher callback on a thread pool thread during the relaunch.
  6. Exploit the resulting data race on the callback_ member to achieve memory corruption and control flow hijacking in the SYSTEM daemon.

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.

Chrome Remote Desktop runs a low-privilege helper process and a high-privilege system service. The helper's handle was copied without permission to kill it, so the service's attempt to stop the helper fails quietly. The service also closes that handle while still waiting on it, and starting a new wait can race with the old one, which may corrupt memory in the high-privilege service.

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.