CVE-2026-89521

Source
https://cve.org/CVERecord?id=CVE-2026-89521
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89521.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-89521
Downstream
Published
2026-09-11T19:44:03Z
Modified
2026-09-12T11:47:16Z
Summary
sched/core: Handle pick_task() releasing the rq lock
Details

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

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

Core scheduling's pick_next_task() breaks when a ->pick_task() 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 RETRY_TASK 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.

need_sync and fi_before 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 core_clock_updated so that the sibling loop re-updates the core rq, and update the own rq clock if invalidated.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89521.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4c95380701f58b8112f0b891de8d160e4199e19d
Fixed
88ed5a66467ca2a5148b9997af9c71d8c43060ad
Fixed
c10b216a072ff5c57bc880a05f87eb519aecc529

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89521.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89521.json"