CVE-2026-100395

Source
https://cve.org/CVERecord?id=CVE-2026-100395
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100395.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-100395
Aliases
  • GHSA-r23j-58gg-pjjc
Downstream
Published
2026-11-05T21:45:58Z
Modified
2026-11-14T07:06:35Z
Severity
  • 6.8 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
LXC: lxc-copy host-context hostname update follows symlink
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-59",
        "CWE-61"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100395.json"
}
References

Affected packages

Git / github.com/lxc/lxc

Affected ranges

Type
GIT
Repo
https://github.com/lxc/lxc
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "last_affected":  "7.0.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "6424a91a55efc54edc25ca46e9165bd9f35b50b7"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "fa12709a79c2b63b3918297d7505108fcc840eb6"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

lxc-0.*
lxc-0.6.5
lxc-0.7.0
lxc-0.7.1
lxc-0.7.2
lxc-0.7.3
lxc-0.7.4
lxc-0.7.4-rc1
lxc-0.7.5
lxc-0.8.0
lxc-0.8.0-rc2
lxc-0.9.0
lxc-0.9.0.alpha1
lxc-0.9.0.alpha2
lxc-0.9.0.alpha3
lxc-0.9.0.rc1
lxc-1.*
lxc-1.0.0
lxc-1.0.0.alpha1
lxc-1.0.0.alpha2
lxc-1.0.0.alpha3
lxc-1.0.0.beta1
lxc-1.0.0.beta2
lxc-1.0.0.beta3
lxc-1.0.0.beta4
lxc-1.0.0.rc1
lxc-1.0.0.rc2
lxc-1.0.0.rc3
lxc-1.0.0.rc4
lxc-1.1.0
lxc-1.1.0.alpha1
lxc-1.1.0.alpha2
lxc-1.1.0.alpha3
lxc-1.1.0.rc1
lxc-1.1.0.rc2
lxc-1.1.0.rc3
lxc-1.1.0.rc4
lxc-2.*
lxc-2.0.0
lxc-2.0.0.beta1
lxc-2.0.0.beta2
lxc-2.0.0.rc1
lxc-2.0.0.rc10
lxc-2.0.0.rc11
lxc-2.0.0.rc12
lxc-2.0.0.rc13
lxc-2.0.0.rc14
lxc-2.0.0.rc15
lxc-2.0.0.rc2
lxc-2.0.0.rc3
lxc-2.0.0.rc4
lxc-2.0.0.rc5
lxc-2.0.0.rc6
lxc-2.0.0.rc7
lxc-2.0.0.rc8
lxc-2.0.0.rc9
lxc-2.1.0
lxc-3.*
lxc-3.0.0
lxc-3.0.0.beta1
lxc-3.0.0.beta2
lxc-3.0.0.beta3
lxc-3.0.0.beta4
lxc-3.1.0
lxc-3.2.0
lxc-3.2.1
lxc-4.*
lxc-4.0.0
lxc-5.*
lxc-5.0.0
Other
lxc_0_1_0
lxc_0_2_0
lxc_0_2_1
lxc_0_4_0
lxc_0_5_0
lxc_0_5_1
lxc_0_5_2
lxc_0_6_0
lxc_0_6_1
lxc_0_6_2
lxc_0_6_3
lxc_0_6_4
v6.*
v6.0.0
v7.*
v7.0.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100395.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "88412030735554262521829111661424097174",
            "length":  2492
        },
        "id":  "CVE-2026-100395-34d87662",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/lxc/lxc/commit/6424a91a55efc54edc25ca46e9165bd9f35b50b7",
        "target":  {
            "file":  "src/lxc/lxccontainer.c",
            "function":  "clone_update_rootfs"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "175916056678180868995682780466279455087",
            "length":  629
        },
        "id":  "CVE-2026-100395-38cdc7e5",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/lxc/lxc/commit/fa12709a79c2b63b3918297d7505108fcc840eb6",
        "target":  {
            "file":  "src/lxc/lxccontainer.c",
            "function":  "do_update_hostname"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "63291183834891342891762685433877642862",
                "207414347049722563638143048766026657550",
                "299046170435273350619226798673087874969",
                "251109702507753128100814403158024002597",
                "281907496250524013958294743908171619459",
                "218137696710984383619658779725436565543",
                "218403016406623799630831946845086140293",
                "87992388328944375944771271980410336670",
                "315690122982654972463567768505208584305",
                "96229847385204072442747857388522206644",
                "194262114488386553200442351492625536511",
                "262178119161396867832024544486249503191",
                "55895079935088423278788941773669183097",
                "141753335387617532939972739583589115405",
                "170065006978286816560200472496853669490",
                "270001581583162815270008993621877548883",
                "222249225415599187809849449358099796859",
                "105163190025037322520376170241784620793",
                "96446337181387266007114481469219829215",
                "42540981699040809425640248810348153257",
                "197400735626038422668780176758537626001",
                "95753842362759612877821345664421413327",
                "331090501715165200610581722077398312732",
                "240785734014319865344412315567854346728",
                "22845727153843190388753738510364249241",
                "326798744531843556599510462561762908303",
                "176026855751819189644431954715915510879",
                "26595204521002433453053771699763081683",
                "332172828661363664609145690452911172427",
                "322343322105992592465674193936146119898",
                "22146390396548476586532036847043696345",
                "144419433846615133357734020560536945245",
                "109358499897595653742809882269249161528"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-100395-c4617e02",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/lxc/lxc/commit/6424a91a55efc54edc25ca46e9165bd9f35b50b7",
        "target":  {
            "file":  "src/lxc/lxccontainer.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "70586111245230897456194213873822971959",
                "113136196011945462479933868854126848477",
                "87683155833729317707544478294037627330",
                "173506928059423075255367645617818462892"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-100395-d6569a45",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/lxc/lxc/commit/fa12709a79c2b63b3918297d7505108fcc840eb6",
        "target":  {
            "file":  "src/lxc/lxccontainer.c"
        }
    }
]
vanir_signatures_modified
"2026-11-14T07:06:35Z"