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-98864 Overview
CVE-2026-98864 is a race condition in the Linux kernel's sched_ext (SCX) extensible scheduler subsystem. The flaw affects the task reenqueue path, where a task can be found on a dispatch queue (DSQ) while still in the SCX_OPSS_DISPATCHING state. Reenqueue paths do not wait for this state to clear before invoking ops.enqueue(), allowing the dispatcher's final state store to overwrite SCX_OPSS_QUEUED with SCX_OPSS_NONE. The result is that finish_dispatch() silently drops every later dispatch of the affected task.
Critical Impact
The race causes dropped task dispatches in the extensible scheduler, leading to scheduling inconsistencies and potential denial-of-service conditions for workloads relying on sched_ext schedulers.
Affected Products
- Linux kernel builds with CONFIG_SCHED_CLASS_EXT enabled
- Kernels containing commit ebf1ccff79c4 ("sched_ext: Fix ops.dequeue() semantics")
- Stable kernel branches prior to the fix commits 43457bf6 and 7de9a6fb
Discovery Timeline
- 2026-10-18 - CVE-2026-98864 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98864
Vulnerability Analysis
The vulnerability resides in the sched_ext subsystem, which permits BPF-based pluggable schedulers. A prior commit (ebf1ccff79c4) relocated the final ops_state store inside scx_dispatch_enqueue() to occur after the DSQ unlock. This ordering was intentional so that custody updates and ops.dequeue() complete before the state transition.
The side effect is that a task can appear on a DSQ while still carrying the SCX_OPSS_DISPATCHING state. The dequeue path and the core-sched pick path call ops_dequeue(), which correctly waits for SCX_OPSS_DISPATCHING to clear. The reenqueue paths lack this wait and proceed immediately.
Root Cause
The root cause is a missing synchronization barrier [CWE-362] in the reenqueue code paths of sched_ext. When a reenqueue executes within the window where SCX_OPSS_DISPATCHING is still set, ops.enqueue() runs and sets SCX_OPSS_QUEUED. The dispatcher subsequently writes its final state, overwriting the queued marker with SCX_OPSS_NONE. The finish_dispatch() routine then drops every later dispatch attempt for that task.
Attack Vector
The issue is a kernel-local race condition reachable only in systems running custom sched_ext BPF schedulers. Triggering requires concurrent dispatch and reenqueue activity on the same task. The vulnerability is not remotely exploitable and requires workloads that exercise the extensible scheduler's dispatch and reenqueue paths concurrently. The resulting behavior is dropped scheduling decisions rather than memory corruption.
The fix instructs the reenqueue path to wait for SCX_OPSS_DISPATCHING to clear before dequeueing a task for reenqueue, mirroring the existing behavior in ops_dequeue(). See Kernel Git Commit 43457b and Kernel Git Commit 7de9a6f for the upstream resolution.
Detection Methods for CVE-2026-98864
Indicators of Compromise
- Unexplained stalls or dropped scheduling decisions in workloads managed by a sched_ext BPF scheduler.
- Kernel log entries from sched_ext showing tasks disappearing from DSQs without completing dispatch.
- Running kernel versions on stable branches that predate commits 43457bf6 and 7de9a6fb.
Detection Strategies
- Inventory Linux hosts with CONFIG_SCHED_CLASS_EXT=y and verify kernel build hashes against patched versions.
- Review dmesg and /sys/kernel/debug/sched_ext/ state for abnormal task state transitions.
- Correlate scheduler telemetry with user-space BPF scheduler logs to identify tasks that stop progressing after dispatch.
Monitoring Recommendations
- Track kernel package versions across the fleet to detect unpatched hosts running sched_ext workloads.
- Monitor process scheduling latency and runqueue depth for anomalies on hosts using custom BPF schedulers.
- Alert on repeated task stalls associated with the sched_ext scheduler class.
How to Mitigate CVE-2026-98864
Immediate Actions Required
- Apply the upstream fix contained in commits 43457bf6550044c40bd6d3fcdf9ea66f5a55d139 and 7de9a6fb44eae4f05e68c805d58b9c618815adfa.
- Update to a stable Linux kernel release that incorporates both commits.
- Audit all hosts running custom sched_ext BPF schedulers and prioritize them for patching.
Patch Information
The fix adds a wait on SCX_OPSS_DISPATCHING in the reenqueue path, matching the existing behavior in ops_dequeue(). Patches are available from the upstream kernel repository at Kernel Git Commit 43457b and Kernel Git Commit 7de9a6f. Downstream distribution kernels should be updated as vendor backports become available.
Workarounds
- Disable or avoid loading custom sched_ext BPF schedulers until the patched kernel is deployed.
- Fall back to the default CFS/EEVDF scheduler for production workloads where sched_ext is not required.
- Rebuild the kernel without CONFIG_SCHED_CLASS_EXT on systems that do not rely on pluggable schedulers.
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

