Skip to contentSkip to conversation

CVE-2026-80685: mm/util: don't read __page_2 for order-1 folios in snapshot_page()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28

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/util: don't read __page_2 for order-1 folios in snapshot_page()

snapshot_page() currently reads __page_2 after checking nr_pages > 1, but it should only do so when nr_pages > 2.

If an order-1 folio is allocated at the end of a vmemmap section, __page_2 will not exist and reading it will cause a fault.

During DLPAR memory remove on a 22 TB ppc64le LPAR, snapshot_page() oopsed on the page isolation path while reading an order-1 folio's __page_2 from an adjacent absent section (unmapped vmemmap).

Fix this to avoid reading memmap that doesn't exist (e.g., a vmemmap hole).

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

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

	Issue introduced in 6.15 with commit 31a31da8a6187f1e5448ec73222e01d7d3fed4aa and fixed in 6.18.44 with commit 9668ffe0e2a5e2399dce281620198a2e415871fc
	Issue introduced in 6.15 with commit 31a31da8a6187f1e5448ec73222e01d7d3fed4aa and fixed in 7.1.8 with commit c649324571206a30949765320b91ccdb4c1722dc
	Issue introduced in 6.15 with commit 31a31da8a6187f1e5448ec73222e01d7d3fed4aa and fixed in 7.2 with commit 7441d6348c70738e9ed307510db171c7a9b3f4bf

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

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/util.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/9668ffe0e2a5e2399dce281620198a2e415871fc
	https://git.kernel.org/stable/c/c649324571206a30949765320b91ccdb4c1722dc
	https://git.kernel.org/stable/c/7441d6348c70738e9ed307510db171c7a9b3f4bf