Skip to content
Race condition Advisory Advanced CVE-2026-7948

Race in Chromoting (CVE-2026-7948)

A race condition in the ChromotingHostServices named-pipe server on Windows allows a local attacker to spoof a trusted binary by recycling the process ID of a connecting client before validation. This could grant unauthorised access to sensitive Mojo interfaces, enabling interception or injection of hardware security key operations.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 42 days

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

Overview: A potential PID-reuse Time-of-Check Time-of-Use (TOCTOU) vulnerability exists in the ChromotingHostServices named-pipe server on Windows. By exploiting the delay between connection acceptance and validation, an attacker could recycle the connecting process ID (PID) to spoof a trusted Chrome Remote Desktop binary. This could grant an unprivileged local attacker unauthorized access to sensitive Mojo interfaces, enabling them to intercept or inject hardware security key operations intended for the remote client.

Affected files:

  • remoting/host/mojo_caller_security_checker.cc
  • components/named_mojo_ipc_server/named_mojo_server_endpoint_connector_win.cc
  • components/named_mojo_ipc_server/connection_info.h
  • remoting/host/chromoting_host.cc
  • remoting/host/base/process_util.cc
  • remoting/host/win/trust_util.cc

Estimated timestamp from git blame: 2025-04-17

Vulnerability Summary

A potential Time-of-Check Time-of-Use (TOCTOU) vulnerability exists in the authentication mechanism of the ChromotingHostServices named-pipe server on Windows. The server validates the identity of connecting clients based on their Process ID (PID), but this validation occurs after an asynchronous thread hop, creating a window where the PID can be reused by a different process. An unprivileged local attacker could potentially exploit this to spoof a trusted binary (e.g., remote_webauthn.exe) and gain unauthorized access to sensitive Mojo interfaces like WebAuthnProxy and SecurityKeyForwarder.

Technical Details

The vulnerability lies in how IsTrustedMojoEndpoint (in remoting/host/mojo_caller_security_checker.cc) validates the caller.

  1. PID Capture: When a new connection is received via the named pipe, NamedMojoServerEndpointConnectorWin::OnReady (in components/named_mojo_ipc_server/named_mojo_server_endpoint_connector_win.cc) calls GetNamedPipeClientProcessId to retrieve the PID of the connecting client.
  2. Async Validation: This PID is stored in a ConnectionInfo object and passed to the main thread via an asynchronous task (delegate_.AsyncCall).
  3. Validation Logic: On the main thread, IsTrustedMojoEndpoint is called. It attempts to resolve the PID to an image path using GetProcessImagePath(caller.pid). Because the PID is just a number and is captured without a corresponding process handle, if the original process has exited and its PID has been recycled by a new process, GetProcessImagePath will return the path of the new process.
  4. Trust Verification: The validator checks if the image path belongs to an allowed binary and if that binary is trusted (via IsBinaryTrusted in remoting/host/win/trust_util.cc).

Notably, the susceptibility of this code to PID reuse attacks is explicitly acknowledged in a TODO comment at remoting/host/mojo_caller_security_checker.cc:67.

Attack Scenario

Note: These steps are suggested/potential as they have not yet been executed in a live environment.

An attacker (any authenticated local user) could potentially perform the following steps:

  1. Connect to the ChromotingHostServices named pipe using a short-lived process.
  2. Duplicate the pipe handle to another process (to keep the connection alive) and terminate the connecting process immediately.
  3. Flood the main thread's task queue with numerous connection requests to increase the processing delay and widen the TOCTOU window. This takes advantage of the fact that Authenticode checks (IsBinaryTrusted) are slow disk operations.
  4. Rapidly spawn many suspended instances of a legitimate, signed Chrome Remote Desktop binary (like remote_webauthn.exe) from the installation directory in a tight loop until one of them is assigned the recycled PID of the original connecting process.
  5. When the main thread finally processes the validation task, GetProcessImagePath(pid) resolves the PID to the freshly-spawned, legitimate remote_webauthn.exe instance.
  6. The validator sees a correct signed binary in the correct directory, and the connection is approved.
  7. The attacker's pipe connection is bound as a receiver for ChromotingHostServices, allowing them to call BindWebAuthnProxy or BindSecurityKeyForwarder to intercept or inject credential operations forwarded to the remote client.

A secondary session-ID check in ChromotingHost::BindSessionServices (in remoting/host/chromoting_host.cc) using ProcessIdToSessionId is equally racy as it uses the same stale PID.

Recommendation

To remediate this issue on Windows, ConnectionInfo should include a process handle (base::Process) to pin the identity of the caller. The handle should be opened immediately upon connection (on the IO thread) using OpenProcess with the minimum necessary permissions (PROCESS_QUERY_LIMITED_INFORMATION). Validation should then be performed using this captured process handle rather than a raw PID. This ensures that even if the client process terminates, its PID cannot be reused for a new process while the handle remains open, and the validator will correctly identify that the process has exited.

Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8


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. Please feel free to reach out to me if you have concerns or feedback.

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 server validates the client by a raw process ID captured asynchronously, without holding a process handle, so the ID can be recycled before the check runs.

Impact

An unprivileged local attacker could potentially intercept or inject hardware security key operations intended for the remote client, though the report notes the steps are suggested and not yet executed.

What the attacker needed

Local access to the Windows machine; ability to run processes as an authenticated user; Chrome Remote Desktop host service running

The fix

The fix should capture a process handle immediately on connection and validate using that handle instead of a raw PID.

How it was found

  1. Connect to the ChromotingHostServices named pipe using a short-lived process.
  2. Duplicate the pipe handle to another process and terminate the connecting process immediately.
  3. Flood the main thread's task queue with connection requests to widen the timing window.
  4. Rapidly spawn suspended instances of a legitimate signed Chrome Remote Desktop binary until one receives the recycled PID.
  5. When validation runs, the PID resolves to the legitimate binary and the connection is approved.
  6. The attacker's pipe connection is bound as a receiver for ChromotingHostServices.

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 connects to another program on the same computer, the receiver checks the sender's identity using a temporary number called a process ID. If the sender exits quickly, that number can be reused by a different program, so the check may approve the wrong program. This report describes such a timing problem in a Windows service for Chrome Remote Desktop.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.