# CVE-2026-138865: mm/hugetlb: fix subpool minimum reservation rollback

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-30T13:25:42.582Z
- Modified: 2026-11-30T14:17:42.990Z
- Assigned by: Linux

## Description

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

mm/hugetlb: fix subpool minimum reservation rollback

When a reservation request is partially covered by a subpool minimum and
the remaining global reservation fails, the error path first calls
hugepage_subpool_put_pages() for the subpool-backed portion.  It removes
the failed global portion from used_hpages only afterwards.

hugepage_subpool_put_pages() uses used_hpages to decide whether rsv_hpages
should be restored.  Since used_hpages still includes the global portion,
it can remain at or above min_hpages and prevent that restoration.  It
then reports the subpool reservation as releasable, causing
hugetlb_acct_memory() to incorrectly decrement h->resv_huge_pages.

This was reproduced with four 2 MB huge pages and a hugetlbfs mount with
size=10M,min_size=8M.  After a successful three-page reservation, a
two-page reservation which needed one subpool page and one global page
failed with -ENOMEM.  HugePages_Rsvd incorrectly dropped from four to
three even though the subpool minimum was still four pages.

Roll back the failed global portion from used_hpages first, so that
hugepage_subpool_put_pages() evaluates the minimum reservation against the
current usage and returns the correct global adjustment.

(As written by CVE List.)

## Affected

- Linux Linux: from a833a693a490ecff8ba377654c6d4d333718b6b1 before 4b10d04a68b8e17bb805df65f81a36a9041dd7bd; from a833a693a490ecff8ba377654c6d4d333718b6b1 before 156cd6874ed93737820d7818f09aff59ae50f6c7; from a833a693a490ecff8ba377654c6d4d333718b6b1 before e4949a80f3b07e52dca76c34ce353633927a28a5; adb5c2e55524e3a96b02c3904b0bb6d5a5404d21; from 6.14.8 before 6.15; 6.15 (not affected: before 6.15; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/4b10d04a68b8e17bb805df65f81a36a9041dd7bd>
- <https://git.kernel.org/stable/c/156cd6874ed93737820d7818f09aff59ae50f6c7>
- <https://git.kernel.org/stable/c/e4949a80f3b07e52dca76c34ce353633927a28a5>

## Sources

- CVE List: [CVE-2026-138865](https://www.cve.org/CVERecord?id=CVE-2026-138865), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138865](https://nvd.nist.gov/vuln/detail/CVE-2026-138865), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138865 · Whole record: https://cve.day/CVE-2026-138865.json · Rebuilt by cve.day 2026-11-30T14:32:25.685Z
