KernelScan.io

HIGH Introduced in 7.0

sched_ext DeferredAction UAF

CVE-2026-98463

CVSS 7.0 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: sched_ext: Derive SCX_RQ_IN_WAKEUP from the core enqueue flags schedule_deferred_locked() skips scheduling a deferred action while SCX_RQ_IN_WAKEUP is set and relies on the task_woken_scx() call that follows a wakeup enqueue to run it. enqueue_task_scx() sets the flag from the merged enqueue flags, which include the flags stashed for a remote activation. move_remote_task_to_local_dsq() thus sets SCX_RQ_IN_WAKEUP on the destination rq when the moved task was woken up, although no task_woken_scx() follows that activation. An IMMED insert into a busy destination requests a local reenqueue during that enqueue. The request gets linked but not scheduled and stays pending until an unrelated wakeup or preemption on that CPU runs the deferred actions. The IMMED task sits behind the running task in the meantime. If nothing runs them before the scheduler is disabled, the request outlives the scheduler and points into its freed per-cpu area, which the next scheduler dereferences from run_deferred(). Test the core enqueue flags for the wakeup bit. Only the core's wakeup path is followed by task_woken_scx().

02

Engine v0.9.0

Risk summary

A local attacker on a system with the sched_ext scheduler enabled can trigger a use-after-free in the kernel's per-CPU scheduler data. The bug allows a deferred scheduling action to persist after the scheduler is torn down, leaving a dangling pointer that the next scheduler instance dereferences. This can lead to kernel memory corruption, privilege escalation, or denial of service.

Affectedkernel/sched/ext.c (sched_ext)

Vulnerability analysis

The sched_ext subsystem uses a flag (SCX_RQ_IN_WAKEUP) to defer certain scheduling actions during a task wakeup, relying on a follow-up callback (task_woken_scx) to run them later. A logic error caused this flag to be set not only for genuine wakeups but also when a task was moved between CPUs via a remote activation path that does not invoke the follow-up callback. When an immediate enqueue into a busy CPU queue occurred during such a move, the deferred action was queued but never executed. If the scheduler on that CPU was subsequently disabled (for example during CPU hotplug), the deferred request remained pointing into the now-freed per-CPU scheduler area. The next scheduler instance would then dereference this stale pointer, causing a use-after-free. The fix restricts the flag to only the core scheduler's wakeup path, ensuring the required callback always follows. Any local user can trigger the vulnerable code path through normal process activity (fork, exec, wakeups) on a kernel built with CONFIG_SCHED_EXT.

03

BranchIntroducedFixed inPatch commit
6.186.18.196.18.556c401ae426e2
6.196.19.96.203fdf2ceb31e8
7.27.07.2.9df5cdc2c832c
mainline7.07.3—