sched_ext: Reset runnable_at when a task leaves its scheduler
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
sched_ext: Reset runnable_at when a task leaves its scheduler
The watchdog measures how long a task has been waiting from p->scx.runnable_at, which set_task_runnable() resets when the task becomes runnable after it last ran. ops_dequeue() never asks for a reset, as the dequeue of a waiting task is temporary, e.g. for a migration or an attribute change.
Leaving the scheduler isn't temporary. A task which is switched out of SCHED_EXT while it's waiting keeps its runnable_at. When it's switched back and becomes runnable, its wait appears to have started before it left, and the time it spent in another class counts towards the timeout. If the watchdog checks before the task runs, it aborts the scheduler:
sched_ext: class_switch_stall: runner[418] failed to run for 3.010s
Here, the task waited for a few milliseconds before it was switched to SCHED_OTHER, slept outside of SCHED_EXT for three seconds, and was charged for all of it as soon as it woke up on SCHED_EXT again.
The same happens when scx_sub_enable_workfn() hands a waiting task over to a new sub-scheduler, which can then be blamed for time the task waited under the parent. scx_rehome_task() isn't affected, as it moves the task through SCX_TASK_INIT, which resets runnable_at. The stale runnable_at also skews the default core-sched ordering in scx_prio_less().
Reset runnable_at in scx_disable_task(), when the task leaves the control of its scheduler.
| Product | Versions |
|---|---|
| Linux Linux | 8a010b81b3a50b033fc3cddc613517abda586cbe to before 9620287d0b8526a4cda8d8f7e56d904cabd3cd8d Affected8a010b81b3a50b033fc3cddc613517abda586cbe to before f8ecabfe21d42d94169e9e92b538ad8139ce94a1 Affected8a010b81b3a50b033fc3cddc613517abda586cbe to before 73f7fd0f75dd9f37063377a29a6f33250e921dd7 Affected8a010b81b3a50b033fc3cddc613517abda586cbe to before 993e8fbfecbbf284b9644c6f10741b28fb914094 Affected |
| Linux Linux | 6.12 Affectedbefore 6.12 Not Affected6.12.118 through 6.12.* Not Affected6.18.64 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.