Skip to main content
Vulnerability Database/CVE-2026-98463

CVE-2026-98463: Linux Kernel Use-After-Free Vulnerability

CVE-2026-98463 is a use-after-free flaw in the Linux kernel scheduler that can cause memory corruption when deferred actions outlive the scheduler. This article covers technical details, impact analysis, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98463 Overview

CVE-2026-98463 is a Linux kernel vulnerability in the sched_ext (SCX) extensible scheduler subsystem. The flaw occurs because enqueue_task_scx() sets the SCX_RQ_IN_WAKEUP flag using merged enqueue flags that include flags stashed for remote activations. When move_remote_task_to_local_dsq() moves a woken task, the destination runqueue incorrectly carries SCX_RQ_IN_WAKEUP without a corresponding task_woken_scx() callback. A deferred IMMED reenqueue request can then remain pending beyond the scheduler's lifetime, leaving a dangling pointer into freed per-CPU memory that the next loaded scheduler dereferences in run_deferred().

Critical Impact

Local attackers with the ability to load or reload a BPF scheduler can trigger a use-after-free in freed per-CPU scheduler memory, risking kernel memory corruption and potential privilege escalation.

Affected Products

  • Linux kernel versions containing the sched_ext subsystem with the affected remote enqueue path
  • Distributions shipping mainline kernels prior to the fix commits referenced in the patch set
  • Systems that permit loading custom BPF schedulers via sched_ext

Discovery Timeline

  • 2026-10-18 - CVE-2026-98463 published to the National Vulnerability Database
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98463

Vulnerability Analysis

The defect lives in the sched_ext scheduling class, which allows custom schedulers to be implemented in BPF. The function schedule_deferred_locked() intentionally skips running deferred actions when SCX_RQ_IN_WAKEUP is set on the runqueue. The subsystem relies on the subsequent task_woken_scx() callback, invoked after a wakeup enqueue, to flush any pending deferred work. This contract holds for the core wakeup path but breaks when remote activation flags leak into the destination runqueue state.

An IMMED dispatch into a busy destination requests a local reenqueue during its enqueue operation. The request becomes linked to the runqueue's deferred list but is never scheduled, because the stale SCX_RQ_IN_WAKEUP flag suppresses execution. Unless an unrelated wakeup or preemption later drains the deferred list, the request outlives the active BPF scheduler. When the scheduler is unloaded, its per-CPU storage is freed while the dangling pointer remains linked. The next scheduler to load dereferences freed memory from run_deferred(), producing a classic use-after-free [CWE-416].

Root Cause

The root cause is incorrect flag derivation in enqueue_task_scx(). The function sets SCX_RQ_IN_WAKEUP from the merged enqueue flags, which include flags stashed for remote activations by move_remote_task_to_local_dsq(). Only the core wakeup path is followed by task_woken_scx(), so remote activations leave the deferred-action gate stuck closed on the destination CPU.

Attack Vector

Triggering the condition requires the ability to load and unload a sched_ext BPF scheduler, which typically demands CAP_SYS_ADMIN or equivalent privilege. An attacker who can control scheduler loading can arrange the specific sequence of remote enqueues and IMMED dispatches that strands a deferred request. After unloading the first scheduler and loading a second, the stale pointer is dereferenced, enabling kernel memory corruption primitives.

No public exploit code is available for CVE-2026-98463. The fix is published across the upstream commits 3fdf2ceb31e8, 6c401ae426e2, and df5cdc2c832c.

Detection Methods for CVE-2026-98463

Indicators of Compromise

  • Unexpected kernel oops or panic messages referencing run_deferred, schedule_deferred_locked, or sched_ext call sites
  • KASAN reports flagging use-after-free in per-CPU sched_ext structures following a scheduler unload and reload
  • Repeated loading and unloading of custom BPF schedulers through the sched_ext interface by non-administrative workflows

Detection Strategies

  • Monitor kernel logs for BUG: or KASAN: entries that reference the scx_ symbol prefix or run_deferred
  • Audit bpf() syscall activity and sched_ext scheduler registration events using auditd or eBPF-based telemetry
  • Correlate scheduler load and unload events with subsequent kernel instability on the same CPU set

Monitoring Recommendations

  • Enable CONFIG_KASAN on test and canary kernels to surface use-after-free conditions early in validation
  • Collect kernel ring buffer output centrally and alert on any sched_ext warnings or stack traces
  • Track which processes invoke BPF_PROG_LOAD for scheduler programs and alert on unexpected principals

How to Mitigate CVE-2026-98463

Immediate Actions Required

  • Apply the upstream fixes 3fdf2ceb31e8, 6c401ae426e2, and df5cdc2c832c or upgrade to a stable kernel release that includes them
  • Restrict the ability to load BPF schedulers to trusted administrators and remove unnecessary CAP_SYS_ADMIN and CAP_BPF grants
  • Audit systems for custom sched_ext schedulers and disable any that are not required for production workloads

Patch Information

The fix changes enqueue_task_scx() to test the core enqueue flags for the wakeup bit, rather than deriving SCX_RQ_IN_WAKEUP from merged flags that include stashed remote-activation flags. This ensures SCX_RQ_IN_WAKEUP is set only on paths followed by task_woken_scx(), so deferred actions are drained correctly. See the Kernel Git Commit Change, the Kernel Git Commit - Bug Fix, and the Kernel Git Commit - Performance Improvement for the authoritative patches.

Workarounds

  • Disable CONFIG_SCHED_CLASS_EXT in kernel builds where custom BPF schedulers are not required
  • Use Linux Security Modules such as SELinux or AppArmor to deny bpf() scheduler registration to untrusted users
  • Avoid rapid load and unload cycles of sched_ext schedulers on production systems until the patch is applied
bash
# Verify whether sched_ext is enabled in the running kernel
grep CONFIG_SCHED_CLASS_EXT /boot/config-$(uname -r)

# List currently loaded BPF programs of type sched_ext
bpftool prog show | grep -i ext

# Restrict unprivileged BPF usage system-wide
sysctl -w kernel.unprivileged_bpf_disabled=1

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.