{"id":"CVE-2026-46061","aliases":["CVE-2026-46061"],"related":[],"kind":"vulnerability","state":"published","title":"jbd2: fix deadlock in jbd2_journal_cancel_revoke()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\njbd2: fix deadlock in jbd2_journal_cancel_revoke()\n\nCommit f76d4c28a46a (\"fs/jbd2: use sleeping version of\n__find_get_block()\") changed jbd2_journal_cancel_revoke() to use\n__find_get_block_nonatomic() which holds the folio lock instead of\ni_private_lock. This breaks the lock ordering (folio -> buffer) and\ncauses an ABBA deadlock when the filesystem blocksize < pagesize:\n\n     T1                                T2\next4_mkdir()\n ext4_init_new_dir()\n  ext4_append()\n   ext4_getblk()\n    lock_buffer()    <- A\n                                   sync_blockdev()\n                                    blkdev_writepages()\n                                     writeback_iter()\n                                      writeback_get_folio()\n                                       folio_lock()   <- B\n     ext4_journal_get_create_access()\n      jbd2_journal_cancel_revoke()\n       __find_get_block_nonatomic()\n        folio_lock()  <- B\n                                     block_write_full_folio()\n                                      lock_buffer()   <- A\n\nThis can occasionally cause generic/013 to hang.\n\nFix by only calling __find_get_block_nonatomic() when the passed\nbuffer_head doesn't belong to the bdev, which is the only case that we\nneed to look up its bdev alias. Otherwise, the lookup is redundant since\nthe found buffer_head is equal to the one we passed in.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\njbd2: fix deadlock in jbd2_journal_cancel_revoke()\n\nCommit f76d4c28a46a (\"fs/jbd2: use sleeping version of\n__find_get_block()\") changed jbd2_journal_cancel_revoke() to use\n__find_get_block_nonatomic() which holds the folio lock instead of\ni_private_lock. This breaks the lock ordering (folio -> buffer) and\ncauses an ABBA deadlock when the filesystem blocksize < pagesize:\n\n     T1                                T2\next4_mkdir()\n ext4_init_new_dir()\n  ext4_append()\n   ext4_getblk()\n    lock_buffer()    <- A\n                                   sync_blockdev()\n                                    blkdev_writepages()\n                                     writeback_iter()\n                                      writeback_get_folio()\n                                       folio_lock()   <- B\n     ext4_journal_get_create_access()\n      jbd2_journal_cancel_revoke()\n       __find_get_block_nonatomic()\n        folio_lock()  <- B\n                                     block_write_full_folio()\n                                      lock_buffer()   <- A\n\nThis can occasionally cause generic/013 to hang.\n\nFix by only calling __find_get_block_nonatomic() when the passed\nbuffer_head doesn't belong to the bdev, which is the only case that we\nneed to look up its bdev alias. Otherwise, the lookup is redundant since\nthe found buffer_head is equal to the one we passed in.","source":"cvelist"}],"published":"2026-05-27T12:57:22.041Z","modified":"2026-06-17T10:53:00.163Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"f1c5aa614b5c251f93a6a4c8c26001d5e9e53fd6","fixed":"dff07cc98fdf6af57a7c054dc09b2050a9d5c287","status":"affected"},{"type":"git","introduced":"f76d4c28a46a9260d85e00dafc8f46d369365d33","fixed":"2b2fee890250ab647a601124471a334bb01a0790","status":"affected"},{"type":"git","introduced":"f76d4c28a46a9260d85e00dafc8f46d369365d33","fixed":"bbd943d6a2d566428324b516a37f98328dfb802d","status":"affected"},{"type":"git","introduced":"f76d4c28a46a9260d85e00dafc8f46d369365d33","fixed":"981fcc5674e67158d24d23e841523eccba19d0e7","status":"affected"},{"type":"git","version":"1bb7a4b6b3d7dd8da6f5a9d0529d42c22a359e71","status":"affected"},{"type":"semver","introduced":"6.12.31","fixed":"6.12.86","status":"affected"},{"type":"semver","introduced":"6.14.9","fixed":"6.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.12.86","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.27","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.4","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.12.31","fixed":"6.12.86"},{"status":"affected","introduced":"6.14.9","fixed":"6.15"},{"status":"affected","introduced":"6.15.1","fixed":"6.18.27"},{"status":"affected","introduced":"6.19","fixed":"7.0.4"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/dff07cc98fdf6af57a7c054dc09b2050a9d5c287","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2b2fee890250ab647a601124471a334bb01a0790","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bbd943d6a2d566428324b516a37f98328dfb802d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/981fcc5674e67158d24d23e841523eccba19d0e7","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46061","url":"https://www.cve.org/CVERecord?id=CVE-2026-46061","licence":"CVE Terms of Use","modified":"2026-06-14T17:51:27.666Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46061","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46061","licence":"Public domain","modified":"2026-06-17T10:53:00.163Z"}],"updatedAt":"2026-11-25T22:59:22.565Z","epss":{"score":0.00094,"percentile":0.00623,"date":"2026-12-01T12:00:22.000Z"}}