{"id":"CVE-2026-89566","state":"PUBLISHED","title":"jbd2: check need_resched() when skipping busy checkpoint buffers","description":"In the Linux kernel, the following vulnerability has been resolved:\n\njbd2: check need_resched() when skipping busy checkpoint buffers\n\njournal_shrink_one_cp_list() skips busy checkpoint buffers when called\nwith JBD2_SHRINK_BUSY_SKIP.  The continue statement on this path also\nskips the need_resched() check at the end of the loop body.\n\nConsequently, when a checkpoint list contains mostly busy buffers, the\nshrinker can walk the entire list while holding journal->j_list_lock,\neven when a reschedule has been requested.  Large checkpoint lists under\nmemory pressure can therefore cause long lock hold times and leave other\nCPUs spinning on j_list_lock, resulting in soft lockups or RCU stalls.\n\nRoute the busy-buffer path through the need_resched() check so that the\nshrinker can release j_list_lock and reschedule promptly, restoring\nparity with the clean-buffer path, which already checks need_resched().\nThis does not change which checkpoint buffers are eligible for removal.","publishedAt":"2026-09-11T19:44:36.599Z","updatedAt":"2026-10-21T12:47:53.628Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b98dba273a0e47dbfade89c9af73c5b012a4eabb","status":"affected","lessThan":"dc7ece0b827fe3b748db685fb85cd2fc3710c3f9","versionType":"git"},{"version":"b98dba273a0e47dbfade89c9af73c5b012a4eabb","status":"affected","lessThan":"f83c23286e54180cdc83a36463a60003534cc290","versionType":"git"},{"version":"b98dba273a0e47dbfade89c9af73c5b012a4eabb","status":"affected","lessThan":"f9182a85991a0ad5cd2940df6db75f40ad90028c","versionType":"git"},{"version":"b98dba273a0e47dbfade89c9af73c5b012a4eabb","status":"affected","lessThan":"595cac7f1b32d009b97f83dd2b2d6a1a445e9bb4","versionType":"git"},{"version":"b98dba273a0e47dbfade89c9af73c5b012a4eabb","status":"affected","lessThan":"f213e12ff5c9590b1034ae8da0e6d09665c772d0","versionType":"git"},{"version":"9c31bb2684f8035beca0275349d19d679b679ffb","status":"affected","versionType":"git"},{"version":"5fda50e262e65bd553ff777c4b280afd1495a18b","status":"affected","versionType":"git"},{"version":"557fda9ed70ebf8eda2620ba3d746215285a1303","status":"affected","versionType":"git"},{"version":"5.15.129","status":"affected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.50","status":"affected","lessThan":"6.2","versionType":"semver"},{"version":"6.4.13","status":"affected","lessThan":"6.5","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jbd2/checkpoint.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.5","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.50","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jbd2/checkpoint.c"]}],"references":["https://git.kernel.org/stable/c/dc7ece0b827fe3b748db685fb85cd2fc3710c3f9","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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89566.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89566","state":"PUBLISHED","datePublished":"2026-09-11T19:44:36.599Z","dateUpdated":"2026-10-21T12:47:53.628Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.726Z"},"containers":{"cna":{"title":"jbd2: check need_resched() when skipping busy checkpoint buffers","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\njbd2: check need_resched() when skipping busy checkpoint buffers\n\njournal_shrink_one_cp_list() skips busy checkpoint buffers when called\nwith JBD2_SHRINK_BUSY_SKIP.  The continue statement on this path also\nskips the need_resched() check at the end of the loop body.\n\nConsequently, when a checkpoint list contains mostly busy buffers, the\nshrinker can walk the entire list while holding journal->j_list_lock,\neven when a reschedule has been requested.  Large checkpoint lists under\nmemory pressure can therefore cause long lock hold times and leave other\nCPUs spinning on j_list_lock, resulting in soft lockups or RCU stalls.\n\nRoute the busy-buffer path through the need_resched() check so that the\nshrinker can release j_list_lock and reschedule promptly, restoring\nparity with the clean-buffer path, which already checks need_resched().\nThis does not change which checkpoint buffers are eligible for removal."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b98dba273a0e47dbfade89c9af73c5b012a4eabb","status":"affected","lessThan":"dc7ece0b827fe3b748db685fb85cd2fc3710c3f9","versionType":"git"},{"version":"b98dba273a0e47dbfade89c9af73c5b012a4eabb","status":"affected","lessThan":"f83c23286e54180cdc83a36463a60003534cc290","versionType":"git"},{"version":"b98dba273a0e47dbfade89c9af73c5b012a4eabb","status":"affected","lessThan":"f9182a85991a0ad5cd2940df6db75f40ad90028c","versionType":"git"},{"version":"b98dba273a0e47dbfade89c9af73c5b012a4eabb","status":"affected","lessThan":"595cac7f1b32d009b97f83dd2b2d6a1a445e9bb4","versionType":"git"},{"version":"b98dba273a0e47dbfade89c9af73c5b012a4eabb","status":"affected","lessThan":"f213e12ff5c9590b1034ae8da0e6d09665c772d0","versionType":"git"},{"version":"9c31bb2684f8035beca0275349d19d679b679ffb","status":"affected","versionType":"git"},{"version":"5fda50e262e65bd553ff777c4b280afd1495a18b","status":"affected","versionType":"git"},{"version":"557fda9ed70ebf8eda2620ba3d746215285a1303","status":"affected","versionType":"git"},{"version":"5.15.129","status":"affected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.50","status":"affected","lessThan":"6.2","versionType":"semver"},{"version":"6.4.13","status":"affected","lessThan":"6.5","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jbd2/checkpoint.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.5","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.50","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jbd2/checkpoint.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/dc7ece0b827fe3b748db685fb85cd2fc3710c3f9"},{"url":"https://git.kernel.org/stable/c/f83c23286e54180cdc83a36463a60003534cc290"},{"url":"https://git.kernel.org/stable/c/f9182a85991a0ad5cd2940df6db75f40ad90028c"},{"url":"https://git.kernel.org/stable/c/595cac7f1b32d009b97f83dd2b2d6a1a445e9bb4"},{"url":"https://git.kernel.org/stable/c/f213e12ff5c9590b1034ae8da0e6d09665c772d0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-21T12:47:53.628Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.12.109"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.18.50"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"7.2.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"7.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.129"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.50"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}