CVE-2026-100395
LXC: 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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Active
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used 6.8
LXC: 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.
- Record
CVE-2026-100395- CVSS 4.0
- 6.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N - Weakness
- CWE-59, CWE-61
- Updated
- 2026-11-09
EUVDEUVD-2026-117808 6.8
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.
- Record
EUVD-2026-117808- CVSS 4.0
- 6.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N - Updated
- 2026-11-09
NVD 6.8
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.
- Record
CVE-2026-100395- CVSS 4.0
- 6.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Weakness
- CWE-59, CWE-61
- Updated
- 2026-11-09
OSV 6.8
LXC: 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.
- Record
CVE-2026-100395- CVSS 4.0
- 6.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N - Weakness
- CWE-59, CWE-61
- Updated
- 2026-11-07
OSVDEBIAN-CVE-2026-100395 6.8
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.
- Record
DEBIAN-CVE-2026-100395- CVSS 4.0
- 6.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Updated
- 2026-11-11
OSVUBUNTU-CVE-2026-100395 6.8
[lxc-copy host-context hostname update follows symlink]
- Record
UBUNTU-CVE-2026-100395- CVSS 4.0
- 6.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N - Updated
- 2026-11-07
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
lxcDebian:12 | All versions, plus listed versions 1:5.0.2-11:5.0.2-1+deb12u11:5.0.2-1+deb12u21:5.0.2-1+deb12u31:5.0.2-1+deb12u4 Show 22 moreShow less1:5.0.3-11:5.0.3-21:5.0.3-2.11:5.0.3-2.1~exp11:5.0.3-31:6.0.0a-11:6.0.1-11:6.0.2-11:6.0.3-11:6.0.3-21:6.0.4-11:6.0.4-21:6.0.4-31:6.0.4-41:6.0.5-11:6.0.5-21:6.0.6-11:6.0.6-21:6.0.6-31:7.0.0-11:7.0.0-21:7.0.0-3 | None known |
lxcDebian:13 | All versions, plus listed versions 1:6.0.4-41:6.0.4-4+deb13u11:6.0.4-4+deb13u21:6.0.4-4+deb13u31:6.0.4-4+deb13u4 Show 8 moreShow less1:6.0.5-11:6.0.5-21:6.0.6-11:6.0.6-21:6.0.6-31:7.0.0-11:7.0.0-21:7.0.0-3 | None known |
lxcDebian:14 | before 1:7.0.0-3, plus listed versions 1:6.0.4-41:6.0.5-11:6.0.5-21:6.0.6-11:6.0.6-21:6.0.6-31:7.0.0-11:7.0.0-2 | 1:7.0.0-3 |
lxcUbuntu:14.04:LTS | All versions, plus listed versions 1.0.0~alpha1-0ubuntu111.0.0~alpha2-0ubuntu11.0.0~alpha2-0ubuntu31.0.0~alpha2-0ubuntu41.0.0~alpha2-0ubuntu5 Show 45 moreShow less1.0.0~alpha2-0ubuntu61.0.0~alpha3-0ubuntu11.0.0~alpha3-0ubuntu21.0.0~alpha3-0ubuntu31.0.0~alpha3-0ubuntu41.0.0~alpha3-0ubuntu51.0.0~alpha3-0ubuntu61.0.0~alpha3-0ubuntu71.0.0~alpha3-0ubuntu81.0.0~beta1-0ubuntu11.0.0~beta1-0ubuntu21.0.0~beta1-0ubuntu31.0.0~beta2-0ubuntu11.0.0~beta2-0ubuntu21.0.0~beta3-0ubuntu11.0.0~beta4-0ubuntu11.0.0~beta4-0ubuntu21.0.0~rc1-0ubuntu21.0.0~rc3-0ubuntu11.0.0~rc4-0ubuntu11.0.0-0ubuntu11.0.0-0ubuntu21.0.0-0ubuntu31.0.0-0ubuntu41.0.1-0ubuntu11.0.2-0ubuntu11.0.2-0ubuntu21.0.3-0ubuntu11.0.3-0ubuntu21.0.3-0ubuntu31.0.4-0ubuntu0.11.0.5-0ubuntu0.11.0.6-0ubuntu0.11.0.7-0ubuntu0.11.0.7-0ubuntu0.21.0.7-0ubuntu0.51.0.7-0ubuntu0.61.0.7-0ubuntu0.71.0.7-0ubuntu0.91.0.7-0ubuntu0.101.0.8-0ubuntu0.31.0.8-0ubuntu0.41.0.9-0ubuntu21.0.9-0ubuntu31.0.10-0ubuntu1 | None known |
lxcUbuntu:Pro:16.04:LTS | All versions, plus listed versions 1.1.4-0ubuntu11.1.4-0ubuntu1.11.1.4-0ubuntu31.1.5-0ubuntu11.1.5-0ubuntu2 Show 35 moreShow less1.1.5-0ubuntu31.1.5-0ubuntu41.1.5-0ubuntu51.1.5-0ubuntu62.0.0~beta2-0ubuntu22.0.0~rc1-0ubuntu12.0.0~rc2-0ubuntu22.0.0~rc3-0ubuntu12.0.0~rc3-0ubuntu22.0.0~rc3-0ubuntu32.0.0~rc4-0ubuntu12.0.0~rc5-0ubuntu12.0.0~rc9-0ubuntu12.0.0~rc10-0ubuntu12.0.0~rc10-0ubuntu22.0.0~rc11-0ubuntu12.0.0~rc12-0ubuntu12.0.0~rc13-0ubuntu22.0.0~rc14-0ubuntu22.0.0~rc15-0ubuntu12.0.0-0ubuntu12.0.0-0ubuntu22.0.1-0ubuntu1~16.04.12.0.3-0ubuntu1~ubuntu16.04.12.0.4-0ubuntu1~ubuntu16.04.22.0.5-0ubuntu1~ubuntu16.04.12.0.5-0ubuntu1~ubuntu16.04.22.0.5-0ubuntu1~ubuntu16.04.32.0.6-0ubuntu1~ubuntu16.04.12.0.6-0ubuntu1~ubuntu16.04.22.0.7-0ubuntu1~16.04.12.0.7-0ubuntu1~16.04.22.0.8-0ubuntu1~16.04.22.0.11-0ubuntu1~16.04.32.0.11-0ubuntu1~16.04.3+esm1 | None known |
lxcUbuntu:Pro:18.04:LTS | All versions, plus listed versions 2.1.0-0ubuntu12.1.1-0ubuntu13.0.0~beta1-0ubuntu33.0.0~beta2-0ubuntu23.0.0~beta3-0ubuntu1 Show 9 moreShow less3.0.0~beta4-0ubuntu13.0.0-0ubuntu13.0.0-0ubuntu23.0.1-0ubuntu1~18.04.13.0.1-0ubuntu1~18.04.23.0.2-0ubuntu1~18.04.13.0.3-0ubuntu1~18.04.13.0.3-0ubuntu1~18.04.33.0.3-0ubuntu1~18.04.3+esm1 | None known |
lxcUbuntu:Pro:20.04:LTS | All versions, plus listed versions 3.0.4-0ubuntu13.0.4-0ubuntu21:4.0.0-0ubuntu21:4.0.1-0ubuntu11:4.0.1-0ubuntu2 Show 4 moreShow less1:4.0.2-0ubuntu11:4.0.6-0ubuntu1~20.04.11:4.0.12-0ubuntu1~20.04.11:4.0.12-0ubuntu1~20.04.1+esm1 | None known |
lxcUbuntu:Pro:22.04:LTS | All versions, plus listed versions 1:4.0.10-0ubuntu51:4.0.12-0ubuntu11:4.0.12-0ubuntu21:5.0.0~git2209-g5a7b9ce67-0ubuntu11:5.0.0~git2209-g5a7b9ce67-0ubuntu1.11:5.0.0~git2209-g5a7b9ce67-0ubuntu1.1+esm1 | None known |
lxcUbuntu:Pro:24.04:LTS | All versions, plus listed versions 1:5.0.1-0ubuntu71:5.0.1-0ubuntu81:5.0.3-2ubuntu51:5.0.3-2ubuntu71:5.0.3-2ubuntu7.11:5.0.3-2ubuntu7.21:5.0.3-2ubuntu7.31:5.0.3-2ubuntu7.3+esm1 | None known |
lxcUbuntu:26.10 | All versions, plus listed versions 1:6.0.6-11:7.0.0-2ubuntu11:7.0.0-2ubuntu2 | None known |
lxcUbuntu:Pro:26.04:LTS | All versions, plus listed versions 1:6.0.4-4ubuntu11:6.0.6-11:6.0.6-1ubuntu11:6.0.6-1ubuntu1+esm1 | None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| affected | CVE List, EUVD, NVD, OSV | |
| aliases, references | OSV | |
| published | NVD, OSV | |
| aliases | EUVD | |
| cwes, description, facts, products, references, severity, title | CVE List | |
| first indexed | OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-100395 is a medium vulnerability (CVSS 6.8) in Lxc, published September 29, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.15%, the 4th percentile. Fixed in lxc 1:7.0.0-3.
References
github.com/lxc/lxc/security/advisories/GHSA-r23j-58gg-pjjc
github.com/lxc/lxc/commit/6424a91a55efc54edc25ca46e9165bd9f35b50b7
github.com/lxc/lxc/commit/fa12709a79c2b63b3918297d7505108fcc840eb6
github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100395.json
nvd.nist.gov/vuln/detail/CVE-2026-100395
security-tracker.debian.org/tracker/CVE-2026-100395
ubuntu.com/security/CVE-2026-100395
cve.org/CVERecord?id=CVE-2026-100395
Left out here: 1 version. The JSON record has them.