# CVE-2026-99844: mount: refuse setns() with a shared fs_struct again

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-11-30T13:17:35.010Z
- Modified: 2026-11-30T14:20:17.647Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mount: refuse setns() with a shared fs_struct again

mntns_install() refuses to switch the mount namespace of a task that
shares its fs_struct, since root and cwd of the others would move to a
namespace they are not in.  It looks at nsset->fs for that.  If more
than the mount namespace is asked for, that is a private copy made by
prepare_nsset(), which has one user by definition; commit_nsset() then
writes root and cwd of the copy to the fs_struct of the task.

A thread of a process with two threads, pidfd of a task in another
mount namespace:

	setns(pidfd, CLONE_NEWNS)			-EINVAL
	setns(pidfd, CLONE_NEWNS | CLONE_NEWUTS)	0

and after the second call the other thread, still in the old mount
namespace, has lost its cwd (/tmp became /) and sees the mounts of the
other namespace under /.

Look at the fs_struct that is going to be changed.  The second call then
fails with -EINVAL like the first one.

(As written by CVE List.)

## Affected

- Linux Linux: from 303cc571d107b3641d6487061b748e70ffe15ce4 before 3e6b5d49e7dcd666b24ac69ebf2f7b259a80bbf5; from 303cc571d107b3641d6487061b748e70ffe15ce4 before d2568eff8b4b743f4ba69517139874193fa67053; from 303cc571d107b3641d6487061b748e70ffe15ce4 before 431f2f11e6b0931808e3646554630075c7a32b83; from 303cc571d107b3641d6487061b748e70ffe15ce4 before f49d140326bc3019eaabd10d17c6b90448c7eb88; from 303cc571d107b3641d6487061b748e70ffe15ce4 before b41c74168f4b1ffe0823992e40caf69f8d68f16a; from 303cc571d107b3641d6487061b748e70ffe15ce4 before 0aba8e759cfcdc6242348dc82b97c96405f90762; from 303cc571d107b3641d6487061b748e70ffe15ce4 before 06ec699318fe3a1747bd49ccd8af577db2fd8419; from 303cc571d107b3641d6487061b748e70ffe15ce4 before 948e604aca8af30490accf7d46d44814ffa26f80; 5.8 (not affected: before 5.8; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/3e6b5d49e7dcd666b24ac69ebf2f7b259a80bbf5>
- <https://git.kernel.org/stable/c/d2568eff8b4b743f4ba69517139874193fa67053>
- <https://git.kernel.org/stable/c/431f2f11e6b0931808e3646554630075c7a32b83>
- <https://git.kernel.org/stable/c/f49d140326bc3019eaabd10d17c6b90448c7eb88>
- <https://git.kernel.org/stable/c/b41c74168f4b1ffe0823992e40caf69f8d68f16a>
- <https://git.kernel.org/stable/c/0aba8e759cfcdc6242348dc82b97c96405f90762>
- <https://git.kernel.org/stable/c/06ec699318fe3a1747bd49ccd8af577db2fd8419>
- <https://git.kernel.org/stable/c/948e604aca8af30490accf7d46d44814ffa26f80>

## Sources

- CVE List: [CVE-2026-99844](https://www.cve.org/CVERecord?id=CVE-2026-99844), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-99844](https://nvd.nist.gov/vuln/detail/CVE-2026-99844), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-99844 · Whole record: https://cve.day/CVE-2026-99844.json · Rebuilt by cve.day 2026-11-30T14:33:43.246Z
