{"id":"CVE-2026-138873","aliases":["CVE-2026-138873"],"related":[],"kind":"vulnerability","state":"published","title":"ext4: fix ABBA deadlock in ext4_rmdir()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix ABBA deadlock in ext4_rmdir()\n\nWe observe the following ABBA deadlock (casefolding enabled):\n\n INFO: task jbd2/dm-13-8:447 blocked for more than 720 seconds.\n task:jbd2/dm-13-8    state:D stack:0     pid:447   tgid:447   ppid:2\n Call Trace:\n  <TASK>\n  __schedule+0xc2c/0xe60\n  schedule+0x40/0xe0\n  jbd2_journal_wait_updates+0x8f/0xf0\n  jbd2_journal_commit_transaction+0x321/0x1850\n  kjournald2+0xa9/0x230\n  kthread+0x226/0x2a0\n  ret_from_fork+0x101/0x1e0\n  ret_from_fork_asm+0x1a/0x30\n\n INFO: task Thread-10:4161 blocked for more than 720 seconds.\n task:Thread-10       state:D stack:0     pid:4161  tgid:3848  ppid:540\n Call Trace:\n  <TASK>\n  __schedule+0xc2c/0xe60\n  schedule+0x40/0xe0\n  wait_transaction_locked+0x8c/0xd0\n  start_this_handle+0x252/0x870\n  jbd2__journal_start+0x120/0x280\n  __ext4_journal_start_sb+0x11a/0x250\n  ext4_evict_inode+0x208/0x760\n  iput+0x222/0x5c0\n  dput+0x293/0x690\n  ____fput+0x145/0x2b0\n  task_work_run+0x7a/0xb0\n  exit_to_user_mode_loop+0xc0/0xd0\n  do_syscall_64+0x14b/0xf10\n  entry_SYSCALL_64_after_hwframe+0x76/0x7e\n\n NMI backtrace for cpu 0\n CPU: 0 UID: 1010216 PID: 4160 Comm: Thread-7\n RIP: 0010:d_walk+0x0/0x290\n[..]\n Call Trace:\n <TASK>\n  shrink_dcache_parent+0xb2/0x100\n  d_invalidate+0x50/0x110\n  ext4_rmdir+0x3a2/0x3d0\n  vfs_rmdir+0x9d/0x1d0\n  do_rmdir+0xf0/0x330\n  __x64_sys_unlinkat+0x34/0x50\n  do_syscall_64+0x61/0xf10\n\nThe problem is that ext4_rmdir() calls d_invalidate() before stopping\nthe jbd2 transaction handle.  Because d_invalidate() traverses child\ndentries it can encounter dying or in-use dentries.  If a concurrent\nthread executing __dentry_kill() on a child dentry invokes ext4_evict_inode(),\nit requests a new transaction handle via ext4_journal_start(), which\nwaits for all running handles to close.  However, the thread executing\next4_rmdir() still holds its active transaction handle while looping\nin shrink_dcache_parent() waiting for the dying child dentry to complete\neviction.\n\nStop transaction handle in ext4_rmdir() before calling d_invalidate().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix ABBA deadlock in ext4_rmdir()\n\nWe observe the following ABBA deadlock (casefolding enabled):\n\n INFO: task jbd2/dm-13-8:447 blocked for more than 720 seconds.\n task:jbd2/dm-13-8    state:D stack:0     pid:447   tgid:447   ppid:2\n Call Trace:\n  <TASK>\n  __schedule+0xc2c/0xe60\n  schedule+0x40/0xe0\n  jbd2_journal_wait_updates+0x8f/0xf0\n  jbd2_journal_commit_transaction+0x321/0x1850\n  kjournald2+0xa9/0x230\n  kthread+0x226/0x2a0\n  ret_from_fork+0x101/0x1e0\n  ret_from_fork_asm+0x1a/0x30\n\n INFO: task Thread-10:4161 blocked for more than 720 seconds.\n task:Thread-10       state:D stack:0     pid:4161  tgid:3848  ppid:540\n Call Trace:\n  <TASK>\n  __schedule+0xc2c/0xe60\n  schedule+0x40/0xe0\n  wait_transaction_locked+0x8c/0xd0\n  start_this_handle+0x252/0x870\n  jbd2__journal_start+0x120/0x280\n  __ext4_journal_start_sb+0x11a/0x250\n  ext4_evict_inode+0x208/0x760\n  iput+0x222/0x5c0\n  dput+0x293/0x690\n  ____fput+0x145/0x2b0\n  task_work_run+0x7a/0xb0\n  exit_to_user_mode_loop+0xc0/0xd0\n  do_syscall_64+0x14b/0xf10\n  entry_SYSCALL_64_after_hwframe+0x76/0x7e\n\n NMI backtrace for cpu 0\n CPU: 0 UID: 1010216 PID: 4160 Comm: Thread-7\n RIP: 0010:d_walk+0x0/0x290\n[..]\n Call Trace:\n <TASK>\n  shrink_dcache_parent+0xb2/0x100\n  d_invalidate+0x50/0x110\n  ext4_rmdir+0x3a2/0x3d0\n  vfs_rmdir+0x9d/0x1d0\n  do_rmdir+0xf0/0x330\n  __x64_sys_unlinkat+0x34/0x50\n  do_syscall_64+0x61/0xf10\n\nThe problem is that ext4_rmdir() calls d_invalidate() before stopping\nthe jbd2 transaction handle.  Because d_invalidate() traverses child\ndentries it can encounter dying or in-use dentries.  If a concurrent\nthread executing __dentry_kill() on a child dentry invokes ext4_evict_inode(),\nit requests a new transaction handle via ext4_journal_start(), which\nwaits for all running handles to close.  However, the thread executing\next4_rmdir() still holds its active transaction handle while looping\nin shrink_dcache_parent() waiting for the dying child dentry to complete\neviction.\n\nStop transaction handle in ext4_rmdir() before calling d_invalidate().","source":"cvelist"}],"published":"2026-11-30T13:25:47.182Z","modified":"2026-11-30T14:17:44.140Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b886ee3e778ec2ad43e276fd378ab492cf6819b7","fixed":"5f972f5bd870b9d95df00321543a2ca1984d6226","status":"affected"},{"type":"git","introduced":"b886ee3e778ec2ad43e276fd378ab492cf6819b7","fixed":"3c8d5447b439d1182bdaf37582fea1e474462fe9","status":"affected"},{"type":"git","introduced":"b886ee3e778ec2ad43e276fd378ab492cf6819b7","fixed":"89f79fbeada9b3ac90da8f7ccb377dac10025227","status":"affected"},{"type":"git","introduced":"b886ee3e778ec2ad43e276fd378ab492cf6819b7","fixed":"441ad574bd2bcc906f33f53c014f1d7ad625542b","status":"affected"},{"type":"git","introduced":"b886ee3e778ec2ad43e276fd378ab492cf6819b7","fixed":"e1e121346bc897f00254b0d6fb9e75faa9af5484","status":"affected"},{"type":"git","introduced":"b886ee3e778ec2ad43e276fd378ab492cf6819b7","fixed":"eb69dba4610f68465b95c1045716580f42f8c8ba","status":"affected"},{"type":"git","introduced":"b886ee3e778ec2ad43e276fd378ab492cf6819b7","fixed":"6a6a991a34ec7dc58fa3d5ba1190978dbe9c45aa","status":"affected"},{"type":"git","introduced":"b886ee3e778ec2ad43e276fd378ab492cf6819b7","fixed":"19e16597f9baf1b5719a3a6c710486446f6808fd","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5f972f5bd870b9d95df00321543a2ca1984d6226","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c8d5447b439d1182bdaf37582fea1e474462fe9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89f79fbeada9b3ac90da8f7ccb377dac10025227","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/441ad574bd2bcc906f33f53c014f1d7ad625542b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e1e121346bc897f00254b0d6fb9e75faa9af5484","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb69dba4610f68465b95c1045716580f42f8c8ba","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6a6a991a34ec7dc58fa3d5ba1190978dbe9c45aa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/19e16597f9baf1b5719a3a6c710486446f6808fd","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138873","url":"https://www.cve.org/CVERecord?id=CVE-2026-138873","licence":"CVE Terms of Use","modified":"2026-11-30T13:25:47.182Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138873","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138873","licence":"Public domain","modified":"2026-11-30T14:17:44.140Z"}],"updatedAt":"2026-11-30T14:32:24.796Z","epss":{"score":0.0022,"percentile":0.13415,"date":"2026-12-01T12:00:22.000Z"}}