CVE-2026-138983
nilfs2: fix deadlock between nilfs_evict_inode() and find_inode()
Check your servers for CVE-2026-138983
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138983 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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 by iput()) is now handled asynchronously with a kworker if i_nlink == 0. It merely increases the risk of deadlock.
Fix this deadlock by removing the synchronous log writer trigger from nilfs_evict_inode().
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before 831b4daf89279319de1f36fa9cf14e5de08a9b56 affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before 96ceee0dcea599a6c4f1e82cc048ddbcbd6e0363 affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before d03eec2032df908aeeef06a0b442537edb1a4d30 affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before 8ec5dd1b933d3e92de7ef6149ccae118bfd35907 affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before ac163d9cbbbcf9e87681e73fbe5adeffeb679a43 affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before 582a0631a00df91e6fc3bbdfc21dfbc77c9bb825 affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before d0613a385afd4891383540edecf5a9072820ed78 affected from 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, before ff1227f70eead8704ecfec69259fb4c041f92cda affected c23f3a9fa7826af0465b9408b186f6b555991890 affected 28cd54f27d309bd65db8ff4b8e6275345287484c affected ec7cae16b37ab478d6d7e33e8563b24ca189e6cf affected d26f2dfa556323787ee1ebd5d03aeaa8650c7404 affected 52e87609d9d3ea34cadb5676e8ea85d025ac9632 affected 7bb9e4a06e12583f1418b669dc45bb3ee84496c6 affected from 3.2.68, before 3.3 affected from 3.4.107, before 3.5 affected from 3.10.69, before 3.11 affected from 3.12.38, before 3.13 affected from 3.14.33, before 3.15 affected from 3.18.7, before 3.19
Other versions: unaffected
|
| Linux |
affected 3.19 unaffected before 3.19 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138983 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138983
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-138983
trivy image --scanners vuln IMAGE | grep CVE-2026-138983
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/831b4daf89279319de1f36fa9cf14e5de08a9b56 git.kernel.org
- https://git.kernel.org/stable/c/96ceee0dcea599a6c4f1e82cc048ddbcbd6e0363 git.kernel.org
- https://git.kernel.org/stable/c/d03eec2032df908aeeef06a0b442537edb1a4d30 git.kernel.org
- https://git.kernel.org/stable/c/8ec5dd1b933d3e92de7ef6149ccae118bfd35907 git.kernel.org
- https://git.kernel.org/stable/c/ac163d9cbbbcf9e87681e73fbe5adeffeb679a43 git.kernel.org
- https://git.kernel.org/stable/c/582a0631a00df91e6fc3bbdfc21dfbc77c9bb825 git.kernel.org
- https://git.kernel.org/stable/c/d0613a385afd4891383540edecf5a9072820ed78 git.kernel.org
- https://git.kernel.org/stable/c/ff1227f70eead8704ecfec69259fb4c041f92cda git.kernel.org
Source: the record CVE-2026-138983 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse