Skip to contentSkip to conversation

CVE-2026-46277: mm/zone_device: do not touch device folio after calling ->folio_free()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 8

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/zone_device: do not touch device folio after calling ->folio_free()

The contents of a device folio can immediately change after calling ->folio_free(), as the folio may be reallocated by a driver with a different order. Instead of touching the folio again to extract the pgmap, use the local stack variable when calling percpu_ref_put_many().

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

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

	Issue introduced in 6.19 with commit d245f9b4ab806733a77e51a218ca7b8bc3135cd9 and fixed in 7.0.4 with commit 85be0a262e39c706edb53c88af8afde2e98222ba
	Issue introduced in 6.19 with commit d245f9b4ab806733a77e51a218ca7b8bc3135cd9 and fixed in 7.1-rc1 with commit 39928984956037cabd304321cb8f342e47421db5

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

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/memremap.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/85be0a262e39c706edb53c88af8afde2e98222ba
	https://git.kernel.org/stable/c/39928984956037cabd304321cb8f342e47421db5