CVE-2026-89566: jbd2: check need_resched() when skipping busy checkpoint buffers
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
jbd2: check need_resched() when skipping busy checkpoint buffers
journal_shrink_one_cp_list() skips busy checkpoint buffers when called with JBD2_SHRINK_BUSY_SKIP. The continue statement on this path also skips the need_resched() check at the end of the loop body.
Consequently, when a checkpoint list contains mostly busy buffers, the shrinker can walk the entire list while holding journal->j_list_lock, even when a reschedule has been requested. Large checkpoint lists under memory pressure can therefore cause long lock hold times and leave other CPUs spinning on j_list_lock, resulting in soft lockups or RCU stalls.
Route the busy-buffer path through the need_resched() check so that the shrinker can release j_list_lock and reschedule promptly, restoring parity with the clean-buffer path, which already checks need_resched(). This does not change which checkpoint buffers are eligible for removal.
The Linux kernel CVE team has assigned CVE-2026-89566 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.5 with commit b98dba273a0e47dbfade89c9af73c5b012a4eabb and fixed in 6.12.109 with commit f83c23286e54180cdc83a36463a60003534cc290 Issue introduced in 6.5 with commit b98dba273a0e47dbfade89c9af73c5b012a4eabb and fixed in 6.18.50 with commit f9182a85991a0ad5cd2940df6db75f40ad90028c Issue introduced in 6.5 with commit b98dba273a0e47dbfade89c9af73c5b012a4eabb and fixed in 7.2.4 with commit 595cac7f1b32d009b97f83dd2b2d6a1a445e9bb4 Issue introduced in 6.5 with commit b98dba273a0e47dbfade89c9af73c5b012a4eabb and fixed in 7.3-rc1 with commit f213e12ff5c9590b1034ae8da0e6d09665c772d0 Issue introduced in 5.15.129 with commit 9c31bb2684f8035beca0275349d19d679b679ffb Issue introduced in 6.1.50 with commit 5fda50e262e65bd553ff777c4b280afd1495a18b Issue introduced in 6.4.13 with commit 557fda9ed70ebf8eda2620ba3d746215285a1303
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-89566
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/jbd2/checkpoint.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/f83c23286e54180cdc83a36463a60003534cc290 https://git.kernel.org/stable/c/f9182a85991a0ad5cd2940df6db75f40ad90028c https://git.kernel.org/stable/c/595cac7f1b32d009b97f83dd2b2d6a1a445e9bb4 https://git.kernel.org/stable/c/f213e12ff5c9590b1034ae8da0e6d09665c772d0