All reports
Medium

kernel: sched_ext: Don't warn on core-sched forced idle in put_prev_task_scx()

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-68421

Probability of exploitation in the next 30 days: 0.20%

FIRST EPSS · 2026-11-22

Description

In the Linux kernel, the following vulnerability has been resolved: sched_ext: Don't warn on core-sched forced idle in put_prev_task_scx() put_prev_task_scx() warns when a runnable task drops to a lower sched_class without SCX_OPS_ENQ_LAST, on the assumption that balance_one() would have kept it running. Core scheduling breaks that: a forced-idle SMT sibling reschedules through the core_pick fast path in pick_next_task(), which skips pick_task_scx() and thus balance_one(), so a runnable task can drop to idle with ENQ_LAST unset. Gate the warning on sched_cpu_cookie_match(): a cookie mismatch means core scheduling forced the idle, while a match (or core scheduling off) still catches a genuine missing-ENQ_LAST drop.

A flaw was found in the Linux kernel's sched_ext component. The put_prev_task_scx() function incorrectly issues a warning when a runnable task transitions to an idle state due to core scheduling. This occurs because the core scheduling mechanism bypasses certain checks, leading to a misleading warning.