CVE-2026-139509

sched_ext: Clear a sub-scheduler's caps before ops.sub_detach()

Published Nov 30, 2026 CVSS 3.1 · 3.6 Low EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

sched_ext: Clear a sub-scheduler's caps before ops.sub_detach()

A sub-scheduler can leave standing state behind on the cids delegated to it,
cpuperf targets being the obvious case, and the kernel does not track who
wrote it. Restoring it is the parent's job and ops.sub_detach() is the place
for it. Today the parent can't rely on that: the dying sub-scheduler keeps
every cap until it is marked dead after ops.exit(), so its ops.exit() or a
late timer can write after the parent has cleaned up.

Clear every cap of the sub-scheduler before ops.sub_detach(). The pshard
caps go first as a pending sync recomputes ecaps from them, and ecaps are
then zeroed directly. A grant racing the clear is refused under the child's
pshard lock, so nothing hands the caps back.

Analysis

AI-generated

Technical impact

The bug resides in the Linux kernel’s scheduler extensions. A sub‑scheduler fails to clear all of its capability state before it detaches, leaving those capabilities orphaned on the allocated contexts. This flaw allows that orphaned state to persist after the parent completes cleanup, creating a window where a malicious component could potentially retain or reuse elevated privileges. The flaw is a resource cleanup defect that may lead to unauthorized privilege escalation.

Affected Systems

Affected systems are Linux kernel installations that include the sched_ext module without the patch that clears sub‑scheduler capabilities prior to detachment. The CVE does not specify exact kernel versions, but any kernel build that lacks the proposed fix is potentially vulnerable.

Risk and Exploitability

The CVSS score of 3.6 indicates low severity, and the EPSS score of < 1% indicates a very low probability of exploitation. The vulnerability is not currently listed in CISA’s KEV catalog. Based on the description, the likely attack vector is within kernel‑level code that establishes sub‑schedulers, so exploitation would require the ability to create or control a sub‑scheduler instance. No public exploits have been reported, but the persistence of orphaned capabilities poses a significant security risk if the flaw is leveraged.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the patch which clears sub‑scheduler capabilities before ops.sub_detach()
  • If a kernel update is not immediately possible, disable or restrict the use of sched_ext sub‑scheduler features until the fix is applied
  • Audit kernel configurations and monitor system logs for unexpected capability attachment or detachment events

Generated by OpenCVE AI on December 2, 2026 at 15:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-366
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-362
CWE-662
CWE-668
Type Values Removed Values Added
Weaknesses CWE-362
CWE-662
CWE-668
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: sched_ext: Clear a sub-scheduler's caps before ops.sub_detach() A sub-scheduler can leave standing state behind on the cids delegated to it, cpuperf targets being the obvious case, and the kernel does not track who wrote it. Restoring it is the parent's job and ops.sub_detach() is the place for it. Today the parent can't rely on that: the dying sub-scheduler keeps every cap until it is marked dead after ops.exit(), so its ops.exit() or a late timer can write after the parent has cleaned up. Clear every cap of the sub-scheduler before ops.sub_detach(). The pshard caps go first as a pending sync recomputes ecaps from them, and ecaps are then zeroed directly. A grant racing the clear is refused under the child's pshard lock, so nothing hands the caps back.
Title sched_ext: Clear a sub-scheduler's caps before ops.sub_detach()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-366

    Race Condition within a Thread

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Low
Public date
Nov 30, 2026, 1:35 PM