Description
In the Linux kernel, the following vulnerability has been resolved:
ext4: fix ABBA deadlock in ext4_rmdir()
We observe the following ABBA deadlock (casefolding enabled):
INFO: task jbd2/dm-13-8:447 blocked for more than 720 seconds.
task:jbd2/dm-13-8 state:D stack:0 pid:447 tgid:447 ppid:2
Call Trace:
<TASK>
__schedule+0xc2c/0xe60
schedule+0x40/0xe0
jbd2_journal_wait_updates+0x8f/0xf0
jbd2_journal_commit_transaction+0x321/0x1850
kjournald2+0xa9/0x230
kthread+0x226/0x2a0
ret_from_fork+0x101/0x1e0
ret_from_fork_asm+0x1a/0x30
INFO: task Thread-10:4161 blocked for more than 720 seconds.
task:Thread-10 state:D stack:0 pid:4161 tgid:3848 ppid:540
Call Trace:
<TASK>
__schedule+0xc2c/0xe60
schedule+0x40/0xe0
wait_transaction_locked+0x8c/0xd0
start_this_handle+0x252/0x870
jbd2__journal_start+0x120/0x280
__ext4_journal_start_sb+0x11a/0x250
ext4_evict_inode+0x208/0x760
iput+0x222/0x5c0
dput+0x293/0x690
____fput+0x145/0x2b0
task_work_run+0x7a/0xb0
exit_to_user_mode_loop+0xc0/0xd0
do_syscall_64+0x14b/0xf10
entry_SYSCALL_64_after_hwframe+0x76/0x7e
NMI backtrace for cpu 0
CPU: 0 UID: 1010216 PID: 4160 Comm: Thread-7
RIP: 0010:d_walk+0x0/0x290
[..]
Call Trace:
<TASK>
shrink_dcache_parent+0xb2/0x100
d_invalidate+0x50/0x110
ext4_rmdir+0x3a2/0x3d0
vfs_rmdir+0x9d/0x1d0
do_rmdir+0xf0/0x330
__x64_sys_unlinkat+0x34/0x50
do_syscall_64+0x61/0xf10
The problem is that ext4_rmdir() calls d_invalidate() before stopping
the jbd2 transaction handle. Because d_invalidate() traverses child
dentries it can encounter dying or in-use dentries. If a concurrent
thread executing __dentry_kill() on a child dentry invokes ext4_evict_inode(),
it requests a new transaction handle via ext4_journal_start(), which
waits for all running handles to close. However, the thread executing
ext4_rmdir() still holds its active transaction handle while looping
in shrink_dcache_parent() waiting for the dying child dentry to complete
eviction.
Stop transaction handle in ext4_rmdir() before calling d_invalidate().
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | patch: 6.12.117 | — |
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | b886ee3e778ec2ad43e276fd378ab492cf6819b7 <3c8d5447b439d1182bdaf37582fea1e474462fe9 | — |
| Linux | Linux | b886ee3e778ec2ad43e276fd378ab492cf6819b7 <5f972f5bd870b9d95df00321543a2ca1984d6226 | — |
| Linux | Linux | b886ee3e778ec2ad43e276fd378ab492cf6819b7 <19e16597f9baf1b5719a3a6c710486446f6808fd | — |
| Linux | Linux | patch: 0 | — |
| Linux | Linux | b886ee3e778ec2ad43e276fd378ab492cf6819b7 <eb69dba4610f68465b95c1045716580f42f8c8ba | — |
| Linux | Linux | b886ee3e778ec2ad43e276fd378ab492cf6819b7 <6a6a991a34ec7dc58fa3d5ba1190978dbe9c45aa | — |
| Linux | Linux | b886ee3e778ec2ad43e276fd378ab492cf6819b7 <441ad574bd2bcc906f33f53c014f1d7ad625542b | — |
| Linux | Linux | b886ee3e778ec2ad43e276fd378ab492cf6819b7 <89f79fbeada9b3ac90da8f7ccb377dac10025227 | — |
| Linux | Linux | patch: 5.10.275 | — |
| Linux | Linux | patch: 5.15.226 | — |
| Linux | Linux | patch: 6.18.63 | — |
| Linux | Linux | 5.2 | — |
| Linux | Linux | b886ee3e778ec2ad43e276fd378ab492cf6819b7 <e1e121346bc897f00254b0d6fb9e75faa9af5484 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 7.3.4-1 | — |
| Debian 13 | linux | 6.12.117-1 | — |
| Debian 12 | linux | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.10 | linux +8 | No fix yet | — |
| Ubuntu 26.04 LTS | linux +14 | No fix yet | — |
| Ubuntu 24.04 LTS | linux +52 | No fix yet | — |
Show 19 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | linux +59 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux +3 | No fix yet | — |
Advisories 1
- WID-SEC-2026-4889 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 30, 2026
References
- https://git.kernel.org/stable/c/5f972f5bd870b9d95df00321543a2ca1984d6226
- https://git.kernel.org/stable/c/3c8d5447b439d1182bdaf37582fea1e474462fe9
- https://git.kernel.org/stable/c/89f79fbeada9b3ac90da8f7ccb377dac10025227
- https://git.kernel.org/stable/c/441ad574bd2bcc906f33f53c014f1d7ad625542b
- https://git.kernel.org/stable/c/e1e121346bc897f00254b0d6fb9e75faa9af5484
- https://git.kernel.org/stable/c/eb69dba4610f68465b95c1045716580f42f8c8ba
- https://git.kernel.org/stable/c/6a6a991a34ec7dc58fa3d5ba1190978dbe9c45aa
- https://git.kernel.org/stable/c/19e16597f9baf1b5719a3a6c710486446f6808fd