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.ccremoting/host/linux/linux_process_launcher_delegate.hremoting/host/daemon_process_linux.ccremoting/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
- The system-wide CRD daemon runs as
root. - 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 aPasswdUserInfostruct containing unsigneduid_tandgid_tfields. - The daemon copies these values into a
LinuxWorkerProcessLauncherDelegate::LaunchOptionsstruct (remoting/host/linux/linux_process_launcher_delegate.h). However, this struct definesuidandgidas signedint. For UIDs >=2^31, this causes an implicit cast to a negative value. - These negative values are passed to the constructor of
RunAsUserPreExecDelegate(remoting/host/linux/linux_process_launcher_delegate.cc), which also stores them asint uid_andint gid_. - During
base::LaunchProcess, a child process is forked (inheriting root privileges). Beforeexecis called,RunAsUserPreExecDelegate::RunAsyncSafe()executes in the child process to drop privileges. RunAsyncSafe()checksif (uid_ >= 0 || gid_ >= 0)to clear supplementary groups, andif (uid_ >= 0 && setuid(uid_) != 0)to set the user ID. Because the values are negative, these checks evaluate tofalse.- The
setuid,setgid, andsetgroupscalls are completely bypassed. Theexeccall proceeds, and the worker processes run asrootinstead 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
- The attacker must possess legitimate, but unprivileged, credentials for a Linux system running the system-wide CRD daemon.
- The system's identity provider (e.g., Active Directory) must assign the attacker a UID or GID >= 2,147,483,648.
- The attacker establishes a Chrome Remote Desktop connection to the target system.
- The resulting Remote Desktop session and associated network processes will automatically run with
rootprivileges, allowing the attacker to completely compromise the system.
Suggested Remediation
- Update
LinuxWorkerProcessLauncherDelegate::LaunchOptions(remoting/host/linux/linux_process_launcher_delegate.h) to useuid_t uid;andgid_t gid;instead ofint. - Update
RunAsUserPreExecDelegate(remoting/host/linux/linux_process_launcher_delegate.cc) to storeuid_t uid_;andgid_t gid_;. - Since
uid_tandgid_tare unsigned and cannot represent a negative "no change" value, usestd::optional<uid_t>andstd::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.
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
- Have unprivileged credentials on a Linux system running the system-wide CRD daemon.
- Have an identity provider assign a UID or GID of 2,147,483,648 or higher.
- Establish a Chrome Remote Desktop connection to the target system.
- 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.