CVE-2026-46061

jbd2: fix deadlock in jbd2_journal_cancel_revoke()

MEDIUM
5.5
CVSS Score
Published: May 27, 2026 at 12:57 PM UTC
Updated: June 17, 2026 at 10:53 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.1%

Description

In the Linux kernel, the following vulnerability has been resolved: jbd2: fix deadlock in jbd2_journal_cancel_revoke() Commit f76d4c28a46a ("fs/jbd2: use sleeping version of __find_get_block()") changed jbd2_journal_cancel_revoke() to use __find_get_block_nonatomic() which holds the folio lock instead of i_private_lock. This breaks the lock ordering (folio -> buffer) and causes an ABBA deadlock when the filesystem blocksize < pagesize: T1 T2 ext4_mkdir() ext4_init_new_dir() ext4_append() ext4_getblk() lock_buffer() <- A sync_blockdev() blkdev_writepages() writeback_iter() writeback_get_folio() folio_lock() <- B ext4_journal_get_create_access() jbd2_journal_cancel_revoke() __find_get_block_nonatomic() folio_lock() <- B block_write_full_folio() lock_buffer() <- A This can occasionally cause generic/013 to hang. Fix by only calling __find_get_block_nonatomic() when the passed buffer_head 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 buffer_head is equal to the one we passed in.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.14.96.12.31 ≤ v < 6.12.866.14.9 ≤ v < 6.156.15 ≤ v < 6.18.276.15 ≤ v < 7.0.46.15 ≤ v < 7.16.15.1 ≤ v < 6.18.276.19 ≤ v < 7.0.41bb7a4b6b3d7dd8da6f5a9d0529d42c22a359e716.12.316.14.96.156.15 rc46.15 rc56.15 rc66.15 rc7f1c5aa614b5c251f93a6a4c8c26001d5e9e53fd6f76d4c28a46a9260d85e00dafc8f46d369365d33
Vendor states this is fixed in 2b2fee890250ab647a601124471a334bb01a0790 (fixed)
Vendor states this is fixed in 981fcc5674e67158d24d23e841523eccba19d0e7 (fixed)
Vendor states this is fixed in bbd943d6a2d566428324b516a37f98328dfb802d (fixed)
Vendor states this is fixed in dff07cc98fdf6af57a7c054dc09b2050a9d5c287 (fixed)
Vendor states this is fixed in 6.12.86 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.18.27 (unaffected)
Vendor states this is fixed in 7.0.4 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-667

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card