CVE-2026-99954

medium

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.

References

https://git.kernel.org/stable/c/c61b2125a21e1c5035961fb06718f0af68ffd64c

https://git.kernel.org/stable/c/b3144f1e814353470106a0e4a2b41381c4279d55

https://git.kernel.org/stable/c/a27420a4e7df63570f1630757fba9715fba1ed75

https://git.kernel.org/stable/c/93f2dacedffaa04682412306d6824fc238ab5fa2

https://git.kernel.org/stable/c/8ee09f597763acfd31c62a578ba88b792fc41b24

https://git.kernel.org/stable/c/73cc9975db55ff9567f3f9840627fad73e9eb9d7

https://git.kernel.org/stable/c/6d72e70fe8835de95fa277f016979f297ffa6823

https://git.kernel.org/stable/c/4005fb67dee0cd88b5a1e3f6ef66859bc0517c06

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-138242

Details

Source: Mitre, NVD

Published: 2026-11-30

Updated: 2026-11-30

Risk Information

CVSS v2

Base Score: 4.9

Vector: CVSS2#AV:L/AC:L/Au:N/C:N/I:N/A:C

Severity: Medium

CVSS v3

Base Score: 5.5

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Severity: Medium