Database/Kernel, userspace & hypervisor
Linux kernel mm/rmap: lazyfree THP discard races munmap/mremap, causing use-after-free
Impact
When reclaim discards a lazyfree transparent huge page, it clears the PMD for a moment. A concurrent munmap() or mremap() treats that cleared PMD as empty and skips it. This can leave a folio mapped with no linked anon_vma, which later becomes a use-after-free in folio_lock_anon_vma_read(), or it can lose the THP's data with plain mremap(). The record says an unprivileged user reproduced the KASAN use-after-free by racing lazyfree reclaim against MREMAP_DONTUNMAP. On a multi-tenant GPU node, any local workload that can run code could use this to corrupt host kernel memory or crash the node.
Who can reach it
Local, unprivileged. Any process that can call madvise(MADV_FREE), mremap() and munmap() on its own memory, which includes container workloads with default seccomp profiles that allow those syscalls. THP has to be enabled.
What to do
Install a kernel with the stable fix, which stops discarding lazyfree THPs at PMD level, then drain and reboot each node. The record gives no fixed version numbers. Disabling THP may shrink the exposure, but the record does not name it as a mitigation.
References
Related entries
- Linux KVM pfncache: missed MMU-notifier invalidation maps a freed page into Xen-emulation cachesCVE-2026-99472 · Linux kernel KVM gfn_to_pfn_cache (Xen shared_info / vcpu_info HVA caches)Unscored
- Linux KVM guest_memfd: failed xarray binding leaves memslot pointing at freed file, use-after-freeCVE-2026-99473 · Linux kernel KVM guest_memfd (memslot binding)Unscored
- Linux kernel mm/hugetlb: page fault touches freed folio, unprivileged user can corrupt host memoryCVE-2026-99506 · Linux kernel mm/hugetlb (hugetlb_no_page private-mapping fault)Unscored
- Linux kernel mm/hugetlb: use-after-free of folio in hugetlb_mfill_atomic_pte() after dropping PTLCVE-2026-99507 · Linux kernel mm/hugetlb (hugetlb_mfill_atomic_pte, userfaultfd)Unscored
- Linux kernel iommufd: event queue release reads freed memory when racing IOMMU_DESTROYCVE-2026-99515 · Linux kernel iommufd (event queue / fault fd release)Unscored
- Linux kernel nvmet-fc: create-connection races disconnect, use-after-free of association in NVMe/FC targetCVE-2026-99516 · Linux kernel nvmet-fc (NVMe over Fibre Channel target)Unscored
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.