CVE-2026-46061: jbd2: fix deadlock in jbd2_journal_cancel_revoke()

Published May 27, 2026
·
Updated

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

jbd2: fix deadlock in jbd2journalcancelrevoke()

Commit f76d4c28a46a ("fs/jbd2: use sleeping version of findgetblock()") changed jbd2journalcancelrevoke() to use findgetblocknonatomic() which holds the folio lock instead of iprivatelock. This breaks the lock ordering (folio -> buffer) and causes an ABBA deadlock when the filesystem blocksize < pagesize:

T1 T2 ext4mkdir() ext4initnewdir() ext4append() ext4getblk() lockbuffer() <- A syncblockdev() blkdevwritepages() writebackiter() writebackgetfolio() foliolock() <- B ext4journalgetcreateaccess() jbd2journalcancelrevoke() findgetblocknonatomic() foliolock() <- B blockwritefullfolio() lockbuffer() <- A

This can occasionally cause generic/013 to hang.

Fix by only calling findgetblocknonatomic() when the passed bufferhead doesn't belong to the bdev, which is the only case that we need to look up its bdev alias. Otherwise, the lookup is redundant since the found bufferhead is equal to the one we passed in.

Affected Software

10 affected components
Linux Linux kernel
Linux Linux kernel>=6.12.31<6.12.86
Linux Linux kernel>=6.14.9<6.15
Linux Linux kernel>=6.15.1<6.18.27
Linux Linux kernel>=6.19<7.0.4
Linux Linux kernel=6.15
Linux Linux kernel=6.15-rc4
Linux Linux kernel=6.15-rc5
Linux Linux kernel=6.15-rc6
Linux Linux kernel=6.15-rc7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch f76d4c28a46a

Event History

May 27, 2026
CVE Published
via MITRE·12:57 PM
Data Sourced
via MITRE·12:57 PM
Description
Data Sourced
via NVD·02:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

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