{"id":"CVE-2026-143175","state":"PUBLISHED","title":"pidfd: restrict task access ioctls to the caller's pid namespace","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npidfd: restrict task access ioctls to the caller's pid namespace\n\npidfds can cross pid namespace boundaries: a task may obtain one for a\nprocess outside of its own pid namespace hierarchy through SO_PASSPIDFD\nor SO_PEERPIDFD, via SCM_RIGHTS, or through file descriptor inheritance.\n\nThe namespace ioctls gate access with a ptrace check against the\ntarget's credentials only. That check does not account for the pid\nnamespace relationship between the caller and the target, so a task\ninside a pid namespace can use a pidfd obtained across that boundary to\nacquire namespace file descriptors of a task outside of its hierarchy.\n\nprocfs exposes the equivalent information only for tasks visible in the\nreader's pid namespace, and PIDFD_GET_INFO already answers with -EREMOTE\nfor targets outside the caller's hierarchy. Extend that policy to the\nnamespace ioctls: fail with -EREMOTE unless the target is visible in the\ncaller's active pid namespace. Callers in ancestor pid namespaces are\nunaffected.\n\nUnlike PIDFD_GET_INFO, the visibility check is performed after the task\nlookup here, so reaped targets outside of the caller's pid namespace\nhierarchy answer -ESRCH instead of -EREMOTE.","publishedAt":"2026-12-03T09:20:09.525Z","updatedAt":"2026-12-03T09:20:09.525Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5b08bd408534bfb3a7cf5778da5b27d4e4fffe12","status":"affected","lessThan":"2cdaf4f2b12be9801ab29d2002e227db13f9cc44","versionType":"git"},{"version":"5b08bd408534bfb3a7cf5778da5b27d4e4fffe12","status":"affected","lessThan":"22d32eff150b45dbf46913967209f45fd64378ea","versionType":"git"},{"version":"5b08bd408534bfb3a7cf5778da5b27d4e4fffe12","status":"affected","lessThan":"ee8323fdc827c580425644db605a4be776cace57","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/pidfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/pidfs.c"]}],"references":["https://git.kernel.org/stable/c/2cdaf4f2b12be9801ab29d2002e227db13f9cc44","https://git.kernel.org/stable/c/22d32eff150b45dbf46913967209f45fd64378ea","https://git.kernel.org/stable/c/ee8323fdc827c580425644db605a4be776cace57"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143175.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143175","state":"PUBLISHED","datePublished":"2026-12-03T09:20:09.525Z","dateUpdated":"2026-12-03T09:20:09.525Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.357Z"},"containers":{"cna":{"title":"pidfd: restrict task access ioctls to the caller's pid namespace","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\npidfd: restrict task access ioctls to the caller's pid namespace\n\npidfds can cross pid namespace boundaries: a task may obtain one for a\nprocess outside of its own pid namespace hierarchy through SO_PASSPIDFD\nor SO_PEERPIDFD, via SCM_RIGHTS, or through file descriptor inheritance.\n\nThe namespace ioctls gate access with a ptrace check against the\ntarget's credentials only. That check does not account for the pid\nnamespace relationship between the caller and the target, so a task\ninside a pid namespace can use a pidfd obtained across that boundary to\nacquire namespace file descriptors of a task outside of its hierarchy.\n\nprocfs exposes the equivalent information only for tasks visible in the\nreader's pid namespace, and PIDFD_GET_INFO already answers with -EREMOTE\nfor targets outside the caller's hierarchy. Extend that policy to the\nnamespace ioctls: fail with -EREMOTE unless the target is visible in the\ncaller's active pid namespace. Callers in ancestor pid namespaces are\nunaffected.\n\nUnlike PIDFD_GET_INFO, the visibility check is performed after the task\nlookup here, so reaped targets outside of the caller's pid namespace\nhierarchy answer -ESRCH instead of -EREMOTE."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5b08bd408534bfb3a7cf5778da5b27d4e4fffe12","status":"affected","lessThan":"2cdaf4f2b12be9801ab29d2002e227db13f9cc44","versionType":"git"},{"version":"5b08bd408534bfb3a7cf5778da5b27d4e4fffe12","status":"affected","lessThan":"22d32eff150b45dbf46913967209f45fd64378ea","versionType":"git"},{"version":"5b08bd408534bfb3a7cf5778da5b27d4e4fffe12","status":"affected","lessThan":"ee8323fdc827c580425644db605a4be776cace57","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/pidfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/pidfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2cdaf4f2b12be9801ab29d2002e227db13f9cc44"},{"url":"https://git.kernel.org/stable/c/22d32eff150b45dbf46913967209f45fd64378ea"},{"url":"https://git.kernel.org/stable/c/ee8323fdc827c580425644db605a4be776cace57"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:20:09.525Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}