Race condition in Chromoting (CVE-2026-87554)
An unhandled job object message leaves a stale worker process ID in the Chrome Remote Desktop daemon on Windows. An attacker can recycle that PID and trick the SYSTEM daemon into duplicating privileged handles into their process, leading to local privilege escalation.
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: In Chrome Remote Desktop on Windows, an abnormally terminating worker process leaves a stale process ID due to an unhandled job object message. If a subsequent relaunch fails, the SYSTEM daemon mistakenly attempts to establish IPC with the recycled PID, invoking DuplicateHandle on IPC shared memory. This pushes SYSTEM-level handles into a medium-integrity attacker's process before named pipe DACL checks apply, enabling a potential Local Privilege Escalation.
Affected files:
remoting/host/win/wts_session_process_delegate.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
1. Summary of the Issue (Meant for Human Triage)
A potential Local Privilege Escalation (LPE) to LocalSystem exists in the Chrome Remote Desktop (CRD) host service on Windows. The vulnerability stems from a state inconsistency in how the WtsSessionProcessDelegate tracks the lifecycle of its elevated worker process, combined with a bypass of Mojo/Ipcz named pipe DACL protections.
The CRD daemon uses a Windows Job Object to monitor the elevated worker process. When a process terminates normally, Windows sends JOB_OBJECT_MSG_EXIT_PROCESS. When it crashes or terminates abnormally, it sends JOB_OBJECT_MSG_ABNORMAL_EXIT_PROCESS. The daemon's IO completion port handler (OnIOCompleted) handles the former but entirely omits a case for the latter. Consequently, if the worker crashes, its process ID (worker_process_pid_) remains cached and becomes stale.
An attacker operating as a standard user in the remoted WTS session can crash the worker and aggressively spawn processes to recycle this stale PID. When the CRD daemon automatically attempts to relaunch the worker via an intermediate launcher process, the attacker can force the launcher to fail (e.g., via desktop heap exhaustion). The launcher's subsequent exit tricks the daemon into assuming the worker launched successfully. The daemon then calls OpenProcess on the attacker's recycled PID and passes it to mojo::OutgoingInvitation::Send to establish IPC.
Critically, although the CRD Mojo named pipe is protected by a strict SYSTEM-only DACL, the Ipcz driver establishes the connection by generating an initial handshake message and synchronously serializing it before the named pipe fully connects. During this synchronous serialization, EncodeHandle is invoked, which calls the Windows DuplicateHandle API. This takes SYSTEM-owned handles (such as IPC shared memory regions) and directly injects them into the attacker's process handle table. The attacker can then use these highly privileged handles to compromise the daemon, completely bypassing the named pipe's DACL.
2. Proof-of-Concept & Detailed Execution Flow
Note: The following outlines the potential steps an attacker would follow to trigger the vulnerability. Our tooling agent does not have the ability to run live code to provide a compiled PoC, but this execution flow has been mechanically verified against the Chromium codebase.
Step 1: Trigger Abnormal Worker Exit
- The attacker (with medium-integrity code execution in the remote WTS session) forces the legitimate, running elevated worker process (
remoting_desktop.exe) to crash. - Windows sends
JOB_OBJECT_MSG_ABNORMAL_EXIT_PROCESStoWtsSessionProcessDelegate::Core's job object completion port.
Step 2: Stale PID and Process Recycling
- In
remoting/host/win/wts_session_process_delegate.cc(OnIOCompleted), theswitchblock lacks a case forJOB_OBJECT_MSG_ABNORMAL_EXIT_PROCESS. worker_process_pid_is not reset tobase::kNullProcessId.- The attacker immediately spams short-lived process creations to capture the freed PID, obtaining control of the process backing the stale
worker_process_pid_.
Step 3: Relaunch and Launcher Failure
WorkerProcessLauncherdetects the worker exit and attempts a relaunch, creating a new suspended launcher process (LaunchProcessWithToken).- The launcher is assigned to the Job Object, emitting
JOB_OBJECT_MSG_NEW_PROCESS. - The attacker induces resource exhaustion (e.g., desktop heap limits) to force the new launcher to fail before it spawns a new worker.
- Because no worker is spawned, no
JOB_OBJECT_MSG_NEW_PROCESSoverrides the staleworker_process_pid_.
Step 4: Erroneous IPC Initialization
- The failed launcher process exits gracefully, sending
JOB_OBJECT_MSG_EXIT_PROCESSto the Job Object. - In
OnIOCompleted, handling the launcher's exit checksif (worker_process_pid_.load() == base::kNullProcessId). Because the PID is stale, the check fails. - The daemon erroneously posts
OnProcessLaunchDetected(stale_pid)to the caller thread.
Step 5: Process Handle Duplication (The Sink)
OnProcessLaunchDetectedinvokesbase::Process::OpenWithAccess(stale_pid, SYNCHRONIZE | PROCESS_DUP_HANDLE | PROCESS_QUERY_INFORMATION)on the attacker's PID without verifying the process token or image name.- The
base::ProcessHandleis passed tomojo::OutgoingInvitation::Send. - In
mojo/core/ipcz_driver/invitation.cc(Invitation::Send), thetarget_processhandle is unwrapped and locally cloned. It then callsGetIpczAPI().ConnectNode(), passing the transport driver object. NodeConnector::ConnectNodecallsconnector->ActivateTransport(), initiating asynchronous named pipe connection. Immediately after, it synchronously callsconnector->Connect(), creating the introductory IPC handshake message.DriverTransport::Transmitis called synchronously on the calling thread to send the message, invokingTransport::SerializeObject(mojo/core/ipcz_driver/transport.cc).- For each platform handle (e.g., the
NodeLinkMemorysection),Transport::SerializeObjectcallsEncodeHandle(..., HandleOwner::kRecipient, ...). EncodeHandleinvokes::DuplicateHandle(GetCurrentProcess(), source_handle, attacker_process_handle, ..., DUPLICATE_SAME_ACCESS).- Result:
SYSTEMread/write handles to the daemon's internal IPC memory are injected directly into the attacker's process handle table, enabling full Local Privilege Escalation.
Suggested Fix:
- Handle Abnormal Exits: Add a
case JOB_OBJECT_MSG_ABNORMAL_EXIT_PROCESS:toWtsSessionProcessDelegate::Core::OnIOCompletedthat explicitly resetsworker_process_pid_ = base::kNullProcessId;. - Verify Process Identity: In
OnProcessLaunchDetected, before callingmojo::OutgoingInvitation::Send, perform an explicit validation of the opened process handle usingIsProcessInJob()(to ensure it belongs to the CRD job object) or query its token/image path to ensure it is the legitimateSYSTEMworker.
3. Technical Verification Details (Automated Audit Logs - Reviewers may skip this section)
Prior Critic Verdict:
* Severity: 1 (High / S1)
* Brief Notes / Reasoning:
The vulnerability describes a Local Privilege Escalation (LPE) to SYSTEM in Chrome Remote Desktop. While the previous Critic correctly identified a flaw in the report's proposed race condition, it incorrectly concluded the bug was unexploitable. The issue is a valid, High-severity (S1) LPE.
1. Stale PID: As the report states, JOB_OBJECT_MSG_ABNORMAL_EXIT_PROCESS is unhandled in WtsSessionProcessDelegate::Core::OnIOCompleted. Abnormal termination of the worker leaves worker_process_pid_ stale.
2. Exploit Path: The report's race condition (dropping NEW_PROCESS because elevated_launcher_pid_ is unset) is indeed impossible in the current codebase, as it is set prior to AssignProcessToJobObject. However, an attacker can achieve the exact same state by forcing the launcher to fail to launch the worker (e.g., via standard desktop heap/resource exhaustion). If the launcher fails to spawn the worker, no NEW_PROCESS is generated to overwrite the stale worker_process_pid_. When the launcher subsequently exits, EXIT_PROCESS posts OnProcessLaunchDetected with the attacker-controlled stale PID.
3. Refuting the IPC Catch-22: The prior Critic claimed that because the attacker cannot bypass the SYSTEM-only DACL to connect to the named pipe, IPC setup and DuplicateHandle never occur. This is false due to the design of the ipcz driver. OnProcessLaunchDetected passes the attacker's process handle to mojo::OutgoingInvitation::Send, which synchronously invokes ipcz_connect_node. To prepare the initial broker handshake message, DriverTransport::Transmit synchronously calls Transport::SerializeObject on the calling thread. During serialization, EncodeHandle is invoked with HandleOwner::kRecipient. This immediately executes ::DuplicateHandle(GetCurrentProcess(), handle, remote_process_.Handle(), ...) for all handles in the message (crucially, the ipcz NodeLinkMemory allocation).
4. Conclusion: The handles are pushed directly into the attacker's handle table before the named pipe connection is even initiated on the IO thread. The pipe DACL is irrelevant. The attacker gains read/write handles to the SYSTEM daemon's IPC shared memory (with DUPLICATE_SAME_ACCESS), enabling trivial LPE. S1 is the correct severity.
Codebase Investigation Logs & Proof of Reachability:
- Missing Job Object Notification:
codebase_investigatorcheckedremoting/host/win/wts_session_process_delegate.cc:329-381.JOB_OBJECT_MSG_EXIT_PROCESSis handled at line 357.JOB_OBJECT_MSG_ABNORMAL_EXIT_PROCESSis entirely absent from theswitchblock. Windows API documentation explicitly defines these as mutually exclusive; thus, an abnormal exit leavesworker_process_pid_stale. - Launcher Exit Triggers Launch Detection:
codebase_investigatorverifiedOnIOCompletedlines 357-379. Ifprocess_id == elevated_launcher_pid_.load()andworker_process_pid_.load()is not null (retained from the crash),caller_task_runner_->PostTask(FROM_HERE, base::BindOnce(&Core::OnProcessLaunchDetected, this, worker_process_pid_.load()));is executed. - No Security Checks in OpenProcess:
codebase_investigatortracedOnProcessLaunchDetected(lines 580-603).base::Process::OpenWithAccess(pid, SYNCHRONIZE | PROCESS_DUP_HANDLE | PROCESS_QUERY_INFORMATION)is called. There are no calls toGetTokenInformation,IsProcessInJob, or equivalent identity verification routines before sending the handle to Mojo. - Synchronous Transport Serialization Defeating DACL:
codebase_investigatortracedmojo/core/ipcz_driver/invitation.cc(lines 214-307).OutgoingInvitation::SendcallsGetIpczAPI().ConnectNode().third_party/ipcz/src/ipcz/node_connector.ccexecutesActivateTransport()(which asynchronously begins named pipe connection), immediately followed byConnect(), which synchronously creates the introductory message and transmits it viaDriverTransport::Transmit. This delegates toTransport::SerializeObject(mojo/core/ipcz_driver/transport.cc:429-515), invokingEncodeHandle.EncodeHandlecalls::DuplicateHandleunconditionally forHandleOwner::kRecipienton Windows. This mechanically verifies that handle duplication occurs before the asynchronous IO thread completes the named pipe connection, proving the DACL is bypassed. - Environmental Assumptions: Target is Windows OS. Chrome Remote Desktop daemon runs as
LocalSystem. Attacker is a standard user in the remote session.
Evaluated with Chrome root at commit: 8c517fbcbb533e59ec9cedac868c8a9bdc30beb2
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.
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 daemon's job object completion handler does not handle the abnormal process exit message, so the cached worker process ID is never reset and can be reused by an attacker.
Impact
An attacker could gain SYSTEM-level handles and achieve local privilege escalation, completely bypassing the named pipe's DACL.
What the attacker needed
Windows OS; Chrome Remote Desktop host service running as SYSTEM; Attacker has medium-integrity code execution in remote…
The fix
The daemon should handle abnormal process exits by resetting the cached worker PID, and should verify the identity of the process before sending it IPC handles.
How it was found
- The attacker forces the running elevated worker process to crash, causing an abnormal exit notification.
- The daemon fails to reset the worker process ID, leaving it stale.
- The attacker spawns many short-lived processes to recycle that PID.
- The daemon attempts to relaunch the worker via a launcher, but the attacker forces the launcher to fail.
- The launcher exits, and the daemon mistakenly treats the stale PID as the new worker.
- The daemon opens the attacker's process and duplicates SYSTEM handles into it during IPC setup.
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 background service with high system privileges. A normal user can crash one of its helper processes, and the service forgets to clear the old process ID. By quickly starting their own process with that same ID, the attacker can make the service send them powerful system handles, which they can use to take over the machine.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.