Security mailing lists by PureSourceCode

CVE-2026-138983

not scored yet

nilfs2: fix deadlock between nilfs_evict_inode() and find_inode()

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().

Published
30 Nov 2026
Last modified
30 Nov 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, < 831b4daf89279319de1f36fa9cf14e5de08a9b56; >= 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, < 96ceee0dcea599a6c4f1e82cc048ddbcbd6e0363; >= 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, < d03eec2032df908aeeef06a0b442537edb1a4d30; >= 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, < 8ec5dd1b933d3e92de7ef6149ccae118bfd35907; >= 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, < ac163d9cbbbcf9e87681e73fbe5adeffeb679a43; >= 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, < 582a0631a00df91e6fc3bbdfc21dfbc77c9bb825; >= 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, < d0613a385afd4891383540edecf5a9072820ed78; >= 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52, < ff1227f70eead8704ecfec69259fb4c041f92cda; = c23f3a9fa7826af0465b9408b186f6b555991890; = 28cd54f27d309bd65db8ff4b8e6275345287484c; = ec7cae16b37ab478d6d7e33e8563b24ca189e6cf; = d26f2dfa556323787ee1ebd5d03aeaa8650c7404; = 52e87609d9d3ea34cadb5676e8ea85d025ac9632; = 7bb9e4a06e12583f1418b669dc45bb3ee84496c6; >= 3.2.68, < 3.3; >= 3.4.107, < 3.5; >= 3.10.69, < 3.11; >= 3.12.38, < 3.13; >= 3.14.33, < 3.15; >= 3.18.7, < 3.19 831b4daf89279319de1f36fa9cf14e5de08a9b56, 96ceee0dcea599a6c4f1e82cc048ddbcbd6e0363, d03eec2032df908aeeef06a0b442537edb1a4d30, 8ec5dd1b933d3e92de7ef6149ccae118bfd35907, ac163d9cbbbcf9e87681e73fbe5adeffeb679a43, 582a0631a00df91e6fc3bbdfc21dfbc77c9bb825, d0613a385afd4891383540edecf5a9072820ed78, ff1227f70eead8704ecfec69259fb4c041f92cda, 3.3, 3.5, 3.11, 3.13, 3.15, 3.19
CVE List Linux Linux = 3.19

References

History

  • 30 Nov 2026 14:45 UTC · NVD: first stored (published 30 Nov 2026)
  • 30 Nov 2026 13:58 UTC · CVE List: first stored (published 30 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.