CVE-2026-139172: sched_ext: Fix a lone IMMED task waiting behind a kept prev
In the Linux kernel, the following vulnerability has been resolved:
schedext: Fix a lone IMMED task waiting behind a kept prev
While dispatch is in progress, rqisopen() returns true and dsqincnr() schedules no reenqueue for an IMMED task inserted on an empty local DSQ. The check at the end of dispatchone() schedules the reenqueue only when more than one task is queued, so a dispatch that keeps prev leaves a lone IMMED task behind:
1. a parent's ops.dispatch() sub-dispatches into a child, which consumes a task with SCXENQIMMED onto the empty local DSQ 2. the parent extends prev's slice and dispatch keeps prev 3. the local DSQ holds one task, so no reenqueue is scheduled
The IMMED task waits on the local DSQ behind prev.
Schedule the reenqueue when dispatch keeps prev and an IMMED task is queued, as even a lone IMMED task can't run right away behind prev.
v2: The description and dispatchone()'s comment are reworded.
Affected Software
Event History
Frequently Asked Questions
Which sched_ext workloads can encounter this condition?
It requires a parent scheduler's ops.dispatch() to sub-dispatch into a child, the child to consume a task enqueued with SCX_ENQ_IMMED onto an empty local DSQ, and the parent dispatch to keep the previous task after extending its slice.
What does the resolved change do differently?
It schedules a reenqueue whenever dispatch keeps the previous task and an IMMED task is queued. This covers the previously missed case where exactly one IMMED task is waiting on the local DSQ behind the kept previous task.