Skip to content
Access control Advisory Advanced CVE-2026-17877

Inappropriate implementation in Chromoting (CVE-2026-17877)

The Chrome Remote Desktop Linux daemon stores user IDs and group IDs in signed integers, so IDs of 2,147,483,648 or higher become negative and bypass the privilege-dropping checks. A user with such an ID could then have their remote session run as root, leading to local privilege escalation.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 50 days

Flapjack, 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 Chrome Remote Desktop (CRD) Linux daemon uses signed integers to store the target UID and GID when spawning worker processes. If a user has a UID/GID greater than or equal to 2,147,483,648, the IDs are cast to negative values, causing the privilege-dropping checks to fail. This potentially allows the user's CRD session to run with inherited root privileges, leading to a Local Privilege Escalation (LPE).

Affected files:

  • remoting/host/linux/linux_process_launcher_delegate.cc
  • remoting/host/linux/linux_process_launcher_delegate.h
  • remoting/host/daemon_process_linux.cc
  • remoting/host/linux/desktop_session_factory_linux.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

There is a potential Local Privilege Escalation (LPE) vulnerability in the Chrome Remote Desktop (CRD) Linux host. The root-privileged CRD daemon spawns worker processes (Network and Desktop) for connecting users and drops privileges to match the user's identity. However, the variables used to store the user's UID and GID during the launch process are typed as signed 32-bit integers (int). If an environment uses large UIDs or GIDs (>= 2,147,483,648), which is common in enterprise setups integrating Active Directory via SSSD, these IDs implicitly cast to negative numbers. This negative value bypasses the checks meant to trigger the privilege dropping functions (setuid, setgid, setgroups), causing the worker processes to execute as root.

Technical Details

  1. The system-wide CRD daemon runs as root.
  2. When preparing to launch the network or desktop process for a user, the daemon fetches their system information using GetPasswdUserInfo(username) (remoting/base/passwd_utils.cc). This correctly populates a PasswdUserInfo struct containing unsigned uid_t and gid_t fields.
  3. The daemon copies these values into a LinuxWorkerProcessLauncherDelegate::LaunchOptions struct (remoting/host/linux/linux_process_launcher_delegate.h). However, this struct defines uid and gid as signed int. For UIDs >= 2^31, this causes an implicit cast to a negative value.
  4. These negative values are passed to the constructor of RunAsUserPreExecDelegate (remoting/host/linux/linux_process_launcher_delegate.cc), which also stores them as int uid_ and int gid_.
  5. During base::LaunchProcess, a child process is forked (inheriting root privileges). Before exec is called, RunAsUserPreExecDelegate::RunAsyncSafe() executes in the child process to drop privileges.
  6. RunAsyncSafe() checks if (uid_ >= 0 || gid_ >= 0) to clear supplementary groups, and if (uid_ >= 0 && setuid(uid_) != 0) to set the user ID. Because the values are negative, these checks evaluate to false.
  7. The setuid, setgid, and setgroups calls are completely bypassed. The exec call proceeds, and the worker processes run as root instead of the connecting user.

(Note: These are potential steps, as our tooling cannot currently run code to provide a functional Proof of Concept.)

Potential Attacker Steps

  1. The attacker must possess legitimate, but unprivileged, credentials for a Linux system running the system-wide CRD daemon.
  2. The system's identity provider (e.g., Active Directory) must assign the attacker a UID or GID >= 2,147,483,648.
  3. The attacker establishes a Chrome Remote Desktop connection to the target system.
  4. The resulting Remote Desktop session and associated network processes will automatically run with root privileges, allowing the attacker to completely compromise the system.

Suggested Remediation

  1. Update LinuxWorkerProcessLauncherDelegate::LaunchOptions (remoting/host/linux/linux_process_launcher_delegate.h) to use uid_t uid; and gid_t gid; instead of int.
  2. Update RunAsUserPreExecDelegate (remoting/host/linux/linux_process_launcher_delegate.cc) to store uid_t uid_; and gid_t gid_;.
  3. Since uid_t and gid_t are unsigned and cannot represent a negative "no change" value, use std::optional<uid_t> and std::optional<gid_t>, or define a sentinel value (e.g., (uid_t)-1) to indicate when the IDs should not be modified, and explicitly check against that state rather than using >= 0.

Evaluated with Chrome root at commit: 2155cb00003ec35716a76ed3246eae995f87b7ff


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 code stores UID and GID in signed 32-bit integers, so values at or above 2^31 become negative and the checks that should trigger setuid/setgid/setgroups are skipped.

Impact

A user with a large UID or GID could get a remote desktop session running as root, potentially compromising the whole system; the report notes these are potential steps without a working proof of concept.

What the attacker needed

Unprivileged Linux account on host with CRD daemon; UID or GID of 2,147,483,648 or higher; ability to start a Chrome Remote Desktop connection

The fix

The code should store UID and GID as unsigned types (uid_t and gid_t) and use an explicit optional or sentinel value instead of checking for negative numbers.

How it was found

  1. Have unprivileged credentials on a Linux system running the system-wide CRD daemon.
  2. Have an identity provider assign a UID or GID of 2,147,483,648 or higher.
  3. Establish a Chrome Remote Desktop connection to the target system.
  4. Observe that the remote session and network processes run with root privileges.

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.

On Linux, every user has a numeric user ID (UID) and group ID (GID). The Chrome Remote Desktop service runs as the all-powerful root user but is supposed to switch to the connecting user's ID before starting that user's session. This report says that for very large IDs the switch is skipped, so the session keeps root powers.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.