fs: rotate inodes whose page cache could not be dropped
- CVE-2026-99954
- GHSA-88h8-4rrv-h7vf
- EUVD-2026-138242
Description
In the Linux kernel, the following vulnerability has been resolved: fs: rotate inodes whose page cache could not be dropped When inode_lru_isolate() drops the page cache of an unused inode, it has to unlock the list, so it returns LRU_RETRY and the walk restarts at the head of the list, where the inode still is. If invalidate_mapping_pages() could not empty the mapping, the restarted walk strips the same inode again, and so on until nr_to_walk runs out. Every walk of that list then ends on this inode, and nothing behind it is reclaimed for as long as its cache stays. Before commit 2a0629834cd8 ("vfs: Don't evict inode under the inode lru traversing context") the walker pinned the inode with a reference, and dropping it in iput_final() set I_REFERENCED, so the restarted walk rotated the inode to the tail. Set I_REFERENCED again when the mapping is still populated after the invalidation, in the same i_lock section that clears I_LRU_ISOLATING. inode_unpin_lru_isolating() now expects i_lock to be held, like inode_pin_lru_isolating(). On CONFIG_HIGHMEM kernels this can happen to any unused inode: a folio is left behind if it is locked, under writeback, spliced into a pipe, or still in another CPU's LRU-add batch after being read. Without HIGHMEM it happens to DAX inodes whose only entry is at index 0, which mapping_shrinkable() lets onto the LRU and invalidate_mapping_pages() never removes.
Text from the CVE.org record.
Recommendation
Linux
- If you run 6.6.xupdate to 6.6.163 or laterPatch update: breaking changes are unlikely
- If you run 6.1.xupdate to 6.1.193 or laterPatch update: breaking changes are unlikely
- If you run 5.15.xupdate to 5.15.226 or laterPatch update: breaking changes are unlikely
- If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely
- If you run a version from 5.4.283 to before 5.5update to 5.5 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 versions Fixed in from 6.6.48 to before 6.6.163 6.6.163 from 6.1.107 to before 6.1.193 6.1.193 from 5.15.166 to before 5.15.226 5.15.226 from 5.10.225 to before 5.10.275 5.10.275 from 5.4.283 to before 5.5 5.5 from 6.10.7 to before 6.11 none stated 6.11 none stated before 6.11: not affected none stated and 8 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.