Linux
coredump: hold RCU while releasing parked threads
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= a94e2d408eaedbd85aae259621d46fafc10479a2, < fd0fbe84312fda2fc187428c92c50b7d03a9d24c
- >= a94e2d408eaedbd85aae259621d46fafc10479a2, < 71146c437bae59e5280f657965dc6d006ee3989b
- >= a94e2d408eaedbd85aae259621d46fafc10479a2, < 0fce73efee40c65ce26641c5d93942462f9e8307
- >= a94e2d408eaedbd85aae259621d46fafc10479a2, < 16e94ed90b1b02398e044d41fd1db34828daa08e
- >= a94e2d408eaedbd85aae259621d46fafc10479a2, < a0f09ff4c6b93312e565cfe75d76c3a551a3ec4c
- >= a94e2d408eaedbd85aae259621d46fafc10479a2, < b0eca0edddf4c1dbaf6d1f6a8636b4235f5bc573
- >= a94e2d408eaedbd85aae259621d46fafc10479a2, < 61d58591aa0188bf2463e263962256316ff8b576
Fixed in fd0fbe84312fda2fc187428c92c50b7d03a9d24c, 71146c437bae59e5280f657965dc6d006ee3989b, 0fce73efee40c65ce26641c5d93942462f9e8307, 16e94ed90b1b02398e044d41fd1db34828daa08e, a0f09ff4c6b93312e565cfe75d76c3a551a3ec4c, b0eca0edddf4c1dbaf6d1f6a8636b4235f5bc573, 61d58591aa0188bf2463e263962256316ff8b576
- 2.6.27
Fixed in 0, 6.1.191, 6.6.161, 6.12.115, 6.18.60, 7.2.14, 7.3.1, 7.4-rc1
Mitigation
Upgrade Linux to fd0fbe84312fda2fc187428c92c50b7d03a9d24c or 71146c437bae59e5280f657965dc6d006ee3989b or 0fce73efee40c65ce26641c5d93942462f9e8307 or 16e94ed90b1b02398e044d41fd1db34828daa08e or a0f09ff4c6b93312e565cfe75d76c3a551a3ec4c or b0eca0edddf4c1dbaf6d1f6a8636b4235f5bc573 or 61d58591aa0188bf2463e263962256316ff8b576 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.161 or 6.12.115 or 6.18.60 or 7.2.14 or 7.3.1 or 7.4-rc1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.