Every CVESearch/Get API key

CVE-2026-100395

LXC: lxc-copy host-context hostname update follows symlink

6.8 MediumFix available

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

0.15%Unchanged since Nov 6, 2026
90%50%10%1%

What each source reports

CVE List Score used6.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 MediumCVSS: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-1178086.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 MediumCVSS: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
NVD6.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 MediumCVSS: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
OSV6.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 MediumCVSS: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-1003956.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 MediumCVSS: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-1003956.8

[lxc-copy host-context hostname update follows symlink]

Record
UBUNTU-CVE-2026-100395
CVSS 4.0
6.8 MediumCVSS: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

Affected packages
PackageAffectedFixed
lxc
Debian: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 less
1: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
lxc
Debian: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 less
1: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
lxc
Debian: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
lxc
Ubuntu: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 less
1.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
lxc
Ubuntu: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 less
1.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
lxc
Ubuntu: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 less
3.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
lxc
Ubuntu: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 less
1: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
lxc
Ubuntu: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
lxc
Ubuntu: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
lxc
Ubuntu:26.10
All versions, plus listed versions
1:6.0.6-11:7.0.0-2ubuntu11:7.0.0-2ubuntu2
None known
lxc
Ubuntu: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

History
RecordedChangedSources
affected, factsOSV
affectedCVE List, EUVD, NVD, OSV
aliases, referencesOSV
publishedNVD, OSV
aliasesEUVD
cwes, description, facts, products, references, severity, titleCVE List
first indexedOSV

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

This page doesn't list everything

Left out here: 1 version. The JSON record has them.

MoveEnter Open