Database/Kernel, userspace & hypervisor
Linux kernel smaps: unlocked hugetlb PTE read races migration and hits BUG_ON
Impact
smaps_hugetlb_range() reads a hugetlb PTE without holding the page-table lock. If page migration concurrently replaces the entry with a migration swap entry, pfn_swap_entry_to_page() hits a BUG_ON and the kernel panics. The trigger on the reading side is simply reading /proc/<pid>/smaps, which any local process - including a monitoring agent or any tenant in a container - can do. On a GPU node this is an unprivileged crash of the whole host, taking every co-tenant job with it, and nodes that run hugetlb-backed workloads alongside memory compaction or NUMA balancing are exactly where migration entries appear.
Who can reach it
Local, unauthenticated beyond having a shell or process on the node. Any tenant with a GPU pod can read smaps of a hugetlb-using process while the kernel migrates its pages; no root required.
What to do
Patch the kernel to the stable commits that take the ptl in smaps_hugetlb_range() and reboot each node. As an interim mitigation, restrict access to /proc/<pid>/smaps for untrusted processes (hidepid, container masking) - the crash needs a reader. The record lists stable commits but no named fixed release.
References
Related entries
- SSSD: race between autofs enumeration and map invalidation leaks memory until the responder diesCVE-2026-104045 · SSSD (autofs responder)Medium
- Linux kernel (drivers/pci/controller): The Hyper-V PCI front-end frees its PCI domain number twice on a probe failureCVE-2026-43097 · Linux kernel (drivers/pci/controller)Medium
- Linux kernel (drivers/iommu/intel): On VT-d scalable mode with VMD enabled, RID2PASID setup fails for devices behindCVE-2022-48916 · Linux kernel (drivers/iommu/intel)Medium
- Linux kernel (drivers/vfio/mdev): If creating an mdev type's sysfs entries partially fails, the parent still registersCVE-2023-52570 · Linux kernel (drivers/vfio/mdev)Medium
- util-linux (wall): WallEscape: escape-sequence injection via wall(1)CVE-2024-28085 · util-linux (wall)Medium
- Linux kernel (drivers/pci/pcie): PCIe bandwidth control dereferences a bridge's subordinate bus pointer withoutCVE-2025-22031 · Linux kernel (drivers/pci/pcie)Medium
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.