LXD project isolation bypass allows host root code execution
CVE-2026-140086 and 5 more
Users of the LXD container tool can take over the whole server.
- CVE
- CVE-2026-140086 and 5 more
- Score
- CVSS 7.5 · CVE-2026-140086
- First seen
Mitigation
Update to the fixed version for your line. Find your product's fixed version in the list below. Until then, for CVE-2026-140084 turn on features.networks=true and features.profiles=true, or do not grant can_create_* entitlements on projects with disabled features; for CVE-2026-140085 set PYTHONNOUSERSITE=1 in run-host. For the other CVEs, the update is the only fix.
Fixed version by product
- LXD 4.0
- 4.0.16 or later
- LXD 5.0
- 5.0.12 or later
- LXD 5.21
- 5.21.10 or later
- LXD 6.10
- 6.10.2 or later
Can't update yet?
Add this line to the config file:
features.networks=true
A wrong setting can stop the service or lock you out. Check the source links below first.
Summary
A flaw in LXD's resource-creation authorization lets an authenticated fine-grained (OpenFGA) user create resources in the default project and run code as host root. The same release also fixes flaws that overwrite files via lxc image export, expose host block devices through image unpacking, escalate privileges via run-host, and cause denial of service through large requests.
Exploit code is public
Affected when
- CVE-2026-140084 fine-grained authorization (OpenFGA) in use, project feature flags disabled
- CVE-2026-140086 lxc image export run from an attacker-supplied directory
- CVE-2026-140085 LXD snap 6.10 series with the pro client installed
- CVE-2026-127159 authenticated user with migration permissions
- CVE-2026-127155 authenticated user with instance creation or file upload permissions
- CVE-2026-127156 project-scoped tenant with image and instance permissions
3 other Incidents of this product in the last 30 days
Incidents by product: Canonical LXD
Other recent Incidents of Canonical LXD
Distribution packages (2) (every link below opens in a new tab)
- Debian 13 (trixie)lxd · not fixed yet CVE-2026-140086, CVE-2026-140085, CVE-2026-140084
- Debian 12 (bookworm)lxd · not fixed yet CVE-2026-140086, CVE-2026-140085, CVE-2026-140084
Sources: Debian Security Tracker
6 CVEs (every link below opens in a new tab)
Read the advisory · github.com (opens in a new tab)
Each of the 6 CVEs (every link below opens in a new tab)
- CVE-2026-140086Overwrites files of the lxc user so that commands run with that user's rights. CVSS 7.5 CVE-2026-140086 advisory
- CVE-2026-140085Lets root-run tasks load files from /tmp, so a local user gains root rights. CVSS 7.3 CVE-2026-140085 advisory
- CVE-2026-127159Exhausts memory with oversized migration messages, crashing the daemon. CVSS 7.1 CVE-2026-127159 advisory
Show 3 more
- CVE-2026-127155Exhausts memory with oversized upload requests, stopping the service. CVSS 7.1 CVE-2026-127155 advisory
- CVE-2026-140084Lets a network created in the default project run code as host root. CVSS 6.5 CVE-2026-140084 advisory
- CVE-2026-127156A crafted container image can read and write the host's block devices. CVSS 6.5 CVE-2026-127156 advisory