{"id":"CVE-2026-138983","aliases":["CVE-2026-138983"],"related":[],"kind":"vulnerability","state":"published","title":"nilfs2: fix deadlock between nilfs_evict_inode() and find_inode()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix deadlock between nilfs_evict_inode() and find_inode()\n\nSyzbot reported a deadlock between nilfs_evict_inode(), executed via\nan asynchronous workqueue (kworker) as:\n\n  process_one_work()\n    process_scheduled_works()\n      nilfs_iput_work_func()\n        nilfs_dispose_list()\n          iput()\n            iput_final()\n              evict()\n                s_op->evict_inode()\n                  nilfs_evict_inode()\n\nand find_inode(), called via\n\n  nilfs_mkdir()\n    nilfs_new_inode()\n      nilfs_insert_inode_locked()\n        insert_inode_locked4()\n          inode_insert5()\n            find_inode()\n\nWhen an inode is deleted (i_nlink == 0), nilfs_evict_inode() clears its\nifile bitmap entry and then synchronously triggers the log writer via\nnilfs_transaction_commit() if IS_SYNC(inode) is true.\n\nIf a concurrent directory creation via nilfs_new_inode() attempts to\nallocate the same newly freed inode number, however, find_inode() called\njust before inserting it into the inode hash, blocks waiting for the old\ninode's evict() to complete.\n\nMeanwhile, the synchronous log writer invoked from nilfs_evict_inode()\ntries to acquire a write lock on 'ns_segctor_sem' which is read locked\nby the caller of nilfs_new_inode() (in this case, nilfs_mkdir()),\nresulting in a deadlock.\n\nThe synchronous log writer invocation from nilfs_evict_inode() is a\nlegacy artifact; it is no longer necessary because the call itself\n(triggered by iput()) is now handled asynchronously with a kworker\nif i_nlink == 0.  It merely increases the risk of deadlock.\n\nFix this deadlock by removing the synchronous log writer trigger from\nnilfs_evict_inode().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix deadlock between nilfs_evict_inode() and find_inode()\n\nSyzbot reported a deadlock between nilfs_evict_inode(), executed via\nan asynchronous workqueue (kworker) as:\n\n  process_one_work()\n    process_scheduled_works()\n      nilfs_iput_work_func()\n        nilfs_dispose_list()\n          iput()\n            iput_final()\n              evict()\n                s_op->evict_inode()\n                  nilfs_evict_inode()\n\nand find_inode(), called via\n\n  nilfs_mkdir()\n    nilfs_new_inode()\n      nilfs_insert_inode_locked()\n        insert_inode_locked4()\n          inode_insert5()\n            find_inode()\n\nWhen an inode is deleted (i_nlink == 0), nilfs_evict_inode() clears its\nifile bitmap entry and then synchronously triggers the log writer via\nnilfs_transaction_commit() if IS_SYNC(inode) is true.\n\nIf a concurrent directory creation via nilfs_new_inode() attempts to\nallocate the same newly freed inode number, however, find_inode() called\njust before inserting it into the inode hash, blocks waiting for the old\ninode's evict() to complete.\n\nMeanwhile, the synchronous log writer invoked from nilfs_evict_inode()\ntries to acquire a write lock on 'ns_segctor_sem' which is read locked\nby the caller of nilfs_new_inode() (in this case, nilfs_mkdir()),\nresulting in a deadlock.\n\nThe synchronous log writer invocation from nilfs_evict_inode() is a\nlegacy artifact; it is no longer necessary because the call itself\n(triggered by iput()) is now handled asynchronously with a kworker\nif i_nlink == 0.  It merely increases the risk of deadlock.\n\nFix this deadlock by removing the synchronous log writer trigger from\nnilfs_evict_inode().","source":"cvelist"}],"published":"2026-11-30T13:26:47.551Z","modified":"2026-11-30T14:18:00.613Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52","fixed":"831b4daf89279319de1f36fa9cf14e5de08a9b56","status":"affected"},{"type":"git","introduced":"7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52","fixed":"96ceee0dcea599a6c4f1e82cc048ddbcbd6e0363","status":"affected"},{"type":"git","introduced":"7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52","fixed":"d03eec2032df908aeeef06a0b442537edb1a4d30","status":"affected"},{"type":"git","introduced":"7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52","fixed":"8ec5dd1b933d3e92de7ef6149ccae118bfd35907","status":"affected"},{"type":"git","introduced":"7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52","fixed":"ac163d9cbbbcf9e87681e73fbe5adeffeb679a43","status":"affected"},{"type":"git","introduced":"7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52","fixed":"582a0631a00df91e6fc3bbdfc21dfbc77c9bb825","status":"affected"},{"type":"git","introduced":"7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52","fixed":"d0613a385afd4891383540edecf5a9072820ed78","status":"affected"},{"type":"git","introduced":"7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52","fixed":"ff1227f70eead8704ecfec69259fb4c041f92cda","status":"affected"},{"type":"git","version":"c23f3a9fa7826af0465b9408b186f6b555991890","status":"affected"},{"type":"git","version":"28cd54f27d309bd65db8ff4b8e6275345287484c","status":"affected"},{"type":"git","version":"ec7cae16b37ab478d6d7e33e8563b24ca189e6cf","status":"affected"},{"type":"git","version":"d26f2dfa556323787ee1ebd5d03aeaa8650c7404","status":"affected"},{"type":"git","version":"52e87609d9d3ea34cadb5676e8ea85d025ac9632","status":"affected"},{"type":"git","version":"7bb9e4a06e12583f1418b669dc45bb3ee84496c6","status":"affected"},{"type":"semver","introduced":"3.2.68","fixed":"3.3","status":"affected"},{"type":"semver","introduced":"3.4.107","fixed":"3.5","status":"affected"},{"type":"semver","introduced":"3.10.69","fixed":"3.11","status":"affected"},{"type":"semver","introduced":"3.12.38","fixed":"3.13","status":"affected"},{"type":"semver","introduced":"3.14.33","fixed":"3.15","status":"affected"},{"type":"semver","introduced":"3.18.7","fixed":"3.19","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.19","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/831b4daf89279319de1f36fa9cf14e5de08a9b56","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/96ceee0dcea599a6c4f1e82cc048ddbcbd6e0363","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d03eec2032df908aeeef06a0b442537edb1a4d30","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ec5dd1b933d3e92de7ef6149ccae118bfd35907","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac163d9cbbbcf9e87681e73fbe5adeffeb679a43","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/582a0631a00df91e6fc3bbdfc21dfbc77c9bb825","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d0613a385afd4891383540edecf5a9072820ed78","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ff1227f70eead8704ecfec69259fb4c041f92cda","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138983","url":"https://www.cve.org/CVERecord?id=CVE-2026-138983","licence":"CVE Terms of Use","modified":"2026-11-30T13:26:47.551Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138983","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138983","licence":"Public domain","modified":"2026-11-30T14:18:00.613Z"}],"updatedAt":"2026-11-30T14:32:28.261Z","epss":{"score":0.00211,"percentile":0.12001,"date":"2026-12-01T12:00:22.000Z"}}