CVE-2026-100395 LXC: lxc-copy host-context hostname update follows symlink
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
Description
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.
Upgrade path
8 packages: 1 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/lxc(Debian 12) | = 1:5.0.2-1; = 1:5.0.2-1+deb12u1; = 1:5.0.2-1+deb12u2; = 1:5.0.2-1+deb12u3 +24 more | No fix listed | No fix yet |
| debian/lxc(Debian 13) | = 1:6.0.4-4; = 1:6.0.4-4+deb13u1; = 1:6.0.4-4+deb13u2; = 1:6.0.4-4+deb13u3 +10 more | No fix listed | No fix yet |
| ubuntu/lxc(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/lxc(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/lxc(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/lxc(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/lxc(Debian 14) | < 1:7.0.0-3; = 1:6.0.4-4; = 1:6.0.5-1; = 1:6.0.5-2 +5 more | 1:7.0.0-3 | Fixed |
| lxc | = <= 7.0.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| lxc | = <= 7.0.0 | No fix listed |
| debian/lxc(Debian:12) | All versions | No fix listed |
| debian/lxc(Debian:14) | < 1:7.0.0-3 | 1:7.0.0-3 |
| debian/lxc(Debian:13) | All versions | No fix listed |
| debian/lxc(Debian:12) | = 1:5.0.2-1 | No fix listed |
| debian/lxc(Debian:12) | = 1:5.0.2-1+deb12u1 | No fix listed |
| debian/lxc(Debian:12) | = 1:5.0.2-1+deb12u2 | No fix listed |
| debian/lxc(Debian:12) | = 1:5.0.2-1+deb12u3 | No fix listed |
| debian/lxc(Debian:12) | = 1:5.0.2-1+deb12u4 | No fix listed |
| debian/lxc(Debian:12) | = 1:5.0.3-1 | No fix listed |
| debian/lxc(Debian:12) | = 1:5.0.3-2 | No fix listed |
| debian/lxc(Debian:12) | = 1:5.0.3-2.1 | No fix listed |
| debian/lxc(Debian:12) | = 1:5.0.3-2.1~exp1 | No fix listed |
| debian/lxc(Debian:12) | = 1:5.0.3-3 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.0a-1 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.1-1 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.2-1 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.3-1 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.3-2 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.4-1 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.4-2 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.4-3 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.4-4 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.5-1 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.5-2 | No fix listed |
Show 31 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/lxc(Debian:12) | = 1:6.0.6-1 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.6-2 | No fix listed |
| debian/lxc(Debian:12) | = 1:6.0.6-3 | No fix listed |
| debian/lxc(Debian:12) | = 1:7.0.0-1 | No fix listed |
| debian/lxc(Debian:12) | = 1:7.0.0-2 | No fix listed |
| debian/lxc(Debian:12) | = 1:7.0.0-3 | No fix listed |
| debian/lxc(Debian:13) | = 1:6.0.4-4 | No fix listed |
| debian/lxc(Debian:13) | = 1:6.0.4-4+deb13u1 | No fix listed |
| debian/lxc(Debian:13) | = 1:6.0.4-4+deb13u2 | No fix listed |
| debian/lxc(Debian:13) | = 1:6.0.4-4+deb13u3 | No fix listed |
| debian/lxc(Debian:13) | = 1:6.0.4-4+deb13u4 | No fix listed |
| debian/lxc(Debian:13) | = 1:6.0.5-1 | No fix listed |
| debian/lxc(Debian:13) | = 1:6.0.5-2 | No fix listed |
| debian/lxc(Debian:13) | = 1:6.0.6-1 | No fix listed |
| debian/lxc(Debian:13) | = 1:6.0.6-2 | No fix listed |
| debian/lxc(Debian:13) | = 1:6.0.6-3 | No fix listed |
| debian/lxc(Debian:13) | = 1:7.0.0-1 | No fix listed |
| debian/lxc(Debian:13) | = 1:7.0.0-2 | No fix listed |
| debian/lxc(Debian:13) | = 1:7.0.0-3 | No fix listed |
| debian/lxc(Debian:14) | = 1:6.0.4-4 | No fix listed |
| debian/lxc(Debian:14) | = 1:6.0.5-1 | No fix listed |
| debian/lxc(Debian:14) | = 1:6.0.5-2 | No fix listed |
| debian/lxc(Debian:14) | = 1:6.0.6-1 | No fix listed |
| debian/lxc(Debian:14) | = 1:6.0.6-2 | No fix listed |
| debian/lxc(Debian:14) | = 1:6.0.6-3 | No fix listed |
| debian/lxc(Debian:14) | = 1:7.0.0-1 | No fix listed |
| debian/lxc(Debian:14) | = 1:7.0.0-2 | No fix listed |
| ubuntu/lxc(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/lxc(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/lxc(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/lxc(Ubuntu:26.10) | All versions | No fix listed |
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
- Debian Security Tracker CVE-2026-100395 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2026-117808 third-party-advisory