CVE-2026-143323: sched_ext: Reject scx_bpf_destroy_dsq() in tracing programs

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

schedext: Reject scxbpfdestroydsq() in tracing programs

scxbpfdestroydsq() takes the target user DSQ's raw spinlock. However, it is in scxkfuncidsany, which is also registered for BPFPROGTYPETRACING.

For an active root scheduler without ops.subattach, the compatibility path in scxprogsched() lets an unassociated tracing program resolve to that scheduler. The tracing program can then call scxbpfdestroydsq() while the target DSQ lock is already held.

For example, a scheduler which mixes FIFO and priority-queue insertions into a user DSQ triggers scxerror() from scxdispatchenqueue() while holding that DSQ's lock. scxclaimexit() emits schedextexit before the lock is released:

scxdispatchenqueue() rawspinlock(&dsq->lock) scxerror() scxclaimexit() traceschedextexit() tracing BPF program scxbpfdestroydsq(dsqid) destroydsq() rawspinlockirqsave(&dsq->lock)

The tracing program recursively acquires the same raw spinlock and locks up the CPU. Because the tracepoint runs before scxfinishexit(), disableirqwork is not queued and the scheduler cannot enter its normal disable path.

Reject scxbpfdestroydsq() from tracing programs at verification time. The kfunc remains available to SCX structops and syscall programs.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Prevent BPF_PROG_TYPE_TRACING programs from calling scx_bpf_destroy_dsq() by rejecting the call at verification time; keep the kfunc available to SCX struct_ops and syscall programs.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:21 AM
Data Sourced
via MITRE·09:21 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this lockup condition?

Exposure requires an active sched_ext root scheduler without ops.sub_attach and a tracing BPF program that can resolve to that scheduler through the compatibility path. The issue specifically involves user DSQs and the scx_bpf_destroy_dsq() kfunc.

2

What triggers the CPU lockup?

A tracing BPF program calls scx_bpf_destroy_dsq() while the target user DSQ's raw spinlock is already held. The destroy operation attempts to acquire the same raw spinlock recursively, locking up the CPU before the scheduler can follow its normal disable path.

3

What can be done before the fix is deployed?

Do not allow tracing BPF programs to call scx_bpf_destroy_dsq() in affected sched_ext deployments. Avoid the combination of an active root scheduler without ops.sub_attach and tracing programs that can use this kfunc.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203