CVE-2026-99269
published high CVSS 3.1 · 7.8sched_ext: Wait for SCX_OPSS_DISPATCHING before moving tasks off DSQs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxebf1ccff79c43f860cbd2f9d6cfab9a462d0cb2d to < cc2839946328c1618b3870d521b32bb9483d49d0 · ebf1ccff79c43f860cbd2f9d6cfab9a462d0cb2d to < 2935062be77113c1c4565ca9d0c72180449aafee · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.1 (affected) · 0 to < 7.1 (unaffected · semver) · 7.2.14 through 7.2.* (unaffected · semver) · 7.3 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: sched_ext: Wait for SCX_OPSS_DISPATCHING before moving tasks off DSQs A task can be found on a non-local DSQ while the CPU which dispatched it is still running ops.dequeue() and hasn't cleared SCX_OPSS_DISPATCHING. The DSQ consume and move paths don't wait for the dispatch to finish and can operate on the task concurrently with the dispatcher. Call scx_wait_dispatching() in scx_move_local_task_to_local_dsq(), unlink_dsq_and_switch_rq_lock() and move_task_between_dsqs() before they operate on the task. In scx_move_local_task_to_local_dsq(), wait before scx_resolve_local_dsq() as it may update p->scx.flags.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The race is in scx_dispatch_enqueue() versus scx_move_local_task_to_local_dsq(), unlink_dsq_and_switch_rq_lock() and move_task_between_dsqs() in kernel/sched/ext/ext.c, reached locally by bpf(BPF_LINK_CREATE)->bpf_scx_reg() then scx_bpf_dsq_insert()/scx_bpf_dsq_move[_to_local](), or by __schedule()->pick_task_scx()->scx_dispatch_sched()->consume_global_dsq(); no remote protocol supplies the triggering state. AC:L - A loaded sched_ext program inserts a task onto a non-local DSQ so scx_dispatch_enqueue() drops dsq->lock while ops_state is still SCX_OPSS_DISPATCHING and runs ops.dequeue(), while another CPU consumes or moves that same task via scx_bpf_dsq_move_to_local()/scx_bpf_dsq_move() or consume_global_dsq(); the attacker drives both sides and can retry. PR:L - Enabling the scheduler takes bpf() BPF_PROG_LOAD of BPF_PROG_TYPE_STRUCT_OPS, which is_perfmon_prog_type() gates on bpf_token_capable(CAP_BPF) and CAP_PERFMON, then BPF_LINK_CREATE into bpf_scx_reg(); those capabilities are delegable into a user namespace with a BPF token, so this is not init-namespace root. UI:N - The attacker attaches their own sched_ext_ops, has scx_bpf_dsq_insert() place a task on a non-local DSQ, and consumes or moves it from another CPU; no victim mount, file open, or other user action is required. S:U - The concurrent updates of p->scx.flags, p->scx.ops_state and p->scx.dsq_list stay inside the host kernel sched_ext hot path; this is same-authority kernel memory corruption, not a VM, IOMMU, or guest-to-host escape. C:H - scx_move_local_task_to_local_dsq() and move_task_between_dsqs() unlink and re-link p->scx.dsq_list and RMW p->scx.flags (scx_resolve_local_dsq() may clear SCX_TASK_IMMED) while scx_dispatch_enqueue() still holds SCX_OPSS_DISPATCHING; a lost SCX_TASK_QUEUED bit or a second list_add of the live node corrupts kernel list state, a disclosure-capable memory-corruption primitive. I:H - The same unsynchronized DSQ unlink/insert and non-atomic p->scx.flags RMW, plus scx_dispatch_enqueue()'s later SCX_ENQ_CLEAR_OPSS store overwriting a new QUEUEING/QUEUED ops_state, can double-link a task or clobber scheduler ownership and yield kernel list corruption and control-flow corruption on the sched_ext path. A:H - Consuming or moving a task found on a non-local DSQ while scx_dispatch_enqueue() is still in ops.dequeue() with SCX_OPSS_DISPATCHING set hits WARN_ON_ONCE() in the enqueue/dispatch paths, can strand the task when CLEAR_OPSS overwrites QUEUED so later finish_dispatch() drops it, and can oops on a corrupted dsq_list, causing a kernel hang or panic.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | ebf1ccff79c43f860cbd2f9d6cfab9a462d0cb2d to < cc2839946328c1618b3870d521b32bb9483d49d0 (affected · git)ebf1ccff79c43f860cbd2f9d6cfab9a462d0cb2d to < 2935062be77113c1c4565ca9d0c72180449aafee (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.1 (affected)0 to < 7.1 (unaffected · semver)7.2.14 through 7.2.* (unaffected · semver)7.3 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
sched_ext: Wait for SCX_OPSS_DISPATCHING before moving tasks off DSQs
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 37c2542b0be385d27fcf846407a67ef5aa72bb94db631116d09d829108ffe420
- Ingested
- 03 Nov 2026, 19:22:39 UTC
- Source record
- Official CVE record