{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138865","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.899Z","datePublished":"2026-11-30T13:25:42.582Z","dateUpdated":"2026-11-30T13:25:42.582Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:25:42.582Z"},"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":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/hugetlb.c"],"versions":[{"version":"a833a693a490ecff8ba377654c6d4d333718b6b1","lessThan":"4b10d04a68b8e17bb805df65f81a36a9041dd7bd","status":"affected","versionType":"git"},{"version":"a833a693a490ecff8ba377654c6d4d333718b6b1","lessThan":"156cd6874ed93737820d7818f09aff59ae50f6c7","status":"affected","versionType":"git"},{"version":"a833a693a490ecff8ba377654c6d4d333718b6b1","lessThan":"e4949a80f3b07e52dca76c34ce353633927a28a5","status":"affected","versionType":"git"},{"version":"adb5c2e55524e3a96b02c3904b0bb6d5a5404d21","status":"affected","versionType":"git"},{"version":"6.14.8","lessThan":"6.15","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/hugetlb.c"],"versions":[{"version":"6.15","status":"affected"},{"version":"0","lessThan":"6.15","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14.8"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/4b10d04a68b8e17bb805df65f81a36a9041dd7bd"},{"url":"https://git.kernel.org/stable/c/156cd6874ed93737820d7818f09aff59ae50f6c7"},{"url":"https://git.kernel.org/stable/c/e4949a80f3b07e52dca76c34ce353633927a28a5"}],"title":"mm/hugetlb: fix subpool minimum reservation rollback","x_generator":{"engine":"bippy-1.2.0"}}}}