HIGH Introduced in 7.1
sched_ext DSQ Race
CVE-2026-99269
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.1HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: sched_ext: Wait for SCX_OPSS_DISPATCHING before moving tasks off DSQs A task can be found on a non-local DSQ while the CPU which dispatched it is still running ops.dequeue() and hasn't cleared SCX_OPSS_DISPATCHING. The DSQ consume and move paths don't wait for the dispatch to finish and can operate on the task concurrently with the dispatcher. Call scx_wait_dispatching() in scx_move_local_task_to_local_dsq(), unlink_dsq_and_switch_rq_lock() and move_task_between_dsqs() before they operate on the task. In scx_move_local_task_to_local_dsq(), wait before scx_resolve_local_dsq() as it may update p->scx.flags.
02KernelScan AI Analysis
Risk summary
A race condition in the sched_ext scheduler core allows concurrent access to task structures during dispatch queue operations. A local user can exploit this to achieve kernel memory corruption, leading to privilege escalation or denial of service. Systems running BPF-based schedulers (sched_ext) are affected.
Vulnerability analysis
The sched_ext scheduler core fails to synchronize between the task dispatch path and the dispatch queue (DSQ) consume/move paths. When a task is dispatched to a non-local DSQ, the dispatching CPU sets a flag indicating dispatch is in progress while running the BPF scheduler's dequeue callback. However, other CPUs can simultaneously consume or move that task from the DSQ without waiting for the dispatch to complete, creating a race window where the task's scheduler state is modified concurrently. The fix adds explicit waits for the dispatch operation to finish before the consume and move paths manipulate the task, closing the race. Any local user on a system with sched_ext enabled and a BPF scheduler loaded can trigger this vulnerability through normal scheduling operations such as task wakeups, migrations, or affinity changes.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 7.2 | 7.1 | 7.2.14 | cc2839946328 |
| mainline | 7.1 | 7.3 | 2935062be771 |