CVE-2026-139773: sched/core: Don't steal a proxy-exec donor
In the Linux kernel, the following vulnerability has been resolved:
sched/core: Don't steal a proxy-exec donor
trystealcookie() avoids stealing src->corepick and src->curr before moving a task with the same cookie via movequeuedtasklocked().
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 cfsrq->curr points at the stolen entity, and the next pick on the source rq hits the WARNONONCE in putpreventity().
Commit 7de9d4f94638 ("sched: Start blockedon chain processing in findproxytask()") tweaked the fair class logic so that the donor task isn't migrated away while we're running the proxy. Do it similarly for trystealcookie() and skip src->donor as well.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 7de9d4f94638
Event History
Frequently Asked Questions
What runtime conditions are involved in triggering this issue?
The issue involves proxy execution and try_steal_cookie() moving a task with the same cookie. It occurs when the source runqueue's donor scheduling context differs from src->curr and the donor is stolen.
What symptom may indicate that the scheduler has reached the vulnerable state?
For the CFS scheduler class, cfs_rq->curr can still point to the stolen entity. The next task selection on the source runqueue can then trigger the WARN_ON_ONCE in put_prev_entity().
What is the corrective change?
The fix makes try_steal_cookie() avoid stealing src->donor, in addition to avoiding src->core_pick and src->curr. This prevents migration of a task that the source runqueue still treats as its current scheduling context.