{"id":"CVE-2026-138865","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:17:42.990","lastModified":"2026-11-30T14:17:42.990","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: fix subpool minimum reservation rollback\n\nWhen a reservation request is partially covered by a subpool minimum and\nthe remaining global reservation fails, the error path first calls\nhugepage_subpool_put_pages() for the subpool-backed portion.  It removes\nthe failed global portion from used_hpages only afterwards.\n\nhugepage_subpool_put_pages() uses used_hpages to decide whether rsv_hpages\nshould be restored.  Since used_hpages still includes the global portion,\nit can remain at or above min_hpages and prevent that restoration.  It\nthen reports the subpool reservation as releasable, causing\nhugetlb_acct_memory() to incorrectly decrement h->resv_huge_pages.\n\nThis was reproduced with four 2 MB huge pages and a hugetlbfs mount with\nsize=10M,min_size=8M.  After a successful three-page reservation, a\ntwo-page reservation which needed one subpool page and one global page\nfailed with -ENOMEM.  HugePages_Rsvd incorrectly dropped from four to\nthree even though the subpool minimum was still four pages.\n\nRoll back the failed global portion from used_hpages first, so that\nhugepage_subpool_put_pages() evaluates the minimum reservation against the\ncurrent usage and returns the correct global adjustment."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["mm/hugetlb.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"a833a693a490ecff8ba377654c6d4d333718b6b1","lessThan":"4b10d04a68b8e17bb805df65f81a36a9041dd7bd","versionType":"git","status":"affected"},{"version":"a833a693a490ecff8ba377654c6d4d333718b6b1","lessThan":"156cd6874ed93737820d7818f09aff59ae50f6c7","versionType":"git","status":"affected"},{"version":"a833a693a490ecff8ba377654c6d4d333718b6b1","lessThan":"e4949a80f3b07e52dca76c34ce353633927a28a5","versionType":"git","status":"affected"},{"version":"adb5c2e55524e3a96b02c3904b0bb6d5a5404d21","versionType":"git","status":"affected"},{"version":"6.14.8","lessThan":"6.15","versionType":"semver","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["mm/hugetlb.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.15","status":"affected"},{"version":"0","lessThan":"6.15","versionType":"semver","status":"unaffected"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/156cd6874ed93737820d7818f09aff59ae50f6c7","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/4b10d04a68b8e17bb805df65f81a36a9041dd7bd","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e4949a80f3b07e52dca76c34ce353633927a28a5","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}