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

sched_ext: Close the pre-enable ops error claim window

scx_alloc_and_add_sched() publishes ops->priv before
scx_root_enable_workfn() switches the state to SCX_ENABLING. An error
claimed via scx_bpf_error_bstr() from an associated BPF program in that
window is consumed by scx_disable_workfn(), which takes the pre-enable
shortcut in scx_root_disable(). The shortcut returns without any teardown
and restores SCX_DISABLED with an unconditional scx_set_enable_state() xchg
racing the enable workfn's own transition. The enable then completes with
the claim consumed: the scheduler stays up but can never be disabled again,
and bpf_scx_unreg() frees it while still in use, resulting in a
use-after-free. Both WARN_ON_ONCE()s fire back to back:

WARNING: kernel/sched/ext/ext.c:7522 at
scx_root_enable_workfn+0xeec/0x1be0, CPU#3: scx_enable_help/276

WARNING: kernel/sched/ext/ext.c:6398 at scx_root_disable+0xb50/0xdb8,
CPU#0: sched_ext_helpe/664

scx_root_enable_workfn() switches to SCX_ENABLING before the scheduler
allocation, so ops->priv is never visible while SCX_DISABLED. The allocation
failure path restores SCX_DISABLED.
Published: 2026-10-06
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Local Privilege Escalation
Action: Apply Patch
AI Analysis

Impact

The Linux kernel contains a race condition in the sched_ext (scheduler extension) path that allows a BPF program to trigger an error claim during a pre-enable window. This race leads to a use‑after‑free of the scheduler extension object, which can corrupt kernel memory, crash the system or provide a local attacker with the ability to elevate privileges. The flaw involves improper resource cleanup (CWE‑825).

Affected Systems

Any Linux installation running a kernel that includes the vulnerable sched_ext code before the patches identified by commit hashes 959c66dc4a915be306c35691095c787c61dc7df9 and c7a1c6e8004ab12a9c9bfdcb603f60f9bf4a3cee is affected; no other vendors or products are listed as impacted.

Risk and Exploitability

The CVSS score of 5.5 and an EPSS score of less than 1% indicate a moderate severity with a low probability of exploitation. The vulnerability is not listed in CISA's KEV catalog, implying no widespread exploitation has been reported. The likely attack vector is a local user who can load or trigger BPF programs that interact with the scheduler extension, creating the exploit race. If successfully exploited, the attacker could cause a denial of service or gain elevated privileges on the affected system.

Generated by OpenCVE AI on October 9, 2026 at 15:35 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the commits closing the race window (959c66dc4a915be306c35691095c787c61dc7df9 or c7a1c6e8004ab12a9c9bfdcb603f60f9bf4a3cee).
  • If a kernel upgrade cannot be performed immediately, block or remove any BPF programs that interact with the scheduler extension until the patch is applied.
  • Reboot the system to clear any in-flight scheduler objects and disable modules that depend on this extension until the vulnerability is fixed.

Generated by OpenCVE AI on October 9, 2026 at 15:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 09 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 09 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Tue, 06 Oct 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 06 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: sched_ext: Close the pre-enable ops error claim window scx_alloc_and_add_sched() publishes ops->priv before scx_root_enable_workfn() switches the state to SCX_ENABLING. An error claimed via scx_bpf_error_bstr() from an associated BPF program in that window is consumed by scx_disable_workfn(), which takes the pre-enable shortcut in scx_root_disable(). The shortcut returns without any teardown and restores SCX_DISABLED with an unconditional scx_set_enable_state() xchg racing the enable workfn's own transition. The enable then completes with the claim consumed: the scheduler stays up but can never be disabled again, and bpf_scx_unreg() frees it while still in use, resulting in a use-after-free. Both WARN_ON_ONCE()s fire back to back: WARNING: kernel/sched/ext/ext.c:7522 at scx_root_enable_workfn+0xeec/0x1be0, CPU#3: scx_enable_help/276 WARNING: kernel/sched/ext/ext.c:6398 at scx_root_disable+0xb50/0xdb8, CPU#0: sched_ext_helpe/664 scx_root_enable_workfn() switches to SCX_ENABLING before the scheduler allocation, so ops->priv is never visible while SCX_DISABLED. The allocation failure path restores SCX_DISABLED.
Title sched_ext: Close the pre-enable ops error claim window
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:15:51.341Z

Reserved: 2026-09-25T10:25:14.327Z

Link: CVE-2026-98219

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:18:08.730

Modified: 2026-10-19T10:18:22.677

Link: CVE-2026-98219

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T00:00:00Z

Links: CVE-2026-98219 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-09T15:45:07Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference