Vulnerability · Published Nov 5, 2026 · Assigned by GitHub_M

CVE-2026-100395LXC: lxc-copy host-context hostname update follows symlink

Medium 6.8

In plain English

A medium-severity security flaw in lxc from lxc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 4% of all known vulnerabilities).

Severity (CVSS 4.0)6.8Medium
Exploit odds (30 days)0.2%top 95.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12lxcno fix listedDEBIAN-CVE-2026-100395
Debian:13lxcno fix listedDEBIAN-CVE-2026-100395
Debian:14lxcno fix listedDEBIAN-CVE-2026-100395
Ubuntu:26.10lxcno fix listedUBUNTU-CVE-2026-100395

Affected products (as reported)

VendorProductVersions
lxc lxc <= 7.0.0

Weakness: CWE-59, CWE-61 · Vector: 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

References