{"id":"CVE-2026-99844","aliases":["CVE-2026-99844"],"related":[],"kind":"vulnerability","state":"published","title":"mount: refuse setns() with a shared fs_struct again","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmount: refuse setns() with a shared fs_struct again\n\nmntns_install() refuses to switch the mount namespace of a task that\nshares its fs_struct, since root and cwd of the others would move to a\nnamespace they are not in.  It looks at nsset->fs for that.  If more\nthan the mount namespace is asked for, that is a private copy made by\nprepare_nsset(), which has one user by definition; commit_nsset() then\nwrites root and cwd of the copy to the fs_struct of the task.\n\nA thread of a process with two threads, pidfd of a task in another\nmount namespace:\n\n\tsetns(pidfd, CLONE_NEWNS)\t\t\t-EINVAL\n\tsetns(pidfd, CLONE_NEWNS | CLONE_NEWUTS)\t0\n\nand after the second call the other thread, still in the old mount\nnamespace, has lost its cwd (/tmp became /) and sees the mounts of the\nother namespace under /.\n\nLook at the fs_struct that is going to be changed.  The second call then\nfails with -EINVAL like the first one.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmount: refuse setns() with a shared fs_struct again\n\nmntns_install() refuses to switch the mount namespace of a task that\nshares its fs_struct, since root and cwd of the others would move to a\nnamespace they are not in.  It looks at nsset->fs for that.  If more\nthan the mount namespace is asked for, that is a private copy made by\nprepare_nsset(), which has one user by definition; commit_nsset() then\nwrites root and cwd of the copy to the fs_struct of the task.\n\nA thread of a process with two threads, pidfd of a task in another\nmount namespace:\n\n\tsetns(pidfd, CLONE_NEWNS)\t\t\t-EINVAL\n\tsetns(pidfd, CLONE_NEWNS | CLONE_NEWUTS)\t0\n\nand after the second call the other thread, still in the old mount\nnamespace, has lost its cwd (/tmp became /) and sees the mounts of the\nother namespace under /.\n\nLook at the fs_struct that is going to be changed.  The second call then\nfails with -EINVAL like the first one.","source":"cvelist"}],"published":"2026-11-30T13:17:35.010Z","modified":"2026-11-30T14:20:17.647Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"303cc571d107b3641d6487061b748e70ffe15ce4","fixed":"3e6b5d49e7dcd666b24ac69ebf2f7b259a80bbf5","status":"affected"},{"type":"git","introduced":"303cc571d107b3641d6487061b748e70ffe15ce4","fixed":"d2568eff8b4b743f4ba69517139874193fa67053","status":"affected"},{"type":"git","introduced":"303cc571d107b3641d6487061b748e70ffe15ce4","fixed":"431f2f11e6b0931808e3646554630075c7a32b83","status":"affected"},{"type":"git","introduced":"303cc571d107b3641d6487061b748e70ffe15ce4","fixed":"f49d140326bc3019eaabd10d17c6b90448c7eb88","status":"affected"},{"type":"git","introduced":"303cc571d107b3641d6487061b748e70ffe15ce4","fixed":"b41c74168f4b1ffe0823992e40caf69f8d68f16a","status":"affected"},{"type":"git","introduced":"303cc571d107b3641d6487061b748e70ffe15ce4","fixed":"0aba8e759cfcdc6242348dc82b97c96405f90762","status":"affected"},{"type":"git","introduced":"303cc571d107b3641d6487061b748e70ffe15ce4","fixed":"06ec699318fe3a1747bd49ccd8af577db2fd8419","status":"affected"},{"type":"git","introduced":"303cc571d107b3641d6487061b748e70ffe15ce4","fixed":"948e604aca8af30490accf7d46d44814ffa26f80","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3e6b5d49e7dcd666b24ac69ebf2f7b259a80bbf5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d2568eff8b4b743f4ba69517139874193fa67053","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/431f2f11e6b0931808e3646554630075c7a32b83","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f49d140326bc3019eaabd10d17c6b90448c7eb88","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b41c74168f4b1ffe0823992e40caf69f8d68f16a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0aba8e759cfcdc6242348dc82b97c96405f90762","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/06ec699318fe3a1747bd49ccd8af577db2fd8419","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/948e604aca8af30490accf7d46d44814ffa26f80","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99844","url":"https://www.cve.org/CVERecord?id=CVE-2026-99844","licence":"CVE Terms of Use","modified":"2026-11-30T13:17:35.010Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99844","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99844","licence":"Public domain","modified":"2026-11-30T14:20:17.647Z"}],"updatedAt":"2026-11-30T14:33:43.246Z","epss":{"score":0.00221,"percentile":0.13459,"date":"2026-12-01T12:00:22.000Z"}}