{"identifier":"CVE-2026-99839","cve":{"id":"CVE-2026-99839","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npidfs: don't let PIDFD_GET_INFO miss a reaped task\n\nPIDFD_GET_INFO describes the task while there is one, and with\nPIDFD_INFO_EXIT its exit status once it has been reaped.  pidfd_info()\nlooks at the two in the wrong order and can miss both:\n\n  pidfd_info()                          release_task()\n    PIDFS_ATTR_BIT_EXIT is not set\n                                          pidfs_exit()\n                                          __unhash_process()\n    get_pid_task() == NULL\n    goto copy_out\n\nThe ioctl succeeds with neither PIDFD_INFO_PID nor PIDFD_INFO_EXIT in the\nmask.  If the task is unhashed a little later, after get_pid_task(), its\npid reads as 0 and the ioctl fails with -ESRCH, although the caller asked\nfor the exit information and it is available by now.\n\nThe second case does not even need an exit.  When a sub-thread execs,\nde_thread() hands the leader's pid over to it and releases the old leader.\nA caller that got hold of the old leader reports the tid of the sub-thread\nas the pid, or -ESRCH for a process that is alive.\n\nLook up the task first.  pidfs_exit() runs before the task is unhashed, so\na caller that finds no task finds the exit information; this needs a\nbarrier on both sides because taking tasklist_lock does not order the\nstore in pidfs_exit() against the one in detach_pid().  And start over if\nthe task no longer owns the pid when all the fields have been read: then\nthere is either exit information or another task.\n\nGo by the pid for that check and for the pid we report, not by\n->thread_pid of the task.  exchange_tids() moves the pid to the exec'ing\nthread before it updates ->thread_pid of either task.  A caller that\nfinds the new leader in between would read the old tid of the sub-thread\nfrom ->thread_pid, and a check of ->thread_pid would restart until the\nexec'ing thread gets to its store.  On PREEMPT_RT that thread can be\npreempted with tasklist_lock held and can't move to another CPU.  If the\nRT task that preempted it calls PIDFD_GET_INFO, the ioctl spins until\nthe exec'ing thread gets the CPU back, and that never happens if the\nexec'ing thread is an RT task of lower priority.\n\nChristian Brauner <brauner@kernel.org> says:\n\nGo by @pid instead of ->thread_pid of the task for the reported pid and\nfor the restart check.","published":"2026-11-30T14:20:16.937000+00:00","modified":"2026-11-30T14:20:16.937000+00:00","status":"Received","score":null,"severity":"UNSCORED","vector":"","cvss_version":"","affected":[],"weaknesses":[],"references":[{"url":"https://git.kernel.org/stable/c/172658cf600904ff6121e240f69a0ccb36e65d6b","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/53d02e55c115dbe5ee455292009132713fbbd6f2","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/830ff89b391e561b16e195bb2d92fded2d8c0456","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}],"kev":null,"kev_checked":true,"metrics":{},"configurations":[],"source":"nvd","retrieved_at":"2026-11-30T16:30:08.081457+00:00","exploited":false,"kev_stale":false,"products":[],"priority":{"label":"Assess exposure and vendor guidance","reasons":["No higher-priority signal is available in the current stored evidence."]},"epss":{"probability":0.00207,"percentile":0.11426,"date":"2026-12-04","stale":false},"version_assessment":null},"news":[],"campaigns":[],"domains":[{"domain":"git.kernel.org","source_url":"https://git.kernel.org/stable/c/172658cf600904ff6121e240f69a0ccb36e65d6b","investigate_url":"https://investigate.aeglixmind.com/#git.kernel.org"}],"arsenal_url":"https://arsenal.aeglixmind.com/?cve=CVE-2026-99839","catalog_url":"https://cves.aeglixmind.com/cve/CVE-2026-99839","research_url":"https://investigate.aeglixmind.com/research/cve/CVE-2026-99839","coverage":{"news_candidates_checked":0,"campaign_candidates_checked":0,"bounded":false,"notice":"Exact CVE mentions in stored public excerpts and reviewed campaign content only. A mention is not proof of exploitation, attribution or tool suitability. Missing matches do not establish absence."}}