Skip to contentSkip to conversation

CVE-2026-89593: hugetlb: only adjust reservation during unmapping if mapcount is 0

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 11

lore
Share & tools
lore
#0 lore raw

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

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

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

hugetlb: only adjust reservation during unmapping if mapcount is 0

Since df7a6d1f6405, __unmap_hugepage_range can adjust reservations. In the case of folio mapped in both a parent and a child, if the parent unmaps the range first, the reservation adjustment will result in an underflow of the reserved count. Once the child unmaps the range, the count is restored. Change __unmap_hugepage_range() to check the mapcount before adjusting the reservation.

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

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

	Issue introduced in 6.9 with commit df7a6d1f64056aec572162c5d35ed9ff86ece6f3 and fixed in 6.18.50 with commit a3c65af20cceb7f997847727636b4017326f845d
	Issue introduced in 6.9 with commit df7a6d1f64056aec572162c5d35ed9ff86ece6f3 and fixed in 7.2.4 with commit 0f001491e5a2ec69aa9d5dd6b799e5742245f9ea
	Issue introduced in 6.9 with commit df7a6d1f64056aec572162c5d35ed9ff86ece6f3 and fixed in 7.3-rc1 with commit 5120b1e048d48596ffaec1a8412012a91adba73b

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

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/hugetlb.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/a3c65af20cceb7f997847727636b4017326f845d
	https://git.kernel.org/stable/c/0f001491e5a2ec69aa9d5dd6b799e5742245f9ea
	https://git.kernel.org/stable/c/5120b1e048d48596ffaec1a8412012a91adba73b