All vulnerabilities

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.

From canonical/lxd's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
LXDServers and applications · cna:canonical|lxd
  • From 6.10 before 6.10.2
LXDServers and applications · github:canonical/lxd
  • From 6.10 before 6.10.2

About LXD

container manager for system containers

From Wikidata, CC0 1.0.
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

References