Skip to contentSkip to conversation

CVE-2026-53189: mm/huge_memory: update file PMD counter before folio_put()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 25

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: update file PMD counter before folio_put()

__split_huge_pmd_locked() updates the file/shmem RSS counter after dropping the PMD mapping's folio reference. If folio_put() drops the last reference, mm_counter_file() can later read freed folio state via folio_test_swapbacked().

Move the counter update before folio_put().

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

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

	Issue introduced in 4.19 with commit fadae2953072e9005c5f1d64e1049edb043494dc and fixed in 5.10.259 with commit 84b3212b166b446faea27ebebb7161405ffceef9
	Issue introduced in 4.19 with commit fadae2953072e9005c5f1d64e1049edb043494dc and fixed in 5.15.210 with commit 108963978a681c0c468d279cac2b930c27672877
	Issue introduced in 4.19 with commit fadae2953072e9005c5f1d64e1049edb043494dc and fixed in 6.1.176 with commit 459771c9cf30f378bdbd30fc65d17f7eb931bb59
	Issue introduced in 4.19 with commit fadae2953072e9005c5f1d64e1049edb043494dc and fixed in 6.6.143 with commit ae9d4caf6f133e884cf5fcda4982c493b35e5194
	Issue introduced in 4.19 with commit fadae2953072e9005c5f1d64e1049edb043494dc and fixed in 6.12.94 with commit 6c29a8ba084e89499ca77b947e07ae817f9c16ce
	Issue introduced in 4.19 with commit fadae2953072e9005c5f1d64e1049edb043494dc and fixed in 6.18.36 with commit 5f5b604e1e6bde4e889199168ee80fe8306d06ad
	Issue introduced in 4.19 with commit fadae2953072e9005c5f1d64e1049edb043494dc and fixed in 7.0.13 with commit ed5b030931292c94133437ac5e5ff580e498eabd
	Issue introduced in 4.19 with commit fadae2953072e9005c5f1d64e1049edb043494dc and fixed in 7.1 with commit 8d878059924f12c1bc24556a92ec56add74de3c8

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

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/84b3212b166b446faea27ebebb7161405ffceef9
	https://git.kernel.org/stable/c/108963978a681c0c468d279cac2b930c27672877
	https://git.kernel.org/stable/c/459771c9cf30f378bdbd30fc65d17f7eb931bb59
	https://git.kernel.org/stable/c/ae9d4caf6f133e884cf5fcda4982c493b35e5194
	https://git.kernel.org/stable/c/6c29a8ba084e89499ca77b947e07ae817f9c16ce
	https://git.kernel.org/stable/c/5f5b604e1e6bde4e889199168ee80fe8306d06ad
	https://git.kernel.org/stable/c/ed5b030931292c94133437ac5e5ff580e498eabd
	https://git.kernel.org/stable/c/8d878059924f12c1bc24556a92ec56add74de3c8