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

- Severity: Medium 6.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-11-05T21:45:58.175Z
- Modified: 2026-11-12T22:18:35.610Z
- Weaknesses: CWE-59, CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- lxc lxc: <= 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>

## Sources

- CVE List: [CVE-2026-100395](https://www.cve.org/CVERecord?id=CVE-2026-100395), CVE Terms of Use, modified 2026-11-09
- NVD: [CVE-2026-100395](https://nvd.nist.gov/vuln/detail/CVE-2026-100395), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-100395 · Whole record: https://cve.day/CVE-2026-100395.json · Rebuilt by cve.day 2026-11-25T22:59:49.191Z
