Description
In the Linux kernel, the following vulnerability has been resolved: pidfd: restrict task access ioctls to the caller's pid namespace pidfds can cross pid namespace boundaries: a task may obtain one for a process outside of its own pid namespace hierarchy through SO_PASSPIDFD or SO_PEERPIDFD, via SCM_RIGHTS, or through file descriptor inheritance. The namespace ioctls gate access with a ptrace check against the target's credentials only. That check does not account for the pid namespace relationship between the caller and the target, so a task inside a pid namespace can use a pidfd obtained across that boundary to acquire namespace file descriptors of a task outside of its hierarchy. procfs exposes the equivalent information only for tasks visible in the reader's pid namespace, and PIDFD_GET_INFO already answers with -EREMOTE for targets outside the caller's hierarchy. Extend that policy to the namespace ioctls: fail with -EREMOTE unless the target is visible in the caller's active pid namespace. Callers in ancestor pid namespaces are unaffected. Unlike PIDFD_GET_INFO, the visibility check is performed after the task lookup here, so reaped targets outside of the caller's pid namespace hierarchy answer -ESRCH instead of -EREMOTE.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
5b08bd408534bfb3a7cf5778da5b27d4e4fffe12 to < 2cdaf4f2b12be9801ab29d2002e227db13f9cc44affected5b08bd408534bfb3a7cf5778da5b27d4e4fffe12 to < 22d32eff150b45dbf46913967209f45fd64378eaaffected5b08bd408534bfb3a7cf5778da5b27d4e4fffe12 to < ee8323fdc827c580425644db605a4be776cace57affected
Linux Linux
Default version status: affected
6.11affected0 to < 6.11unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected