CVE-2026-139772: sched/core: Don't proxy-exec unmatched cookie lock owners
In the Linux kernel, the following vulnerability has been resolved:
sched/core: Don't proxy-exec unmatched cookie lock owners
Core scheduling chooses a core-wide cookie before schedule() installs the next task. With proxy-exec enabled, that task becomes the donor/scheduling context, and findproxytask() may then replace the execution context with the runnable mutex owner. If its cookie differs from the selected core cookie, running it would bypass core scheduling's cookie selection.
When the final mutex owner found by findproxytask() does not match the selected core cookie, stop proxying the donor. If the current execution context is already in the blocked chain, fall back to idle like the existing proxy-exec retry paths do. Otherwise deactivate the donor and let schedule() pick again. The mutex owner can be picked later under its own cookie.
[jstultz: Added tweak to ensure we deactivate donor, not runnable owner]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
When the mutex owner’s cookie differs from the selected core cookie, stop proxying the donor, deactivate the donor rather than the runnable owner, and fall back to idle so __schedule__ can pick again.
Event History
Frequently Asked Questions
Which systems are affected by this scheduling flaw?
The issue applies to Linux kernel systems using core scheduling with proxy-exec enabled. It is triggered when proxy execution identifies a runnable mutex owner whose cookie does not match the cookie selected for the core.
What condition causes the core-scheduling isolation check to be bypassed?
The bypass can occur when find_proxy_task() replaces the donor scheduling context with a runnable mutex owner after the core-wide cookie has already been selected. If that owner's cookie differs from the selected core cookie, it could run despite not matching the core's cookie selection.