CVE-2026-100395LXC: lxc-copy host-context hostname update follows symlink
LXC is a userspace interface for the Linux kernel containment features used to create and manage system containers. In LXC 7.0.0 and earlier, lxc-copy and the public liblxc clone() API can follow attacker-controlled symbolic links while updating /etc/hostname in a copied container root filesystem. The affected surfaces are lxc-copy and liblxc's public lxc_container::clone() API. The privileged cloning process must run as root. The source rootfs must be attacker-controlled or less trusted. A symlink can be placed at etc/hostname or in an intermediate component. The clone operation preserves the symlink before updating the hostname. The vulnerable write truncates and overwrites an existing file outside the destination rootfs. When root clones an untrusted container without LXC_CLONE_KEEPNAME, the copied symlink can resolve outside the destination rootfs and cause the privileged process to overwrite an existing host file with the destination container name. Unprivileged use and managers with independent cloning implementations are not affected. LXC_CLONE_KEEPNAME avoids the hostname update and therefore the affected write.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | lxc | Fix pending | UBUNTU-CVE-2026-100395 | |
| Ubuntu 26.04 | lxc | Fix pending | UBUNTU-CVE-2026-100395 | |
| Ubuntu 24.04 | lxc | Fix pending | UBUNTU-CVE-2026-100395 | |
| Ubuntu 22.04 | lxc | Fix pending | UBUNTU-CVE-2026-100395 | |
| Ubuntu 20.04 | lxc | Fix pending | UBUNTU-CVE-2026-100395 | |
| Ubuntu 18.04 | lxc | Fix pending | UBUNTU-CVE-2026-100395 | |
| Ubuntu 16.04 | lxc | Fix pending | UBUNTU-CVE-2026-100395 | |
| Ubuntu 14.04 | lxc | Fix pending | UBUNTU-CVE-2026-100395 | |
| Debian 14 | lxc | Fixed | 1:7.0.0-3 | DEBIAN-CVE-2026-100395 |
| Debian 13 | lxc | Fix pending | DEBIAN-CVE-2026-100395 | |
| Debian 12 | lxc | Fix pending | DEBIAN-CVE-2026-100395 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- lxc: affected: <= 7.0.0
References
- https://github.com/lxc/lxc/security/advisories/GHSA-r23j-58gg-pjjc
- https://github.com/lxc/lxc/commit/6424a91a55efc54edc25ca46e9165bd9f35b50b7
- https://github.com/lxc/lxc/commit/fa12709a79c2b63b3918297d7505108fcc840eb6
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.