CVE-2026-100020

sched_ext: Reset runnable_at when a task leaves its scheduler

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises when a task that has been scheduled under the SCHED_EXT class is moved out of that class—such as during migration or sub‑scheduler hand‑off—without resetting its internal wait timestamp (runnable_at). The watchdog, which tracks how long a task has been waiting, interprets the stale timestamp as a prolonged wait time that includes the period the task spent in other scheduler classes. When the watchdog detects that a task has not run for longer than the allowed limit, it aborts the entire scheduler, potentially triggering a kernel panic or other severe scheduler failure. This also skews the core scheduling order, potentially degrading system responsiveness. The primary impact is a denial of service, as the kernel may become unreachable or crash, allowing an attacker to bring a critical system offline.

Affected Systems

The affected product is the Linux kernel, as identified by the CNA vendor list. No specific affected versions are provided, so the vulnerability may exist in any kernel release that includes the SCHED_EXT scheduler implementation prior to the mentioned fix. System administrators should verify the kernel version against vendor release notes for the patch.

Risk and Exploitability

No CVSS score or EPSS value is published, and the vulnerability is not listed in the CISA KEV catalog. The risk is primarily driven by the severity of the denial of service outcome. Exploitation requires the ability to create or manipulate a task that remains in the SCHED_EXT class long enough to be moved out and back in; this typically requires local or elevated privileges that can influence scheduling policy or migration. Because the bug simply mis‑calculates wait times, an attacker could trigger it by running a long‑lived SCHED_EXT task under controlled conditions. Although no public exploit is known, the logic flaw is straightforward to trigger once the scheduler context changes, making it a moderate to high‑risk vulnerability for systems that utilize SCHED_EXT or sub‑schedulers.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the SCHED_EXT runnable_at reset fix.
  • If no patch is available, temporarily disable or avoid tasks that use the SCHED_EXT scheduler or the sub‑scheduler feature to reduce the risk of watchdog aborts.
  • Configure the system to log watchdog and scheduler abort events so you can detect if the issue is occurring and respond quickly.

Generated by OpenCVE AI on November 30, 2026 at 15:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-368
CWE-665
Type Values Removed Values Added
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.
Title sched_ext: Reset runnable_at when a task leaves its scheduler
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-368

    Context Switching Race Condition

  • CWE-665

    Improper Initialization

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM