VDB

CVE-2026-98924

CVE-2026-98924 PUBLISHED

fs: avoid repeated scans in evict_inodes()

Reported by linux · Published October 23, 2026

In the Linux kernel, the following vulnerability has been resolved: fs: avoid repeated scans in evict_inodes() We observed hung tasks when users attempted to unmount a filesystem after its disk had been removed while still in use. During device removal, fs_bdev_mark_dead() calls evict_inodes() while holding s_umount. Each time evict_inodes() drops s_inode_list_lock to reschedule, it restarts the walk from the head of s_inodes. With many referenced inodes at the head of the list, these restarts repeatedly scan the same inodes without reclaiming them. This can keep s_umount held for a long time, blocking concurrent umount attempts and triggering hung-task reports. Keep the current inode, already marked I_FREEING, out of the disposal batch until s_inode_list_lock is reacquired. Resume the walk from this inode and dispose of it in a later batch or at the end of the walk. The zero-refcount and state checks under i_lock allow this walker to claim the inode by setting I_FREEING and removing it from the LRU. Other reclaimers skip the inode, leaving this walker responsible for eviction. Only evict() removes it from s_inodes, so keeping it out of the disposal batch ensures that it remains on the list while the lock is dropped. After reacquiring the lock, reading its current next pointer accounts for concurrent removal of following inodes. The existing inode lifetime rules prohibit acquiring a reference to an inode marked I_FREEING or I_WILL_FREE. __iget() requires its caller to hold i_lock and establish that taking a reference is valid. Inode lookup and igrab() check these flags under i_lock when acquiring a reference from zero. ihold() requires an existing reference, which would keep i_count nonzero and prevent this walker from claiming the inode. These rules already allow iput_final() and the inode shrinker to release i_lock after setting I_FREEING and before eviction completes. A temporary __iget() reference would also keep the inode on the list, but its release must preserve last-reference handling. Another user can acquire a reference, update lazy timestamps and drop its reference while the pin is held. If the pin becomes the last reference, dropping it with atomic_dec_and_test() and evicting directly bypasses iput()'s lazytime handling and can lose those timestamp updates. Releasing the pin with iput() preserves that handling, but does not guarantee eviction. fs_bdev_mark_dead() runs with SB_ACTIVE set, so iput() may retain the inode in cache, whereas evict_inodes() must evict eligible zero-reference inodes. The inode may also have been freed when iput() returns, so the walker cannot then use it to force eviction. Using I_FREEING preserves the existing eviction behavior without introducing an additional last-reference transition. The xfstests auto group passed on ext4 and XFS with known unrelated failures excluded. No new issues were observed, and the previously reproducible hung task no longer occurs with this patch.

EPSS 0.19% · 8.1th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.18-modules-extraAmazon Linux1:6.18.56-125.164.amzn2023
kernel6.18-modules-extra-commonAmazon Linux1:6.18.56-125.164.amzn2023
python3-perf6.18Amazon Linux1:6.18.56-125.164.amzn2023
kernel-livepatch-6.18.56-125.164Amazon Linux1:1.0-0.amzn2023
bpftool6.18Amazon Linux1:6.18.56-125.164.amzn2023

Risk scores

EPSS Score
0.19%
8.1th percentile

Affected products

VendorProductVersions
LinuxLinuxac05fbb40062411ea1b722aa2cede7feaa94f1b4, ac05fbb40062411ea1b722aa2cede7feaa94f1b4, ac05fbb40062411ea1b722aa2cede7feaa94f1b4
LinuxLinux4.3, 0, 6.18.55
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023python3-perf6.180
amazon:2023kernel-livepatch-6.18.56-125.1640
amazon:2023bpftool6.180
linuxlinux_kernel4.3, 4.3, 4.3
amazon:2023kernel6.180
amazon:2023perf6.180
amazon:2023kernel6.18-tools-devel0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-tools0
amazon:2023kernel6.18-devel0
LinuxLinux*, 4.3, 0
amazon:2023kernel6.18-headers0

Timeline

  • Oct 23, 2026 Coalition ESS Score
  • Oct 23, 2026 CVE Published
  • Oct 23, 2026 CVE Updated
  • Oct 24, 2026 EPSS Score (5 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-98924
vulnetix vdb fixes CVE-2026-98924

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98924/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›