LXCのlxc-copyでシンボリックリンクを経由し、ホスト上のファイルを上書きされる脆弱性
概要
LXC 7.0.0以前のlxc-copyとliblxcのclone() APIでは、コピー元のルートファイルシステムに仕込まれたシンボリックリンクをたどり、コピー先の外にあるホストのファイルを上書きされるおそれがあります。rootで信頼できない コンテナを複製し、LXC_CLONE_KEEPNAMEを指定していない場合が対象です。修正版の情報は確認できていないため、最新の情報を確認してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
LXC 7.0.0以前のlxc-copyとliblxcのclone() APIでは、コピー元のルートファイルシステムに仕込まれたシンボリックリンクをたどり、コピー先の外にあるホストのファイルを上書きされるおそれがあります。rootで信頼できない コンテナを複製し、LXC_CLONE_KEEPNAMEを指定していない場合が対象です。修正版の情報は確認できていないため、最新の情報を確認してください。
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- Debian DEBIAN-CVE-2026-100395 lxc 修正版あり
- Ubuntu UBUNTU-CVE-2026-100395 lxc この記録に修正版の記載なし
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
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.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- REDHAT Red Hat