All vulnerabilities

Servers and applications

CVE-2026-127156

Archive-supplied device node gives an unprivileged container raw access to host block devices

Severity
Medium 6.5
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
4.0.16, 5.0.12, 5.21.10, 6.10.2
Weakness
Improper access control (CWE-284)Improper input validation (CWE-20)
Attack
Over the network · Needs a user account · No user action needed
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
Also known as
GHSA-f886-r3x9-fp2r
Sources
CVE Program, Project advisories (GitHub)

Description

A tenant allowed to create images and instances in a single restricted project uploads a container image whose rootfs tarball carries a block-device special file. On launch the root daemon writes that node into the container's rootfs unchanged, and because LXD installs its devices-cgroup deny policy only for privileged containers, the root user of an ordinary unprivileged container can open the host's block devices through it. Pointed at the host's root partition the tenant reads any file on the host, and can write the raw device. Demonstrated reads, byte-for-byte: /etc/shadow, the LXD daemon private key server.key, and the LXD trust database local.db. Reading server.key plus local.db is equivalent to taking over the LXD daemon. No host account and no privileged container are required; the tenant acts only over the HTTPS API.

Line references are to the lxd_5.21.8 source tree (LXD 5.21.8 LTS), the release this advisory targets.

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

Affected software

SoftwareAffected versions
LXDServers and applications · cna:canonical|lxd
  • From 4.0 before 4.0.16
  • From 4.0 before 5.0.12
  • From 4.0 before 5.21.10
  • From 4.0 before 6.10.2
LXDServers and applications · github:canonical/lxd
  • From 4.0 before 4.0.16

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