CVE-2026-99844

Source
https://cve.org/CVERecord?id=CVE-2026-99844
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99844.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99844
Downstream
Published
2026-11-30T13:17:35Z
Modified
2026-11-30T15:02:31Z
Summary
mount: refuse setns() with a shared fs_struct again
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99844.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
303cc571d107b3641d6487061b748e70ffe15ce4
Fixed
3e6b5d49e7dcd666b24ac69ebf2f7b259a80bbf5
Fixed
d2568eff8b4b743f4ba69517139874193fa67053
Fixed
431f2f11e6b0931808e3646554630075c7a32b83
Fixed
f49d140326bc3019eaabd10d17c6b90448c7eb88
Fixed
b41c74168f4b1ffe0823992e40caf69f8d68f16a
Fixed
0aba8e759cfcdc6242348dc82b97c96405f90762
Fixed
06ec699318fe3a1747bd49ccd8af577db2fd8419
Fixed
948e604aca8af30490accf7d46d44814ffa26f80

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99844.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.8.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99844.json"