Technical impact
During the lxc-copy or liblxc clone operation, the daemon follows attacker‑controlled symbolic links while writing /etc/hostname into the copied container root filesystem. If root clones an untrusted container without setting the LXC_CLONE_KEEPNAME option, the symlink can resolve outside the destination rootfs. The privileged cloning process then truncates and overwrites an existing file on the host with the container’s name. Because the process runs as root, the attacker can modify any host file the symlink points to, leading to unintended data loss or privilege‑escalation‑like effects.
Affected Systems
The vulnerability affects LXC 7.0.0 and earlier, specifically the lxc-copy command and the public liblxc lxc_container::clone() API. It requires root privilege to perform the clone; unprivileged or managed cloning implementations are not affected.
Risk and Exploitability
The CVSS score of 6.8 indicates moderate severity, and the EPSS score is not available. The vulnerability is not listed in CISA KEV. The attack requires the ability to supply an untrusted root filesystem to the privileged lxc-copy process and to craft a symlink that points outside the destination. An attacker who can run lxc-copy as root—such as a user with root access or an automation process that clones containers—could exploit this by overwriting a chosen host file, potentially disrupting system operation or enabling further compromise.