{"id":"CVE-2026-99705","aliases":["DEBIAN-CVE-2026-99705"],"summary":"mm: memory: fix truncation removing mapped folios","published_at":"2026-11-20T05:50:46.263Z","modified_at":"2026-11-20T11:12:55Z","products":[{"slug":"linux-kernel","name":"Linux Kernel","category":"linux"},{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"medium","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","attack_path":"local","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"priority":6,"record_count":4,"vendors":["Red Hat","Debian"],"details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: memory: fix truncation removing mapped folios\n\nAyush reported an issue that shmem/tmpfs folios are still mapped when\ntruncating them on production:\n\"\nBUG: Bad page cache in process ...  pfn:...\npage dumped because: still mapped when deleted\n\"\n\nI reproduced the issue with Ayush's reproducer [1] with the latest\nmm-unstable branch, and I got the following crash info.  From the dump\nmessage, we can see that truncate_inode_folio() is really trying to remove\nmapped folios, which is incorrect.\n\n\"\n[  189.171977] page: refcount:3 mapcount:1 mapping:00000000fe168ee1\nindex:0x3880 pfn:0x191647\n[  189.171995] memcg:ffff0000cc073d40\n[  189.171997] aops:shmem_aops ino:3c01 dentry name(?):\"memfd:runsc-memory\"\n[  189.172006] flags: 0x17fffef0002022d(locked|referenced|uptodate|lru|\nworkingset|swapbacked|node=0|zone=2|lastcpupid=0x3ffff)\n.......\n[  189.172017] page dumped because: VM_BUG_ON_FOLIO(folio_mapped(folio))\n[  189.172026] ------------[ cut here ]------------\n[  189.172027] kernel BUG at mm/filemap.c:155!\n[  189.172057] Internal error: Oops - BUG: 00000000f2000800 [#1]  SMP\n.......\n[  189.177721] CPU: 3 UID: 0 PID: 5521 Comm: repro Kdump: loaded Tainted:\n7.3.0-rc4+ #277 PREEMPT(lazy)\n.......\n[  189.183986] Call trace:\n[  189.184124]  filemap_unaccount_folio+0xf0/0x1e8 (P)\n[  189.184391]  __filemap_remove_folio+0x34/0x160\n[  189.184633]  filemap_remove_folio+0x4c/0xb0\n[  189.184859]  truncate_inode_folio+0x34/0x58\n[  189.185087]  shmem_undo_range+0x220/0x658\n[  189.185308]  shmem_fallocate+0x2f0/0x470\n[  189.185527]  vfs_fallocate+0x128/0x328\n......\n[  189.187078]  el0t_64_sync+0x184/0x188\n\"\n\nAfter analysis, I believe the race exists between truncation and\nMADV_DONTNEED, and shmem's ->map_pages() merely makes the issue easier to\nreproduce.  Since MADV_DONTNEED synchronously releases the pagetable page\nbefore calling tlb_flush_rmaps(), this could cause another thread's\ntruncation to skip zap_pte_range() (due to pmd is none) but still observe\nthe folio's mapcount as non-zero.  A possible race scenario is as follows:\n\nCPU 0                           CPU 1\nshmem_fallocate                 madvise_dontneed_single_vma\n  unmap_mapping_range            .......\n  ......\n  (filemap_map_pages() remap folios)\n\t\t\t\t  zap_pte_range\n  truncate_inode_folio\t\t    zap_empty_pte_table(pmd clear)\n    unmap_mapping_folio\n    ......\n      zap_pmd_range (saw pmd none, skip)\n\n  filemap_remove_folio\n    BUG_ON(folio_mapped)\n                                    tlb_flush_rmaps(remove rmaps)\n\nTo fix this issue, we should move the pmd clear operation (via\nzap_empty_pte_table()) to after tlb_flush_rmaps() and use\nsync_with_folio_pmd_zap() to sync with concurrent zapping, so that when we\nfind a pmd_none() while unmapping a folio without holding the PTL, the\nfolio's mappings are guaranteed to have been removed via\ntlb_flush_rmaps().\n\nMeanwhile move the second pmd_none() check to where it belongs: if\nsplitting zapped the PMD.","affected_stack":[{"ecosystem":"Debian:14","package":"linux","purl":"pkg:deb/debian/linux?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.12.100-1","6.12.101-1","6.12.105-1","6.12.107-1","6.12.111-1","6.12.113-1","6.12.115-1","6.12.115-2","6.12.116-1","6.12.117-1","6.12.38-1","6.12.41-1","6.12.43-1","6.12.43-1~bpo12+1","6.12.48-1","6.12.57-1","6.12.57-1~bpo12+1","6.12.63-1","6.12.63-1~bpo12+1","6.12.69-1","6.12.69-1~bpo12+1","6.12.73-1","6.12.73-1~bpo12+1","6.12.74-1","6.12.74-2","6.12.74-2~bpo12+1","6.12.85-1","6.12.85-1~bpo12+1","6.12.86-1","6.12.86-1~bpo12+1","6.12.88-1","6.12.88-1~bpo12+1","6.12.90-1","6.12.90-1~bpo12+1","6.12.90-2","6.12.90-2~bpo12+1","6.12.94-1","6.12.94-1~bpo12+1","6.12.95-1","6.12.95-1~bpo12+1","6.12.96-1","6.13.10-1~exp1","6.13.11-1~exp1","6.13.2-1~exp1","6.13.3-1~exp1","6.13.4-1~exp1","6.13.5-1~exp1","6.13.6-1~exp1","6.13.7-1~exp1","6.13.8-1~exp1","6.13.9-1~exp1","6.13~rc6-1~exp1","6.13~rc7-1~exp1","6.14.3-1~exp1","6.14.5-1~exp1","6.14.6-1~exp1","6.15-1~exp1","6.15.1-1~exp1","6.15.2-1~exp1","6.15.3-1~exp1","6.15.4-1~exp1","6.15.5-1~exp1","6.15.6-1~exp1","6.15~rc7-1~exp1","6.16-1~exp1","6.16.1-1~exp1","6.16.10-1","6.16.11-1","6.16.12-1","6.16.12-1~bpo13+1","6.16.12-2","6.16.3-1","6.16.3-1~bpo13+1","6.16.5-1","6.16.6-1","6.16.7-1","6.16.8-1","6.16.9-1","6.16~rc7-1~exp1","6.17.10-1","6.17.11-1","6.17.12-1","6.17.13-1","6.17.13-1~bpo13+1","6.17.2-1~exp1","6.17.5-1~exp1","6.17.6-1","6.17.7-1","6.17.7-2","6.17.8-1","6.17.8-1~bpo13+1","6.17.9-1","6.18.1-1~exp1","6.18.10-1","6.18.12-1","6.18.12-1~bpo13+1","6.18.13-1","6.18.14-1","6.18.15-1","6.18.15-1~bpo13+1","6.18.2-1~exp1","6.18.3-1","6.18.5-1","6.18.5-1~bpo13+1","6.18.8-1","6.18.9-1","6.18.9-1~bpo13+1","6.18~rc4-1~exp1","6.18~rc4-1~exp2","6.18~rc5-1~exp1","6.18~rc6-1~exp1","6.18~rc7-1~exp1","6.19-1~exp1","6.19.10-1","6.19.10-1~bpo13+1","6.19.11-1","6.19.11-1~bpo13+1","6.19.12-1","6.19.13-1","6.19.13-1~bpo13+1","6.19.14-1","6.19.14-1~bpo13+1","6.19.2-1~exp1","6.19.3-1~exp1","6.19.4-1~exp1","6.19.5-1~exp1","6.19.6-1","6.19.6-2","6.19.6-2~bpo13+1","6.19.8-1","6.19.8-1~bpo13+1","6.19~rc4-1~exp1","6.19~rc5-1~exp1","6.19~rc6-1~exp1","6.19~rc7-1~exp1","6.19~rc8-1~exp1","7.0-1~exp1","7.0.1-1~exp1","7.0.10-1","7.0.10-1~bpo13+1","7.0.12-1","7.0.12-2","7.0.12-2~bpo13+1","7.0.13-1","7.0.13-1~bpo13+1","7.0.14-1","7.0.3-1","7.0.4-1","7.0.4-1~bpo13+1","7.0.7-1","7.0.7-1~bpo13+1","7.0.9-1","7.0.9-1~bpo13+1","7.1.1-1~exp1","7.1.10-1","7.1.12-1","7.1.13-1","7.1.13-1~bpo13+1","7.1.2-1~exp1","7.1.3-1","7.1.3-1+sunvdc","7.1.3-1~bpo13+1","7.1.4-1","7.1.5-1","7.1.6-1","7.1.7-1","7.1.7-1~bpo13+1","7.1.8-1","7.1.8-1~bpo13+1","7.1.8-2","7.1.9-1","7.1.9-1+sparc64","7.1~rc2-1~exp1","7.1~rc3-1~exp1","7.1~rc4-1~exp1","7.1~rc4-1~exp2","7.1~rc5-1~exp1","7.1~rc7-1~exp1","7.2.10-1","7.2.11-1","7.2.11-1~bpo13+1","7.2.12-1","7.2.12-1~bpo13+1","7.2.13-1","7.2.14-1","7.2.15-1","7.2.2-1~exp1","7.2.3-1~exp1","7.2.6-1","7.2.6-1~bpo13+1","7.2.7-1","7.2.8-1","7.2.9-1","7.2.9-1~bpo13+1","7.2~rc3-1~exp1","7.2~rc5-1~exp1","7.2~rc7-1~exp1","7.3.1-1~exp1","7.3.3-1","7.3.4-1","7.3.4-1~bpo13+1","7.3.5-1","7.3~rc6-1~exp1","7.3~rc7-1~exp1"],"provider":"osv","source":"DEBIAN-CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:10","package":"kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-abi-whitelists","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-bootwrapper","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-debug","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-debug-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-firmware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-headers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-kdump","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-kdump-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"perf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"python-perf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"Linux/Linux","ranges":[{"type":"GIT","events":[{"introduced":"6375e95f381e3dc85065b6f74263a61522736203"},{"fixed":"8011e987026b65f59ea6b6082c777807a008b227"}]},{"type":"GIT","events":[{"introduced":"6375e95f381e3dc85065b6f74263a61522736203"},{"fixed":"b57cfd4da476a4636bf1ed69dee176cc266e5a06"}]},{"type":"GIT","events":[{"introduced":"6375e95f381e3dc85065b6f74263a61522736203"},{"fixed":"243cf1f67b365668389832463fc31cbb9fec47af"}]}],"provider":"cvelistv5","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"CVE","package":"Linux/Linux","versions":["6.14"],"provider":"cvelistv5","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Linux","package":"Kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.14.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"fixed":["6.18.64","7.3.5"],"provider":"osv","source":"CVE-2026-99705","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","cpe":"cpe:/a:redhat:enterprise_linux:10","status":"affected","packages":["kernel"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","cpe":"cpe:/o:redhat:rhel_els:6","status":"affected","packages":["kernel","kernel-abi-whitelists","kernel-bootwrapper","kernel-debug","kernel-debug-devel","kernel-devel","kernel-doc","kernel-firmware","kernel-headers","kernel-kdump","kernel-kdump-devel","perf","python-perf"],"package_count":13,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","cpe":"cpe:/o:redhat:rhel_els:7","status":"not_affected","packages":["bpftool","kernel","kernel-abi-whitelists","kernel-bootwrapper","kernel-debug","kernel-debug-devel","kernel-devel","kernel-doc","kernel-headers","kernel-kdump","kernel-kdump-devel","kernel-rt","kernel-rt-debug","kernel-rt-debug-devel","kernel-rt-debug-kvm","kernel-rt-devel","kernel-rt-doc","kernel-rt-kvm","kernel-rt-trace","kernel-rt-trace-devel","kernel-rt-trace-kvm","kernel-tools","kernel-tools-libs","kernel-tools-libs-devel","perf"],"package_count":26,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["bpftool","kernel","kernel-abi-stablelists","kernel-abi-whitelists","kernel-core","kernel-cross-headers","kernel-debug","kernel-debug-core","kernel-debug-devel","kernel-debug-modules","kernel-debug-modules-extra","kernel-debug-modules-internal","kernel-devel","kernel-doc","kernel-headers","kernel-ipaclones-internal","kernel-modules","kernel-modules-extra","kernel-modules-internal","kernel-rt","kernel-rt-core","kernel-rt-debug","kernel-rt-debug-core","kernel-rt-debug-devel","kernel-rt-debug-kvm"],"package_count":46,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["bpftool","kernel","kernel-64k","kernel-64k-core","kernel-64k-debug","kernel-64k-debug-core","kernel-64k-debug-devel","kernel-64k-debug-devel-matched","kernel-64k-debug-modules","kernel-64k-debug-modules-core","kernel-64k-debug-modules-extra","kernel-64k-debug-modules-internal","kernel-64k-debug-modules-partner","kernel-64k-devel","kernel-64k-devel-matched","kernel-64k-modules","kernel-64k-modules-core","kernel-64k-modules-extra","kernel-64k-modules-internal","kernel-64k-modules-partner","kernel-abi-stablelists","kernel-core","kernel-cross-headers","kernel-debug","kernel-debug-core"],"package_count":107,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["openshift/ose-rhel-coreos-8","openshift/ose-rhel-coreos-9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 5","cpe":"cpe:/a:redhat:openshift:5","status":"affected","packages":["openshift/ose-rhel-coreos-10"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 5","cpe":"cpe:/a:redhat:openshift:5","status":"not_affected","packages":["openshift/ose-rhel-coreos-9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-99705"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-99705","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-99705","license":"CC-BY-4.0","published_at":"2026-11-20T05:50:46.263Z","modified_at":"2026-11-20T05:50:46.263Z","summary":"mm: memory: fix truncation removing mapped folios","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: memory: fix truncation removing mapped folios\n\nAyush reported an issue that shmem/tmpfs folios are still mapped when\ntruncating them on production:\n\"\nBUG: Bad page cache in process ...  pfn:...\npage dumped because: still mapped when deleted\n\"\n\nI reproduced the issue with Ayush's reproducer [1] with the latest\nmm-unstable branch, and I got the following crash info.  From the dump\nmessage, we can see that truncate_inode_folio() is really trying to remove\nmapped folios, which is incorrect.\n\n\"\n[  189.171977] page: refcount:3 mapcount:1 mapping:00000000fe168ee1\nindex:0x3880 pfn:0x191647\n[  189.171995] memcg:ffff0000cc073d40\n[  189.171997] aops:shmem_aops ino:3c01 dentry name(?):\"memfd:runsc-memory\"\n[  189.172006] flags: 0x17fffef0002022d(locked|referenced|uptodate|lru|\nworkingset|swapbacked|node=0|zone=2|lastcpupid=0x3ffff)\n.......\n[  189.172017] page dumped because: VM_BUG_ON_FOLIO(folio_mapped(folio))\n[  189.172026] ------------[ cut here ]------------\n[  189.172027] kernel BUG at mm/filemap.c:155!\n[  189.172057] Internal error: Oops - BUG: 00000000f2000800 [#1]  SMP\n.......\n[  189.177721] CPU: 3 UID: 0 PID: 5521 Comm: repro Kdump: loaded Tainted:\n7.3.0-rc4+ #277 PREEMPT(lazy)\n.......\n[  189.183986] Call trace:\n[  189.184124]  filemap_unaccount_folio+0xf0/0x1e8 (P)\n[  189.184391]  __filemap_remove_folio+0x34/0x160\n[  189.184633]  filemap_remove_folio+0x4c/0xb0\n[  189.184859]  truncate_inode_folio+0x34/0x58\n[  189.185087]  shmem_undo_range+0x220/0x658\n[  189.185308]  shmem_fallocate+0x2f0/0x470\n[  189.185527]  vfs_fallocate+0x128/0x328\n......\n[  189.187078]  el0t_64_sync+0x184/0x188\n\"\n\nAfter analysis, I believe the race exists between truncation and\nMADV_DONTNEED, and shmem's ->map_pages() merely makes the issue easier to\nreproduce.  Since MADV_DONTNEED synchronously releases the pagetable page\nbefore calling tlb_flush_rmaps(), this could cause another thread's\ntruncation to skip zap_pte_range() (due to pmd is none) but still observe\nthe folio's mapcount as non-zero.  A possible race scenario is as follows:\n\nCPU 0                           CPU 1\nshmem_fallocate                 madvise_dontneed_single_vma\n  unmap_mapping_range            .......\n  ......\n  (filemap_map_pages() remap folios)\n\t\t\t\t  zap_pte_range\n  truncate_inode_folio\t\t    zap_empty_pte_table(pmd clear)\n    unmap_mapping_folio\n    ......\n      zap_pmd_range (saw pmd none, skip)\n\n  filemap_remove_folio\n    BUG_ON(folio_mapped)\n                                    tlb_flush_rmaps(remove rmaps)\n\nTo fix this issue, we should move the pmd clear operation (via\nzap_empty_pte_table()) to after tlb_flush_rmaps() and use\nsync_with_folio_pmd_zap() to sync with concurrent zapping, so that when we\nfind a pmd_none() while unmapping a folio without holding the PTL, the\nfolio's mappings are guaranteed to have been removed via\ntlb_flush_rmaps().\n\nMeanwhile move the second pmd_none() check to where it belongs: if\nsplitting zapped the PMD.","severity":[],"affected":[{"ecosystem":"CVE","package":"Linux/Linux","ranges":[{"type":"GIT","events":[{"introduced":"6375e95f381e3dc85065b6f74263a61522736203"},{"fixed":"8011e987026b65f59ea6b6082c777807a008b227"}]},{"type":"GIT","events":[{"introduced":"6375e95f381e3dc85065b6f74263a61522736203"},{"fixed":"b57cfd4da476a4636bf1ed69dee176cc266e5a06"}]},{"type":"GIT","events":[{"introduced":"6375e95f381e3dc85065b6f74263a61522736203"},{"fixed":"243cf1f67b365668389832463fc31cbb9fec47af"}]}],"provider":"cvelistv5","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"CVE","package":"Linux/Linux","versions":["6.14"],"provider":"cvelistv5","source":"CVE-2026-99705","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/8011e987026b65f59ea6b6082c777807a008b227"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b57cfd4da476a4636bf1ed69dee176cc266e5a06"},{"type":"WEB","url":"https://git.kernel.org/stable/c/243cf1f67b365668389832463fc31cbb9fec47af"}]},{"provider":"osv","source_id":"CVE-2026-99705","relation":"self","url":"https://osv.dev/vulnerability/CVE-2026-99705","published_at":"2026-11-20T05:50:46.263Z","modified_at":"2026-11-20T07:01:11.001763Z","summary":"mm: memory: fix truncation removing mapped folios","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: memory: fix truncation removing mapped folios\n\nAyush reported an issue that shmem/tmpfs folios are still mapped when\ntruncating them on production:\n\"\nBUG: Bad page cache in process ...  pfn:...\npage dumped because: still mapped when deleted\n\"\n\nI reproduced the issue with Ayush's reproducer [1] with the latest\nmm-unstable branch, and I got the following crash info.  From the dump\nmessage, we can see that truncate_inode_folio() is really trying to remove\nmapped folios, which is incorrect.\n\n\"\n[  189.171977] page: refcount:3 mapcount:1 mapping:00000000fe168ee1\nindex:0x3880 pfn:0x191647\n[  189.171995] memcg:ffff0000cc073d40\n[  189.171997] aops:shmem_aops ino:3c01 dentry name(?):\"memfd:runsc-memory\"\n[  189.172006] flags: 0x17fffef0002022d(locked|referenced|uptodate|lru|\nworkingset|swapbacked|node=0|zone=2|lastcpupid=0x3ffff)\n.......\n[  189.172017] page dumped because: VM_BUG_ON_FOLIO(folio_mapped(folio))\n[  189.172026] ------------[ cut here ]------------\n[  189.172027] kernel BUG at mm/filemap.c:155!\n[  189.172057] Internal error: Oops - BUG: 00000000f2000800 [#1]  SMP\n.......\n[  189.177721] CPU: 3 UID: 0 PID: 5521 Comm: repro Kdump: loaded Tainted:\n7.3.0-rc4+ #277 PREEMPT(lazy)\n.......\n[  189.183986] Call trace:\n[  189.184124]  filemap_unaccount_folio+0xf0/0x1e8 (P)\n[  189.184391]  __filemap_remove_folio+0x34/0x160\n[  189.184633]  filemap_remove_folio+0x4c/0xb0\n[  189.184859]  truncate_inode_folio+0x34/0x58\n[  189.185087]  shmem_undo_range+0x220/0x658\n[  189.185308]  shmem_fallocate+0x2f0/0x470\n[  189.185527]  vfs_fallocate+0x128/0x328\n......\n[  189.187078]  el0t_64_sync+0x184/0x188\n\"\n\nAfter analysis, I believe the race exists between truncation and\nMADV_DONTNEED, and shmem's ->map_pages() merely makes the issue easier to\nreproduce.  Since MADV_DONTNEED synchronously releases the pagetable page\nbefore calling tlb_flush_rmaps(), this could cause another thread's\ntruncation to skip zap_pte_range() (due to pmd is none) but still observe\nthe folio's mapcount as non-zero.  A possible race scenario is as follows:\n\nCPU 0                           CPU 1\nshmem_fallocate                 madvise_dontneed_single_vma\n  unmap_mapping_range            .......\n  ......\n  (filemap_map_pages() remap folios)\n\t\t\t\t  zap_pte_range\n  truncate_inode_folio\t\t    zap_empty_pte_table(pmd clear)\n    unmap_mapping_folio\n    ......\n      zap_pmd_range (saw pmd none, skip)\n\n  filemap_remove_folio\n    BUG_ON(folio_mapped)\n                                    tlb_flush_rmaps(remove rmaps)\n\nTo fix this issue, we should move the pmd clear operation (via\nzap_empty_pte_table()) to after tlb_flush_rmaps() and use\nsync_with_folio_pmd_zap() to sync with concurrent zapping, so that when we\nfind a pmd_none() while unmapping a folio without holding the PTL, the\nfolio's mappings are guaranteed to have been removed via\ntlb_flush_rmaps().\n\nMeanwhile move the second pmd_none() check to where it belongs: if\nsplitting zapped the PMD.","severity":[],"affected":[{"ecosystem":"Linux","package":"Kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.14.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"fixed":["6.18.64","7.3.5"],"provider":"osv","source":"CVE-2026-99705","relation":"self"}],"product_status":[],"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/243cf1f67b365668389832463fc31cbb9fec47af"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8011e987026b65f59ea6b6082c777807a008b227"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b57cfd4da476a4636bf1ed69dee176cc266e5a06"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99705.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99705"}]},{"provider":"osv","source_id":"DEBIAN-CVE-2026-99705","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-99705","published_at":"2026-11-20T06:18:06.423Z","modified_at":"2026-11-20T10:00:38.982202Z","severity":[],"affected":[{"ecosystem":"Debian:14","package":"linux","purl":"pkg:deb/debian/linux?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.12.100-1","6.12.101-1","6.12.105-1","6.12.107-1","6.12.111-1","6.12.113-1","6.12.115-1","6.12.115-2","6.12.116-1","6.12.117-1","6.12.38-1","6.12.41-1","6.12.43-1","6.12.43-1~bpo12+1","6.12.48-1","6.12.57-1","6.12.57-1~bpo12+1","6.12.63-1","6.12.63-1~bpo12+1","6.12.69-1","6.12.69-1~bpo12+1","6.12.73-1","6.12.73-1~bpo12+1","6.12.74-1","6.12.74-2","6.12.74-2~bpo12+1","6.12.85-1","6.12.85-1~bpo12+1","6.12.86-1","6.12.86-1~bpo12+1","6.12.88-1","6.12.88-1~bpo12+1","6.12.90-1","6.12.90-1~bpo12+1","6.12.90-2","6.12.90-2~bpo12+1","6.12.94-1","6.12.94-1~bpo12+1","6.12.95-1","6.12.95-1~bpo12+1","6.12.96-1","6.13.10-1~exp1","6.13.11-1~exp1","6.13.2-1~exp1","6.13.3-1~exp1","6.13.4-1~exp1","6.13.5-1~exp1","6.13.6-1~exp1","6.13.7-1~exp1","6.13.8-1~exp1","6.13.9-1~exp1","6.13~rc6-1~exp1","6.13~rc7-1~exp1","6.14.3-1~exp1","6.14.5-1~exp1","6.14.6-1~exp1","6.15-1~exp1","6.15.1-1~exp1","6.15.2-1~exp1","6.15.3-1~exp1","6.15.4-1~exp1","6.15.5-1~exp1","6.15.6-1~exp1","6.15~rc7-1~exp1","6.16-1~exp1","6.16.1-1~exp1","6.16.10-1","6.16.11-1","6.16.12-1","6.16.12-1~bpo13+1","6.16.12-2","6.16.3-1","6.16.3-1~bpo13+1","6.16.5-1","6.16.6-1","6.16.7-1","6.16.8-1","6.16.9-1","6.16~rc7-1~exp1","6.17.10-1","6.17.11-1","6.17.12-1","6.17.13-1","6.17.13-1~bpo13+1","6.17.2-1~exp1","6.17.5-1~exp1","6.17.6-1","6.17.7-1","6.17.7-2","6.17.8-1","6.17.8-1~bpo13+1","6.17.9-1","6.18.1-1~exp1","6.18.10-1","6.18.12-1","6.18.12-1~bpo13+1","6.18.13-1","6.18.14-1","6.18.15-1","6.18.15-1~bpo13+1","6.18.2-1~exp1","6.18.3-1","6.18.5-1","6.18.5-1~bpo13+1","6.18.8-1","6.18.9-1","6.18.9-1~bpo13+1","6.18~rc4-1~exp1","6.18~rc4-1~exp2","6.18~rc5-1~exp1","6.18~rc6-1~exp1","6.18~rc7-1~exp1","6.19-1~exp1","6.19.10-1","6.19.10-1~bpo13+1","6.19.11-1","6.19.11-1~bpo13+1","6.19.12-1","6.19.13-1","6.19.13-1~bpo13+1","6.19.14-1","6.19.14-1~bpo13+1","6.19.2-1~exp1","6.19.3-1~exp1","6.19.4-1~exp1","6.19.5-1~exp1","6.19.6-1","6.19.6-2","6.19.6-2~bpo13+1","6.19.8-1","6.19.8-1~bpo13+1","6.19~rc4-1~exp1","6.19~rc5-1~exp1","6.19~rc6-1~exp1","6.19~rc7-1~exp1","6.19~rc8-1~exp1","7.0-1~exp1","7.0.1-1~exp1","7.0.10-1","7.0.10-1~bpo13+1","7.0.12-1","7.0.12-2","7.0.12-2~bpo13+1","7.0.13-1","7.0.13-1~bpo13+1","7.0.14-1","7.0.3-1","7.0.4-1","7.0.4-1~bpo13+1","7.0.7-1","7.0.7-1~bpo13+1","7.0.9-1","7.0.9-1~bpo13+1","7.1.1-1~exp1","7.1.10-1","7.1.12-1","7.1.13-1","7.1.13-1~bpo13+1","7.1.2-1~exp1","7.1.3-1","7.1.3-1+sunvdc","7.1.3-1~bpo13+1","7.1.4-1","7.1.5-1","7.1.6-1","7.1.7-1","7.1.7-1~bpo13+1","7.1.8-1","7.1.8-1~bpo13+1","7.1.8-2","7.1.9-1","7.1.9-1+sparc64","7.1~rc2-1~exp1","7.1~rc3-1~exp1","7.1~rc4-1~exp1","7.1~rc4-1~exp2","7.1~rc5-1~exp1","7.1~rc7-1~exp1","7.2.10-1","7.2.11-1","7.2.11-1~bpo13+1","7.2.12-1","7.2.12-1~bpo13+1","7.2.13-1","7.2.14-1","7.2.15-1","7.2.2-1~exp1","7.2.3-1~exp1","7.2.6-1","7.2.6-1~bpo13+1","7.2.7-1","7.2.8-1","7.2.9-1","7.2.9-1~bpo13+1","7.2~rc3-1~exp1","7.2~rc5-1~exp1","7.2~rc7-1~exp1","7.3.1-1~exp1","7.3.3-1","7.3.4-1","7.3.4-1~bpo13+1","7.3.5-1","7.3~rc6-1~exp1","7.3~rc7-1~exp1"],"provider":"osv","source":"DEBIAN-CVE-2026-99705","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-99705"}]},{"provider":"redhat-vex","source_id":"CVE-2026-99705","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-99705","license":"CC-BY-4.0","published_at":"2026-11-20T05:50:46.263Z","modified_at":"2026-11-20T11:12:55Z","summary":"kernel: kernel: Denial of Service via race condition between memory truncation and unmapping","details":"A flaw was found in the Linux kernel's memory management subsystem. A race condition can occur between file truncation operations and concurrent memory unmapping requests, causing the kernel to attempt to remove memory pages that are still actively mapped. A local attacker can exploit this flaw to trigger an internal kernel assertion failure, leading to a system crash and a Denial of Service (DoS).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2026-99705"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-99705"}],"affected":[{"ecosystem":"Red Hat:enterprise_linux:10","package":"kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-abi-whitelists","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-bootwrapper","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-debug","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-debug-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-firmware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-headers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-kdump","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"kernel-kdump-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"perf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"},{"ecosystem":"Red Hat:rhel_els:6","package":"python-perf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-99705","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","cpe":"cpe:/a:redhat:enterprise_linux:10","status":"affected","packages":["kernel"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","cpe":"cpe:/o:redhat:rhel_els:6","status":"affected","packages":["kernel","kernel-abi-whitelists","kernel-bootwrapper","kernel-debug","kernel-debug-devel","kernel-devel","kernel-doc","kernel-firmware","kernel-headers","kernel-kdump","kernel-kdump-devel","perf","python-perf"],"package_count":13,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","cpe":"cpe:/o:redhat:rhel_els:7","status":"not_affected","packages":["bpftool","kernel","kernel-abi-whitelists","kernel-bootwrapper","kernel-debug","kernel-debug-devel","kernel-devel","kernel-doc","kernel-headers","kernel-kdump","kernel-kdump-devel","kernel-rt","kernel-rt-debug","kernel-rt-debug-devel","kernel-rt-debug-kvm","kernel-rt-devel","kernel-rt-doc","kernel-rt-kvm","kernel-rt-trace","kernel-rt-trace-devel","kernel-rt-trace-kvm","kernel-tools","kernel-tools-libs","kernel-tools-libs-devel","perf"],"package_count":26,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["bpftool","kernel","kernel-abi-stablelists","kernel-abi-whitelists","kernel-core","kernel-cross-headers","kernel-debug","kernel-debug-core","kernel-debug-devel","kernel-debug-modules","kernel-debug-modules-extra","kernel-debug-modules-internal","kernel-devel","kernel-doc","kernel-headers","kernel-ipaclones-internal","kernel-modules","kernel-modules-extra","kernel-modules-internal","kernel-rt","kernel-rt-core","kernel-rt-debug","kernel-rt-debug-core","kernel-rt-debug-devel","kernel-rt-debug-kvm"],"package_count":46,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["bpftool","kernel","kernel-64k","kernel-64k-core","kernel-64k-debug","kernel-64k-debug-core","kernel-64k-debug-devel","kernel-64k-debug-devel-matched","kernel-64k-debug-modules","kernel-64k-debug-modules-core","kernel-64k-debug-modules-extra","kernel-64k-debug-modules-internal","kernel-64k-debug-modules-partner","kernel-64k-devel","kernel-64k-devel-matched","kernel-64k-modules","kernel-64k-modules-core","kernel-64k-modules-extra","kernel-64k-modules-internal","kernel-64k-modules-partner","kernel-abi-stablelists","kernel-core","kernel-cross-headers","kernel-debug","kernel-debug-core"],"package_count":107,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["openshift/ose-rhel-coreos-8","openshift/ose-rhel-coreos-9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 5","cpe":"cpe:/a:redhat:openshift:5","status":"affected","packages":["openshift/ose-rhel-coreos-10"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-99705"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 5","cpe":"cpe:/a:redhat:openshift:5","status":"not_affected","packages":["openshift/ose-rhel-coreos-9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-99705"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99705.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-99705"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2577786"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-99705"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99705"},{"type":"WEB","url":"https://git.kernel.org/stable/c/243cf1f67b365668389832463fc31cbb9fec47af"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8011e987026b65f59ea6b6082c777807a008b227"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b57cfd4da476a4636bf1ed69dee176cc266e5a06"}]}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/8011e987026b65f59ea6b6082c777807a008b227"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b57cfd4da476a4636bf1ed69dee176cc266e5a06"},{"type":"WEB","url":"https://git.kernel.org/stable/c/243cf1f67b365668389832463fc31cbb9fec47af"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99705.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99705"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-99705"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99705.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-99705"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2577786"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-99705"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-99705","url":"https://www.cve.org/CVERecord?id=CVE-2026-99705","license":"CC-BY-4.0","modified_at":"2026-11-20T05:50:46.263Z","relation":"self"},{"provider":"osv","source_id":"CVE-2026-99705","url":"https://osv.dev/vulnerability/CVE-2026-99705","modified_at":"2026-11-20T07:01:11.001763Z","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2026-99705","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-99705","modified_at":"2026-11-20T10:00:38.982202Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-99705","url":"https://access.redhat.com/security/cve/CVE-2026-99705","license":"CC-BY-4.0","modified_at":"2026-11-20T11:12:55Z","relation":"self"}]}
