sched_ext: Keep kick_sync waiting on the rq's own CPU
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c736ea0fe7b4df920da6bd43a81c5eeecadcc8be and Kernel e0253dd04beb03e79477c5ef4768b11135687206.
In the Linux kernel, the following vulnerability has been resolved: sched_ext: Keep kick_sync waiting on the rq's own CPU kick_sync_wait_bal_cb() assumes it runs on the rq's CPU from the __schedule() tail: the snapshots it compares against live in that CPU's percpu area and the busy-wait runs with the rq lock dropped and IRQs enabled. However, dispatch can now drop the rq lock while the callback sits queued, and rq lock takers in that window (the sched class change paths, the scx task iterator) flush pending balance callbacks on release, running the callback on a foreign CPU. Such a run compares against unrelated snapshots and can deadlock when the executing CPU is itself a wait target. Bail on a foreign CPU and leave the wait state alone. The wait only observes progress that the resched kicks already guarantee and the rq's next wait picks up the stale cpus_to_sync bits.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.19, >=4c95380701f58b8112f0b891de8d160e4199e19d <c736ea0fe7b4df920da6bd43a81c5eeecadcc8be, >=4c95380701f58b8112f0b891de8d160e4199e19d <e0253dd04beb03e79477c5ef4768b11135687206 | c736ea0fe7b4df920da6bd43a81c5eeecadcc8be, e0253dd04beb03e79477c5ef4768b11135687206 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket