wsl-pro-service: Ubuntu Pro token exposed via process command-line arguments
What fixes it
- 0.1.19ubuntu2Ubuntu Pro for WSLCVE List
- 0.1.18~24.04.3Ubuntu Pro for WSLCVE List
- 0.1.18~22.04.2Ubuntu Pro for WSLCVE List
- 0.1.18~20.04.2Ubuntu Pro for WSLCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
In wsl-pro-service before 0.1.19ubuntu3, the service component which runs as root inside each WSL instance attaches the instance to Ubuntu Pro by executing the pro client with the Ubuntu Pro token passed as a command-line argument (pro attach <token>). On systems where /proc is mounted without process-hiding mitigations (such as hidepid), which is the default in WSL, an unprivileged local user or process in the same WSL instance can read the token from /proc/<pid>/cmdline while the attach process is running. The leaked token could then be used to attach other machines to the victim's Ubuntu Pro subscription and gain unauthorized access to Ubuntu Pro services.
Text from CVE List
Affected versions 4
- Ubuntu Pro for WSLaffected: 0.1.1 before 0.1.19ubuntu2CVE List
- Ubuntu Pro for WSLaffected: 0.1.1 before 0.1.18~24.04.3CVE List
- Ubuntu Pro for WSLaffected: 0.1.1 before 0.1.18~22.04.2CVE List
- Ubuntu Pro for WSLaffected: 0.1.1 before 0.1.18~20.04.2CVE List