All vulnerabilities

Servers and applications

GHSA-4375-qwr5-8vjj

Restricted projects can reach host files and host root through disk devices and virtual machine disks

Severity
Critical 9.9
Published
27 Nov 2026
Last changed
27 Nov 2026
Added to UpHeron
27 Nov 2026
Fixed in
7.7.0
Weakness
Path traversal (CWE-22)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Sources
Project advisories (GitHub)

Description

Disk devices and virtual machine disks offered several ways for a user confined to a project to get at the host.

The path of a disk, unix or TPM device inside a container was accepted with .. components. That path is resolved against the host before the container's root filesystem is entered, so the device ended up mounted outside of the container.

For virtual machines, the format of a disk was guessed from the content of the disk when publishing an instance or exposing it over NBD, and a QCOW2 root disk in an image could refer to a backing file or an external data file. In both cases the QEMU tools, running as root, opened a host path named by the disk content. A directory shared with a virtual machine from a restricted source path was only protected from the guest's root user while raw.idmap was set, which the user can unset.

From lxc/incus's security advisory. Shortened; the full text is there.

Workarounds

Setting restricted.devices.disk=block, restricted.devices.unix-char=block, restricted.devices.unix-block=block and restricted.virtual-machines.lowlevel=block (the default), together with restricted.devices.disk.paths left empty and no restricted.idmap.* ranges, removes most of the device related vectors. TPM devices can't be blocked by a project restriction, and virtual machine images supplied by the user remain a vector unless virtual machines are denied with limits.virtual-machines=0.

Workarounds as given by lxc/incus's security advisory.

Affected software

SoftwareAffected versions
IncusServers and applications · github:lxc/incus
  • Every version before 7.7.0

About Incus

container manager for system containers

From Wikidata, CC0 1.0.
GitHub stars
6,771GitHub, 29 Nov 2026
Forks
535GitHub, 29 Nov 2026
Latest release
v7.7.0GitHub, 29 Nov 2026
Released
27 Nov 2026GitHub
Developer
Linux ContainersWikidata
License
Apache License 2.0Wikidata
Written in
GoWikidata
First released
7 Aug 2023Wikidata
First published on GitHub
22 Jul 2023GitHub

References