Vulnerability record
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…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources