Skip to contentSkip to conversation

CVE-2026-99647: mm/huge_memory: split huge PUDs when adjusting VMA boundaries

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

mm/huge_memory: split huge PUDs when adjusting VMA boundaries

PFN mappings such as VFIO PCI BAR mappings can use PUD leaves while allowing VMA splits at page granularity. However, vma_adjust_trans_huge() only handles PMDs.

After faulting a writable PUD-sized VFIO BAR mapping, changing its first page to read-only with mprotect() makes the PMD walk treat the PUD leaf as a PMD table. Applying MADV_DONTFORK to the first PMD-sized chunk leaves the PUD spanning two VMAs: the PMD-aligned boundary skips splitting.

Walk the page tables once at each adjusted boundary and split a huge PUD or PMD leaf as needed. Handle PUD leaves even when the boundary is PMD-aligned.

The Linux kernel CVE team has assigned CVE-2026-99647 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.12 with commit f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101 and fixed in 6.12.118 with commit bd918ee291da2d76dd03b5f9c2c2e550095ab538
	Issue introduced in 6.12 with commit f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101 and fixed in 6.18.64 with commit 605ebb555bc8695b309dcd462be6c1437ef98421
	Issue introduced in 6.12 with commit f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101 and fixed in 7.3.5 with commit 4636bc02303032f20710d97f40adb8f4eed22a66
	Issue introduced in 6.12 with commit f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101 and fixed in 7.4-rc2 with commit 23e570927421d569fdc510d5f3f29542a43eeda5

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-99647

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:
mm/huge_memory.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/bd918ee291da2d76dd03b5f9c2c2e550095ab538
	https://git.kernel.org/stable/c/605ebb555bc8695b309dcd462be6c1437ef98421
	https://git.kernel.org/stable/c/4636bc02303032f20710d97f40adb8f4eed22a66
	https://git.kernel.org/stable/c/23e570927421d569fdc510d5f3f29542a43eeda5