CVE-2026-99559: ARM: 9524/1: mm: align hugetlb mappings to the huge page size
In the Linux kernel, the following vulnerability has been resolved:
ARM: 9524/1: mm: align hugetlb mappings to the huge page size
mmap(MAPHUGETLB) on 32-bit Arm can return an address which is not aligned to the huge page size. In a QEMU virt guest, unmapping the VMA then hits the alignment check in unmaphugepagerange():
kernel BUG at mm/hugetlb.c:5213! Internal error: Oops - BUG: 0 [#1] SMP ARM PC is at unmaphugepagerange+0x540/0x584 LR is at zapvmarange+0x13a0/0x1410
Commit 7bd3f1e1a9ae ("mm: make hugetlb mappings go through mmgetunmappedareavmflags") made hugetlb mappings use the architecture's archgetunmappedarea(). The generic implementations handle hugetlb alignment, but the Arm implementations only account for the optional SHMLBA cache-colouring constraint. A 4 KiB-page kernel can therefore align the mapping to 4 KiB or 16 KiB instead of the required 2 MiB.
Set the alignment mask from the file's hstate for hugetlb mappings in both Arm implementations. Huge-page alignment also satisfies the SHMLBA constraint.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 7bd3f1e1a9ae