{"id":"DEBIAN-CVE-2026-99739","aliases":[],"title":null,"originalDescription":"In the Linux kernel, the following vulnerability has been resolved: mm/shmem: fix truncate hang in large swap entry Truncating a tmpfs file or memfd to a page-aligned size inside a large swap entry can loop indefinitely in shmem_undo_range(). The task holds the inode lock and cannot be killed. A large swap entry represents a whole swapped-out folio. For example, truncate a file whose pages 0-7 share one swap entry to four pages: [ 0 1 2 3 | 4 5 6 7 ] keep | discard ^ new EOF, start = 4 i_size has already been updated when boundary handling asks shmem_get_partial_folio() for page 4. Since it is swapped out, the helper calls shmem_get_folio() with SGP_READ. That rejects page 4 with -EINVAL because its starting offset equals i_size. Nothing is read back. The final scan cannot free the entry without losing pages 0-3. It skips it, restarts from start = 4, and finds it again indefinitely. An unaligned truncate avoids this particular failure because the requested page starts below i_size. Folios already in the page-cache cannot trigger it as the direct lookup will return them beyond EOF. Fix it by letting shmem_get_partial_folio() call shmem_swapin_folio() directly for swap entries. This ","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[{"ecosystem":"Debian:12","name":"linux-6.12","range":">=0, <6.12.118-1~deb12u1","fixed":"6.12.118-1~deb12u1"},{"ecosystem":"Debian:13","name":"linux","range":">=0, <6.12.118-1","fixed":"6.12.118-1"},{"ecosystem":"Debian:14","name":"linux","range":">=0, <7.3.5-1","fixed":"7.3.5-1"}],"references":[{"url":"https://security-tracker.debian.org/tracker/CVE-2026-99739","type":"advisory"}],"sources":[{"name":"osv","at":"2026-12-02T19:11:53.905Z","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-99739","license":"CC-BY 4.0","firstSeenAt":"2026-11-21T05:04:14.253Z"}],"firstSeenAt":"2026-11-21T05:04:14.253Z","publishedAt":"2026-11-20T06:18:11.590Z","modifiedAt":"2026-12-02T19:00:38.589Z"}