{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99844","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.437Z","datePublished":"2026-11-30T13:17:35.010Z","dateUpdated":"2026-11-30T13:17:35.010Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:17:35.010Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/namespace.c"],"versions":[{"version":"303cc571d107b3641d6487061b748e70ffe15ce4","lessThan":"3e6b5d49e7dcd666b24ac69ebf2f7b259a80bbf5","status":"affected","versionType":"git"},{"version":"303cc571d107b3641d6487061b748e70ffe15ce4","lessThan":"d2568eff8b4b743f4ba69517139874193fa67053","status":"affected","versionType":"git"},{"version":"303cc571d107b3641d6487061b748e70ffe15ce4","lessThan":"431f2f11e6b0931808e3646554630075c7a32b83","status":"affected","versionType":"git"},{"version":"303cc571d107b3641d6487061b748e70ffe15ce4","lessThan":"f49d140326bc3019eaabd10d17c6b90448c7eb88","status":"affected","versionType":"git"},{"version":"303cc571d107b3641d6487061b748e70ffe15ce4","lessThan":"b41c74168f4b1ffe0823992e40caf69f8d68f16a","status":"affected","versionType":"git"},{"version":"303cc571d107b3641d6487061b748e70ffe15ce4","lessThan":"0aba8e759cfcdc6242348dc82b97c96405f90762","status":"affected","versionType":"git"},{"version":"303cc571d107b3641d6487061b748e70ffe15ce4","lessThan":"06ec699318fe3a1747bd49ccd8af577db2fd8419","status":"affected","versionType":"git"},{"version":"303cc571d107b3641d6487061b748e70ffe15ce4","lessThan":"948e604aca8af30490accf7d46d44814ffa26f80","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/namespace.c"],"versions":[{"version":"5.8","status":"affected"},{"version":"0","lessThan":"5.8","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/3e6b5d49e7dcd666b24ac69ebf2f7b259a80bbf5"},{"url":"https://git.kernel.org/stable/c/d2568eff8b4b743f4ba69517139874193fa67053"},{"url":"https://git.kernel.org/stable/c/431f2f11e6b0931808e3646554630075c7a32b83"},{"url":"https://git.kernel.org/stable/c/f49d140326bc3019eaabd10d17c6b90448c7eb88"},{"url":"https://git.kernel.org/stable/c/b41c74168f4b1ffe0823992e40caf69f8d68f16a"},{"url":"https://git.kernel.org/stable/c/0aba8e759cfcdc6242348dc82b97c96405f90762"},{"url":"https://git.kernel.org/stable/c/06ec699318fe3a1747bd49ccd8af577db2fd8419"},{"url":"https://git.kernel.org/stable/c/948e604aca8af30490accf7d46d44814ffa26f80"}],"title":"mount: refuse setns() with a shared fs_struct again","x_generator":{"engine":"bippy-1.2.0"}}}}