CVE-2026-99844
publishedmount: refuse setns() with a shared fs_struct again
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux303cc571d107b3641d6487061b748e70ffe15ce4 to < 3e6b5d49e7dcd666b24ac69ebf2f7b259a80bbf5 · 303cc571d107b3641d6487061b748e70ffe15ce4 to < d2568eff8b4b743f4ba69517139874193fa67053 · 303cc571d107b3641d6487061b748e70ffe15ce4 to < 431f2f11e6b0931808e3646554630075c7a32b83 · 303cc571d107b3641d6487061b748e70ffe15ce4 to < f49d140326bc3019eaabd10d17c6b90448c7eb88 · 303cc571d107b3641d6487061b748e70ffe15ce4 to < b41c74168f4b1ffe0823992e40caf69f8d68f16a · 303cc571d107b3641d6487061b748e70ffe15ce4 to < 0aba8e759cfcdc6242348dc82b97c96405f90762 · 303cc571d107b3641d6487061b748e70ffe15ce4 to < 06ec699318fe3a1747bd49ccd8af577db2fd8419 · 303cc571d107b3641d6487061b748e70ffe15ce4 to < 948e604aca8af30490accf7d46d44814ffa26f80 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 303cc571d107b3641d6487061b748e70ffe15ce4 to < 3e6b5d49e7dcd666b24ac69ebf2f7b259a80bbf5 (affected · git)303cc571d107b3641d6487061b748e70ffe15ce4 to < d2568eff8b4b743f4ba69517139874193fa67053 (affected · git)303cc571d107b3641d6487061b748e70ffe15ce4 to < 431f2f11e6b0931808e3646554630075c7a32b83 (affected · git)303cc571d107b3641d6487061b748e70ffe15ce4 to < f49d140326bc3019eaabd10d17c6b90448c7eb88 (affected · git)303cc571d107b3641d6487061b748e70ffe15ce4 to < b41c74168f4b1ffe0823992e40caf69f8d68f16a (affected · git)303cc571d107b3641d6487061b748e70ffe15ce4 to < 0aba8e759cfcdc6242348dc82b97c96405f90762 (affected · git)303cc571d107b3641d6487061b748e70ffe15ce4 to < 06ec699318fe3a1747bd49ccd8af577db2fd8419 (affected · git)303cc571d107b3641d6487061b748e70ffe15ce4 to < 948e604aca8af30490accf7d46d44814ffa26f80 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.8 (affected)0 to < 5.8 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/06ec699318fe3a1747bd49ccd8af577db2fd8419
- https://git.kernel.org/stable/c/0aba8e759cfcdc6242348dc82b97c96405f90762
- https://git.kernel.org/stable/c/3e6b5d49e7dcd666b24ac69ebf2f7b259a80bbf5
- https://git.kernel.org/stable/c/431f2f11e6b0931808e3646554630075c7a32b83
- https://git.kernel.org/stable/c/948e604aca8af30490accf7d46d44814ffa26f80
- https://git.kernel.org/stable/c/b41c74168f4b1ffe0823992e40caf69f8d68f16a
- https://git.kernel.org/stable/c/d2568eff8b4b743f4ba69517139874193fa67053
- https://git.kernel.org/stable/c/f49d140326bc3019eaabd10d17c6b90448c7eb88
Provider assertions
1Linux · cna
mount: refuse setns() with a shared fs_struct again
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5b78a6c4359e6bfda5f3d2b8b14daf220948f6eaf5da21be9bf8b8b7804c7e97
- Ingested
- 30 Nov 2026, 13:30:07 UTC
- Source record
- Official CVE record