nilfs2: fix deadlock between nilfs_evict_inode() and find_inode()
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 3.2.68, < 3.3→ 3.3 ≥ 3.4.107, < 3.5→ 3.5 ≥ 3.10.69, < 3.11→ 3.11 ≥ 3.12.38, < 3.13→ 3.13 ≥ 3.14.33, < 3.15→ 3.15 ≥ 3.18.7, < 3.19→ 3.19 ≥ 3.19.0, < 5.10.275→ 5.10.275 ≥ 5.11.0, < 5.15.226→ 5.15.226 ≥ 5.16.0, < 6.1.193→ 6.1.193 ≥ 6.2.0, < 6.6.163→ 6.6.163 ≥ 6.7.0, < 6.12.117→ 6.12.117 ≥ 6.13.0, < 6.18.63→ 6.18.63 +1 more |
3.3 3.5 3.11 3.13 3.15 3.19 5.10.275 5.15.226 6.1.193 6.6.163 6.12.117 6.18.63 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-138983 linux Fix available
- Ubuntu UBUNTU-CVE-2026-138983 linux-xilinx-zynqmp, linux-xilinx, linux-vmware +166 more No fixed version in this record
Original description The description as published by the source.
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix deadlock between nilfs_evict_inode() and find_inode()
Syzbot reported a deadlock between nilfs_evict_inode(), executed via
an asynchronous workqueue (kworker) as:
process_one_work()
process_scheduled_works()
nilfs_iput_work_func()
nilfs_dispose_list()
iput()
iput_final()
evict()
s_op->evict_inode()
nilfs_evict_inode()
and find_inode(), called via
nilfs_mkdir()
nilfs_new_inode()
nilfs_insert_inode_locked()
insert_inode_locked4()
inode_insert5()
find_inode()
When an inode is deleted (i_nlink == 0), nilfs_evict_inode() clears its
ifile bitmap entry and then synchronously triggers the log writer via
nilfs_transaction_commit() if IS_SYNC(inode) is true.
If a concurrent directory creation via nilfs_new_inode() attempts to
allocate the same newly freed inode number, however, find_inode() called
just before inserting it into the inode hash, blocks waiting for the old
inode's evict() to complete.
Meanwhile, the synchronous log writer invoked from nilfs_evict_inode()
tries to acquire a write lock on 'ns_segctor_sem' which is read locked
by the caller of nilfs_new_inode() (in this case, nilfs_mkdir()),
resulting in a deadlock.
The synchronous log writer invocation from nilfs_evict_inode() is a
legacy artifact; it is no longer necessary because the call itself
(triggered…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com