Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102371 Overview
CVE-2026-102371 is an information disclosure vulnerability in Canonical's wsl-pro-service component prior to version 0.1.19ubuntu3. The service runs as root inside each Windows Subsystem for Linux (WSL) instance and attaches the system to Ubuntu Pro by invoking the pro client with the subscription token passed as a command-line argument. Because WSL mounts /proc without hidepid by default, any unprivileged local user in the same WSL instance can read the token from /proc/<pid>/cmdline while the attach process runs. A leaked token allows an attacker to attach additional machines to the victim's Ubuntu Pro subscription and obtain unauthorized access to Ubuntu Pro services [CWE-214].
Critical Impact
Local unprivileged users in a WSL instance can steal the Ubuntu Pro subscription token and abuse it to enroll attacker-controlled machines against the victim's subscription.
Affected Products
- Canonical wsl-pro-service versions prior to 0.1.19ubuntu3
- Ubuntu Pro for WSL deployments running default WSL /proc mount options
- WSL instances where multiple local users or processes share the same distribution
Discovery Timeline
- 2026-09-29 - CVE-2026-102371 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-102371
Vulnerability Analysis
The wsl-pro-service runs as root inside each WSL instance and manages Ubuntu Pro enrollment. During attach, the service executes the pro client as a child process and passes the Ubuntu Pro token directly on the command line using pro attach <token>. On Linux, process command-line arguments are exposed through the /proc/<pid>/cmdline pseudo-file, which is world-readable under default mount options.
WSL does not mount /proc with hidepid=1 or hidepid=2, so any local process, regardless of user, can enumerate /proc and read the command line of the running attach process. During the brief window the pro attach process exists, the token is exposed in cleartext to every other process in the same WSL instance. This is a sensitive information exposure through process information channels.
Root Cause
The root cause is passing a secret credential as a command-line argument to a child process. Command-line arguments are not treated as sensitive by the kernel and are exposed via /proc/<pid>/cmdline. Combined with WSL's default /proc mount lacking hidepid protections, this design choice creates a reliable local disclosure path.
Attack Vector
Exploitation requires local access to the same WSL instance as the wsl-pro-service. An unprivileged attacker polls /proc/*/cmdline and filters for the pro attach process to capture the token. The attacker then uses the stolen token to enroll additional systems into the victim's Ubuntu Pro subscription, gaining unauthorized access to Pro-only packages, updates, and services.
# Patch metadata from upstream commit: pass token via ephemeral config file
# instead of the command line in System.ProAttach
+ go.yaml.in/yaml/v3 v3.0.5
Source: GitHub Commit by Canonical
The fix introduces YAML support so the token can be written to an ephemeral configuration file consumed by the pro client, removing the token from the process command line.
Detection Methods for CVE-2026-102371
Indicators of Compromise
- Unexpected processes reading /proc/<pid>/cmdline entries or scanning /proc for pro attach invocations.
- Ubuntu Pro subscription showing unfamiliar machines attached under the account.
- Presence of wsl-pro-service packages older than 0.1.19ubuntu3 on WSL instances.
Detection Strategies
- Audit process execution inside WSL instances for pro attach invocations that include a token argument.
- Monitor /proc access patterns using auditd rules on /proc/*/cmdline reads from non-root users.
- Track the Ubuntu Pro subscription portal for unexpected machine enrollments or token reuse events.
Monitoring Recommendations
- Ingest WSL auditd and shell history telemetry into a centralized data lake for correlation with Ubuntu Pro enrollment events.
- Alert on any local process opening /proc/<pid>/cmdline where the target pid corresponds to pro or wsl-pro-service.
- Review the installed wsl-pro-service version across managed WSL fleets as part of routine posture checks.
How to Mitigate CVE-2026-102371
Immediate Actions Required
- Upgrade wsl-pro-service to version 0.1.19ubuntu3 or later on all WSL instances.
- Rotate any Ubuntu Pro tokens that were used on affected systems and remove unfamiliar attached machines from the subscription.
- Restrict local user access to WSL instances that host wsl-pro-service.
Patch Information
Canonical fixed the issue by passing the Ubuntu Pro token through an ephemeral configuration file consumed by the pro client, rather than as a command-line argument. Details are available in the Ubuntu Security Advisory CVE-2026-102371, the GitHub Pull Request #1816, and the GitHub Commit by Canonical.
Workarounds
- Remount /proc inside affected WSL instances with hidepid=2 to prevent unprivileged users from reading other processes' command lines.
- Avoid attaching Ubuntu Pro on multi-user WSL instances until the patched wsl-pro-service is installed.
- Treat any Pro token used on an unpatched WSL instance as compromised and rotate it.
# Remount /proc with hidepid to block unprivileged access to other processes' cmdline
sudo mount -o remount,rw,hidepid=2 /proc
# Verify the installed wsl-pro-service version
dpkg -s wsl-pro-service | grep -i version
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

