Security mailing lists by PureSourceCode

CVE-2026-99844

not scored yet

mount: refuse setns() with a shared fs_struct again

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.

Published
30 Nov 2026
Last modified
30 Nov 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= 303cc571d107b3641d6487061b748e70ffe15ce4, < 3e6b5d49e7dcd666b24ac69ebf2f7b259a80bbf5; >= 303cc571d107b3641d6487061b748e70ffe15ce4, < d2568eff8b4b743f4ba69517139874193fa67053; >= 303cc571d107b3641d6487061b748e70ffe15ce4, < 431f2f11e6b0931808e3646554630075c7a32b83; >= 303cc571d107b3641d6487061b748e70ffe15ce4, < f49d140326bc3019eaabd10d17c6b90448c7eb88; >= 303cc571d107b3641d6487061b748e70ffe15ce4, < b41c74168f4b1ffe0823992e40caf69f8d68f16a; >= 303cc571d107b3641d6487061b748e70ffe15ce4, < 0aba8e759cfcdc6242348dc82b97c96405f90762; >= 303cc571d107b3641d6487061b748e70ffe15ce4, < 06ec699318fe3a1747bd49ccd8af577db2fd8419; >= 303cc571d107b3641d6487061b748e70ffe15ce4, < 948e604aca8af30490accf7d46d44814ffa26f80 3e6b5d49e7dcd666b24ac69ebf2f7b259a80bbf5, d2568eff8b4b743f4ba69517139874193fa67053, 431f2f11e6b0931808e3646554630075c7a32b83, f49d140326bc3019eaabd10d17c6b90448c7eb88, b41c74168f4b1ffe0823992e40caf69f8d68f16a, 0aba8e759cfcdc6242348dc82b97c96405f90762, 06ec699318fe3a1747bd49ccd8af577db2fd8419, 948e604aca8af30490accf7d46d44814ffa26f80
CVE List Linux Linux = 5.8

References

History

  • 30 Nov 2026 14:45 UTC · NVD: first stored (published 30 Nov 2026)
  • 30 Nov 2026 13:31 UTC · CVE List: first stored (published 30 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.