Servers and applications
CVE-2026-140085
snap: HOME=/tmp/ is inherited by host commands run via run-host; root `pro` (Python) uses a per-user site directory under world-writable /tmp
- Severity
- High 7.3
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 6.10.2
- Weakness
- CWE-427
- Attack
- Needs local access · Only under certain conditions · Needs a user account · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N- Also known as
- GHSA-mm7v-2mcg-5fjg
- Sources
- CVE Program, Project advisories (GitHub)
Description
The snap launcher sets HOME to /tmp/ for the LXD daemon. Inside the snap that is a private directory. The run-host wrapper runs selected commands in the host's mount namespace with nsenter and does not reset HOME, so those commands see HOME=/tmp/ where /tmp is the host's world-writable directory. One of them, pro, is a Python program that LXD runs as root at every daemon start on Ubuntu hosts. Python derives its per-user site directory from HOME and processes it at start-up, so a root process consults a directory that any local user can create.
If the chain holds end to end, this is local privilege escalation to root for any local user on an Ubuntu host running the LXD snap, at the next daemon start. My severity estimate is High (7.0).
I confirmed each link separately: the LXD side from source, and the host side with read-only checks on Ubuntu 24.04.4 with the LXD snap 6.10.1 (revision 41228, 6/stable). I did not execute the escalation itself.
Affected software
| Software | Affected versions |
|---|---|
LXDServers and applications · cna:canonical|lxd |
|
LXDServers and applications · github:canonical/lxd |
|
About LXD
container manager for system containers
- GitHub stars
- 4,861GitHub, 29 Nov 2026
- Forks
- 1,080GitHub, 29 Nov 2026
- Latest release
- lxd-6.10.2GitHub, 29 Nov 2026
- Released
- 26 Nov 2026GitHub
- Developer
- Stéphane GraberWikidata
- License
- AGPL-3.0GitHub
- Written in
- GoWikidata
- First released
- 4 Nov 2014Wikidata
- First published on GitHub
- 4 Nov 2014GitHub
Vulnerabilities in LXD
- In our list
- 93
- Published in the last 12 months
- 77
- Critical, last 12 months
- 26
- High, last 12 months
- 13
- Known exploited
- 0
- CVE-2026-127156Archive-supplied device node gives an unprivileged container raw access to host block devicesMedium 6.5 1 Dec 2026
- CVE-2026-127155Restricted clients can exhaust LXD memory through unbounded request bodies on upload endpointsHigh 7.1 1 Dec 2026
- CVE-2026-127159Migration peers can force unbounded memory allocation on the receiving daemonHigh 7.1 1 Dec 2026
- CVE-2026-140086lxc image export short-fingerprint symlink traversalHigh 7.5 1 Dec 2026
- CVE-2026-140084Fine-grained project users on LXD 5.21 can create resources in the default project, bypassing project isolation (host root via `raw.dnsmasq`)Medium 6.5 1 Dec 2026
- CVE-2026-122225VM backup config symlink makes the root daemon bind-mount host directories into the guestMedium 6.4 26 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-140085
- GitHub Advisory Database https://github.com/advisories/GHSA-mm7v-2mcg-5fjg
- github.com https://github.com/canonical/lxd/security/advisories/GHSA-mm7v-2mcg-5fjg