{"id":"CVE-2026-99839","aliases":[],"cve":{"records":[{"id":"CVE-2026-99839","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.437Z","published":"2026-11-30T13:17:31.955Z","modified":"2026-11-30T13:17:31.955Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-30T13:17:31.955Z"}],"references":[{"url":"https://git.kernel.org/stable/c/53d02e55c115dbe5ee455292009132713fbbd6f2","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/830ff89b391e561b16e195bb2d92fded2d8c0456","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/172658cf600904ff6121e240f69a0ccb36e65d6b","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"pidfs: don't let PIDFD_GET_INFO miss a reaped task","titleSource":"Linux","descriptionSource":"Linux","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.","score":null,"severity":"unknown","published":"2026-11-30T13:17:31.955Z","modified":"2026-11-30T13:17:31.955Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"cdda1f26e74bac732eca537a69f19f6a37b641be","status":"affected","lessThan":"53d02e55c115dbe5ee455292009132713fbbd6f2","versionType":"git"},{"version":"cdda1f26e74bac732eca537a69f19f6a37b641be","status":"affected","lessThan":"830ff89b391e561b16e195bb2d92fded2d8c0456","versionType":"git"},{"version":"cdda1f26e74bac732eca537a69f19f6a37b641be","status":"affected","lessThan":"172658cf600904ff6121e240f69a0ccb36e65d6b","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99839"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99839"}],"remediation":[],"references":["https://git.kernel.org/stable/c/53d02e55c115dbe5ee455292009132713fbbd6f2","https://git.kernel.org/stable/c/830ff89b391e561b16e195bb2d92fded2d8c0456","https://git.kernel.org/stable/c/172658cf600904ff6121e240f69a0ccb36e65d6b"],"sources":[{"name":"CVE","id":"CVE-2026-99839","modified":"2026-11-30T13:17:31.955Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99839"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-30T13:46:43.930Z","kev":{"status":"not-listed","checkedAt":"2026-11-30T22:55:31.926Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}