In the Linux kernel, the following vulnerability has been resolved: sched_ext: Don't run ops.dequeue() with a DSQ lock held ops.dequeue() is invoked… (CVE-2026-98865)
Description
A deadlock vulnerability in the Linux kernel scheduler extension (sched_ext) was resolved by changing when ops.dequeue() is invoked relative to DSQ locks. The issue caused self-deadlocks when ops.dequeue() was called while holding a source user DSQ lock, particularly affecting BPF schedulers that lock the source user DSQ during iteration. The fix moves the ops.dequeue() call to after the DSQ unlock to prevent deadlocks and ensures the callback is invoked exactly once.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel sched_ext component previously invoked ops.dequeue() while holding the source user DSQ lock on consume and move paths, leading to self-deadlocks in BPF schedulers that lock the source user DSQ during iteration (e.g., via bpf_iter_scx_dsq). The deadlock arises because all DSQ locks share one lockdep class, triggering recursion checks. The vulnerability was fixed by moving the ops.dequeue() invocation to after the DSQ unlock on all affected paths and clearing SCX_TASK_IN_CUSTODY under the lock to ensure a single callback invocation.
Potential Impact
The vulnerability can cause self-deadlocks in the Linux kernel scheduler extension when a BPF scheduler locks the source user DSQ during ops.dequeue() invocation. This can lead to kernel hangs or degraded system responsiveness due to scheduler deadlock conditions. There is no indication of privilege escalation or data corruption from the provided data.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to move the ops.dequeue() call after the DSQ unlock on all affected paths, preventing the deadlock condition. Users should update to the patched kernel version once available. Patch status is not explicitly confirmed in the provided data; check the vendor advisory or Linux kernel mailing lists for the official fix and updated versions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-2w8f-349m-66qf
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98865"]
Threat ID: 6ad520a92cdf04f656993897
Added to database: 10/18/2026, 19:40:25 UTC
Last enriched: 10/18/2026, 22:16:37 UTC
Last updated: 10/18/2026, 22:16:37 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.