{"id":"CVE-2026-99737","summary":"mm/shmem: fix truncate loop after boundary swapin failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/shmem: fix truncate loop after boundary swapin failure\n\nIf swapping in a large entry at the new EOF fails, shmem_undo_range()\nleaves the entry in place. Its final scan skips the entry, then restarts\nfrom the same start index and finds it again. Truncation can loop forever\nwhile holding i_rwsem.\n\nAdvance start past the skipped entry so that a restarted scan can finish,\nas we already do for folios that cannot be split.\n\nNote that this does not fix the missing zeroing when boundary swapin fails,\nit merely prevents the endless loop.","modified":"2026-11-20T07:01:03.861763627Z","published":"2026-11-20T05:51:10.519Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99737.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5f1ec2cf92a7d655a8eb39711987822f9b1f9d67"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7f1bbb9c6a8ed3fed72bf7efc906ebe31e92feeb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4d46430852caf5e7dbca1386fc6621ecf8fe2b0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e6e9ba49679e5f33f62615fb57ec103045fbc8f9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99737.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99737"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a99f9a4669a04662c8f9efe0e62cafc598153139"},{"fixed":"7f1bbb9c6a8ed3fed72bf7efc906ebe31e92feeb"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b23bee8cdb7aabce5701a7f57414db5a354ae8ed"},{"fixed":"d4d46430852caf5e7dbca1386fc6621ecf8fe2b0"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8a1968bd997f45a9b11aefeabdd1232e1b6c7184"},{"fixed":"e6e9ba49679e5f33f62615fb57ec103045fbc8f9"},{"fixed":"5f1ec2cf92a7d655a8eb39711987822f9b1f9d67"}]}],"versions":["v6.12.117","v6.12.116","v6.12.115","v6.12.114","v6.12.113","v6.12.112","v6.12.111","v6.12.110","v6.12.109","v6.12.108","v6.12.107","v6.12.106","v6.12.105","v6.12.104","v6.12.103","v6.12.102","v6.12.101","v6.12.100","v6.12.99","v6.12.98","v6.12.97","v6.12.96","v6.12.95","v6.12.94","v6.12.93","v6.12.92","v6.12.91","v6.12.90","v6.12.89","v6.12.88","v6.12.87","v6.12.86","v6.12.85","v6.12.84","v6.12.83","v6.12.82","v6.12.81","v6.12.80","v6.12.79","v6.12.78","v6.12.77","v6.12.76","v6.12.75","v6.12.74","v6.12.73","v6.12.72","v6.12.71","v6.12.70","v6.12.69","v6.18.63","v6.18.62","v6.18.61","v6.18.60","v6.18.59","v6.18.58","v6.18.57","v6.18.56","v6.18.55","v6.18.54","v6.18.53","v6.18.52","v6.18.51","v6.18.50","v6.18.49","v6.18.48","v6.18.47","v6.18.46","v6.18.45","v6.18.44","v6.18.43","v6.18.42","v6.18.41","v6.18.40","v6.18.39","v6.18.38","v6.18.37","v6.18.36","v6.18.35","v6.18.34","v6.18.33","v6.18.32","v6.18.31","v6.18.30","v6.18.29","v6.18.28","v6.18.27","v6.18.26","v6.18.25","v6.18.24","v6.18.23","v6.18.22","v6.18.21","v6.18.20","v6.18.19","v6.18.18","v6.18.17","v6.18.16","v6.18.15","v6.18.14","v6.18.13","v6.18.12","v6.18.11","v6.18.10","v6.18.9"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99737.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.12.69"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.18.9"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99737.json"}}],"schema_version":"1.9.2"}