cvelo
P4 · InfoEPSS 0.2%

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

  • CVE-2026-138983
  • GHSA-255q-mg7h-83h5
  • EUVD-2026-138735

Description

Show the whole 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().

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run a version from 3.14.33 to before 3.15update to 3.15 or laterMinor version change: check the release notes
    • If you run a version from 3.12.38 to before 3.13update to 3.13 or laterMinor version change: check the release notes
    • If you run a version from 3.10.69 to before 3.11update to 3.11 or laterMinor version change: check the release notes
    • If you run a version from 3.4.107 to before 3.5update to 3.5 or laterMinor version change: check the release notes
    • If you run a version from 3.2.68 to before 3.3update to 3.3 or laterMinor version change: check the release notes

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 3.14.33 to before 3.153.15
    from 3.12.38 to before 3.133.13
    from 3.10.69 to before 3.113.11
    from 3.4.107 to before 3.53.5
    from 3.2.68 to before 3.33.3
    from 3.18.7 to before 3.19none stated
    3.19none stated
    before 3.19: not affectednone stated

    and 8 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.