CVE-2026-89521: sched/core: Handle pick_task() releasing the rq lock

Published Sep 11, 2026
·
Updated

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

sched/core: Handle picktask() releasing the rq lock

Core scheduling's picknexttask() breaks when a ->picktask() implementation can release the rq lock. The selection state derived on entry is only valid while the lock is held continuously. Once a pick can drop the lock, an interleaving selection can invalidate all of it: the single-CPU fast path can commit an uncookied pick although the core went cookied during the release, and forceidle committed by the interleaving selection skews the restarted pass's accounting.

Fix it by restarting the whole selection when a pick returns RETRYTASK after releasing the lock: a single restart point above the state derivation replaces the per-loop restart labels, so a retry picks up state committed by interleaving selections and accounts and resets forceidle like a fresh selection would.

needsync and fibefore latch across retries. Clock validity can't be re-derived - there is no program-ordered way to tell whether the own and core rq clocks are still updated after the lock was released, as other lockers' pin cycles may or may not have invalidated them. When restarting, clear coreclockupdated so that the sibling loop re-updates the core rq, and update the own rq clock if invalidated.

Affected Software

1 affected component
Linux Kernel

Event History

Sep 11, 2026
CVE Published
via MITRE·07:44 PM
Data Sourced
via MITRE·07:44 PM
Description

Frequently Asked Questions

1

What state is preserved when task selection is retried?

The need_sync and fi_before values remain latched across retries. The restarted selection otherwise re-derives selection state and handles forceidle accounting and reset as a fresh selection.

2

Why are scheduler clocks cleared rather than re-derived after the lock is released?

The scheduler cannot determine in program order whether the local and core runqueue clocks remained updated while the lock was released. Other lock holders may have invalidated clock validity during their pin cycles.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203