CVE-2026-139773

sched/core: Don't steal a proxy-exec donor

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

sched/core: Don't steal a proxy-exec donor

try_steal_cookie() avoids stealing src->core_pick and src->curr before
moving a task with the same cookie via move_queued_task_locked().

With proxy-exec, src->donor is the current scheduling context and may
differ from src->curr. Stealing it migrates a task that the source rq
still treats as current, leaving src's scheduler state for that task
stale. For CFS this means cfs_rq->curr points at the stolen entity,
and the next pick on the source rq hits the WARN_ON_ONCE in
put_prev_entity().

Commit 7de9d4f94638 ("sched: Start blocked_on chain processing in
find_proxy_task()") tweaked the fair class logic so that the donor task
isn't migrated away while we're running the proxy. Do it similarly for
try_steal_cookie() and skip src->donor as well.

Analysis

AI-generated

Technical impact

The flaw arises in the Linux scheduler when a proxy‑exec donor task is erroneously stolen during a context switch, leading to stale scheduler state. This inconsistency causes the next task pick on the source runqueue to trigger a WARN_ON_ONCE in put_prev_entity, and can ultimately result in kernel instability or a crash. The vulnerability is a scheduling logic bug rather than an information disclosure or remote code execution flaw, but it can upset system stability and availability.

Affected Systems

All Linux kernel versions that lack the fix that guards the donor pointer during cookie stealing, specifically those released before commit 7de9d4f94638, are affected. The issue exists in the stock Linux kernel and in derivative kernels that have not applied this change.

Risk and Exploitability

No CVSS or EPSS score is provided, but the kernel nature of the bug suggests a high impact if exploited. Exploitation would require manipulation of the scheduling context, which typically demands privileged code or kernel module access; thus the attack vector is local or privileged. The vulnerability cannot be triggered by normal user‑space programs, but an attacker with the ability to load malicious kernel modules or alter scheduling behaviors could induce a denial of service. The absence of a KEV listing does not negate the severity of a kernel crash in affected systems.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch containing commit 7de9d4f94638 or upgrade to a kernel version that includes this fix.
  • If a full kernel upgrade is not immediately feasible, disable proxy‑exec scheduling features by disabling the kernel configuration option that enables proxy execution or by ensuring any code paths that submit tasks with proxy‑exec are removed from the running kernel.
  • Verify that any third‑party kernel modules or custom scheduling code correctly handle donor task contexts and do not transfer donor pointers across task moves; rebuild or update such modules to respect the updated scheduling logic.

Generated by OpenCVE AI on December 1, 2026 at 01:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-368
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: sched/core: Don't steal a proxy-exec donor try_steal_cookie() avoids stealing src->core_pick and src->curr before moving a task with the same cookie via move_queued_task_locked(). With proxy-exec, src->donor is the current scheduling context and may differ from src->curr. Stealing it migrates a task that the source rq still treats as current, leaving src's scheduler state for that task stale. For CFS this means cfs_rq->curr points at the stolen entity, and the next pick on the source rq hits the WARN_ON_ONCE in put_prev_entity(). Commit 7de9d4f94638 ("sched: Start blocked_on chain processing in find_proxy_task()") tweaked the fair class logic so that the donor task isn't migrated away while we're running the proxy. Do it similarly for try_steal_cookie() and skip src->donor as well.
Title sched/core: Don't steal a proxy-exec donor
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-368

    Context Switching Race Condition

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM