Skip to content
Medium 4.7

sched/core: Call wakeup_preempt() for queued tasks during class change

CVE-2026-99205 First seen on SecPulse

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 7.0.0, < 7.2.13→ 7.2.13

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

In the Linux kernel, the following vulnerability has been resolved:

sched/core: Call wakeup_preempt() for queued tasks during class change

Paul reported recent RCU changes exposed a lost resched where CPU idles
with a rcutorture thread waiting while being completely runnable.

Dumping the rq state at the time of idling with runnable tasks showed
the following:

rq->next_class = &fair_sched_class
rq->nr_running = 1
rq->cfs.h_nr_queued = 0
rq->rt.rt_nr_running = 1

Although the waiting task was an RT task, "rq->next_class" did not point
to rt_sched_class and was stuck at the lower priority fair_sched_class.

Inspecting sched_change_end() revealed the following race with
__sched_setscheduler() for queued, but non-running tasks:

CPU0                                   CPU1
====                                   ====

__schedule()

/*
 * rq->donor is a fair task that blocks.
 * rq->next_class = &fair_sched_class
 */

rq_lock(rq0)

pick_next_task()
  /* nr_running = 0 */
  pick_task_fair()
    sched_balance_newidle()
      raw_spin_rq_unlock(rq0)
                                rq_lock(rq0)

                                activate_task(rq0, p)
                                  /* p is a fair task */
                                  rq0->nr_running++;
                                  rq0->cfs.h_nr_queued++;
                                  wakeup_preempt(rq, p)…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details