CVE-2026-99218: coredump: hold RCU while releasing parked threads
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
coredump: hold RCU while releasing parked threads
coredump_finish() releases the parked threads by clearing ->task in their core_thread entry and calling wake_up_process() on each of them. It does that without holding a reference on the task and without being inside rcu.
But calling wake_up_process(task) without rcu here isn't safe. A parked thread doesn't need that wakeup to leave. A spurious wakeup or a preemption after the store is enough for the task to go away.
So if the coredump client is preempted between the store and wake_up_process() the thread can exit and be freed in the meantime and try_to_wake_up() takes pi_lock in freed memory.
Hold rcu across the loop.
The Linux kernel CVE team has assigned CVE-2026-99218 to this issue.
Severity
========
CVSS v3.1: 7 HIGH
Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected and fixed versions
===========================
Issue introduced in 2.6.27 with commit a94e2d408eaedbd85aae259621d46fafc10479a2 and fixed in 6.1.191 with commit fd0fbe84312fda2fc187428c92c50b7d03a9d24c Issue introduced in 2.6.27 with commit a94e2d408eaedbd85aae259621d46fafc10479a2 and fixed in 6.6.161 with commit 71146c437bae59e5280f657965dc6d006ee3989b Issue introduced in 2.6.27 with commit a94e2d408eaedbd85aae259621d46fafc10479a2 and fixed in 6.12.115 with commit 0fce73efee40c65ce26641c5d93942462f9e8307 Issue introduced in 2.6.27 with commit a94e2d408eaedbd85aae259621d46fafc10479a2 and fixed in 6.18.60 with commit 16e94ed90b1b02398e044d41fd1db34828daa08e Issue introduced in 2.6.27 with commit a94e2d408eaedbd85aae259621d46fafc10479a2 and fixed in 7.2.14 with commit a0f09ff4c6b93312e565cfe75d76c3a551a3ec4c Issue introduced in 2.6.27 with commit a94e2d408eaedbd85aae259621d46fafc10479a2 and fixed in 7.3.1 with commit b0eca0edddf4c1dbaf6d1f6a8636b4235f5bc573
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99218
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/coredump.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/fd0fbe84312fda2fc187428c92c50b7d03a9d24c https://git.kernel.org/stable/c/71146c437bae59e5280f657965dc6d006ee3989b https://git.kernel.org/stable/c/0fce73efee40c65ce26641c5d93942462f9e8307 https://git.kernel.org/stable/c/16e94ed90b1b02398e044d41fd1db34828daa08e https://git.kernel.org/stable/c/a0f09ff4c6b93312e565cfe75d76c3a551a3ec4c https://git.kernel.org/stable/c/b0eca0edddf4c1dbaf6d1f6a8636b4235f5bc573 https://git.kernel.org/stable/c/61d58591aa0188bf2463e263962256316ff8b576