CVE-2026-99559: ARM: 9524/1: mm: align hugetlb mappings to the huge page size
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ARM: 9524/1: mm: align hugetlb mappings to the huge page size
mmap(MAP_HUGETLB) 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 __unmap_hugepage_range():
kernel BUG at mm/hugetlb.c:5213!
Internal error: Oops - BUG: 0 [#1] SMP ARM PC is at __unmap_hugepage_range+0x540/0x584 LR is at __zap_vma_range+0x13a0/0x1410
Commit 7bd3f1e1a9ae ("mm: make hugetlb mappings go through mm_get_unmapped_area_vmflags") made hugetlb mappings use the architecture's arch_get_unmapped_area(). 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.
The Linux kernel CVE team has assigned CVE-2026-99559 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.13 with commit 7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 and fixed in 6.18.61 with commit 277157864856d812c82f1ca8c156b392d368b8c7 Issue introduced in 6.13 with commit 7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 and fixed in 7.3.2 with commit 8602ec8effb019d7db38d3c234d9d7305ee429a5 Issue introduced in 6.13 with commit 7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 and fixed in 7.4-rc1 with commit 1eb87d8f77379d4e4b279487b8c859fb64bd1afb
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99559
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/arm/mm/mmap.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/277157864856d812c82f1ca8c156b392d368b8c7 https://git.kernel.org/stable/c/8602ec8effb019d7db38d3c234d9d7305ee429a5 https://git.kernel.org/stable/c/1eb87d8f77379d4e4b279487b8c859fb64bd1afb