mm/shmem: fix truncate loop after boundary swapin failure
- CVE-2026-99737
- GHSA-j6fj-j9mc-x39x
- EUVD-2026-130853
Description
In the Linux kernel, the following vulnerability has been resolved: mm/shmem: fix truncate loop after boundary swapin failure If swapping in a large entry at the new EOF fails, shmem_undo_range() leaves the entry in place. Its final scan skips the entry, then restarts from the same start index and finds it again. Truncation can loop forever while holding i_rwsem. Advance start past the skipped entry so that a restarted scan can finish, as we already do for folios that cannot be split. Note that this does not fix the missing zeroing when boundary swapin fails, it merely prevents the endless loop.
Text from the CVE.org record.
Recommendation
Linux
- If you run 6.18.xupdate to 6.18.64 or laterPatch update: breaking changes are unlikely
- If you run 6.12.xupdate to 6.12.118 or laterPatch update: breaking changes are unlikely
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.18.9 to before 6.18.64 6.18.64 from 6.12.69 to before 6.12.118 6.12.118 6.19 none stated before 6.19: not affected none stated from 6.12.118 up to 6.12.*: not affected none stated from 6.18.64 up to 6.18.*: not affected none stated from 7.3.5 up to 7.3.*: not affected none stated from 7.4-rc2 onwards: not affected none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.