CVE-2026-143259: sched/deadline: Fix this_bw on class change of a dying task
In the Linux kernel, the following vulnerability has been resolved:
sched/deadline: Fix thisbw on class change of a dying task
Moving a SCHEDDEADLINE task out of the class with schedsetscheduler(2) after it stored TASKDEAD in dotaskdead(), but before schedule() dequeued it, subtracts its bandwidth from the runqueue's thisbw twice. thisbw then stays short until reboot: subrqbw() warns about the underflow or about runningbw > thisbw, and GRUB reclaim for SCHEDFLAGRECLAIM tasks on that CPU is miscomputed.
The class change dequeues the still queued task with DEQUEUESAVE, which removes its bandwidth from runningbw and thisbw. switchedfromdl() then calls tasknoncontending(), which, if the 0-lag time has passed, removes it from thisbw again because the task is TASKDEAD. That removal is meant for the dying task's own DEQUEUESLEEP dequeue, which has removed nothing before it.
Do the TASKDEAD removal only on that dequeue path.
Reproduced under QEMU on x8664 and riscv64 by moving exiting deadline tasks to SCHEDOTHER in a loop; with this patch there is no warning.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch sched/deadline: Fix this_bw on class change of a dying task
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
A SCHED_DEADLINE task must be exiting and have entered TASK_DEAD, then be moved to another scheduling class with sched_setscheduler(2) before __schedule() dequeues it. The issue was reproduced by repeatedly moving exiting deadline tasks to SCHED_OTHER.
What is the operational impact if the issue is triggered?
The affected CPU runqueue's this_bw accounting can be reduced twice and remain incorrect until reboot. This can produce scheduler warnings about bandwidth underflow or running_bw exceeding this_bw, and can miscompute GRUB reclaim for SCHED_FLAG_RECLAIM tasks on that CPU.
Which systems are most likely exposed?
Systems using SCHED_DEADLINE tasks are relevant, particularly where tasks may be changed to another scheduler class while exiting. The described impact is per CPU runqueue, so the incorrect accounting affects the CPU on which the triggering task runs.
What can be done if patching is not immediately possible?
Avoid changing an exiting TASK_DEAD SCHED_DEADLINE task to another scheduling class with sched_setscheduler(2). A reboot clears the persisted incorrect this_bw accounting after the issue has occurred.
How can administrators identify that the issue has occurred?
Kernel scheduler warnings from __sub_rq_bw() may report a bandwidth underflow or running_bw greater than this_bw. Incorrect GRUB reclaim behavior for SCHED_FLAG_RECLAIM tasks on a CPU is another indicated consequence.