{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99923","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.446Z","datePublished":"2026-11-30T13:18:19.011Z","dateUpdated":"2026-11-30T13:18:19.011Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:18:19.011Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/memfd: fix hugetlb reservation accounting in error paths\n\nIf hugetlb_add_to_page_cache() in memfd_alloc_folio() fails with -EEXIST,\na concurrent fault has already instantiated the folio in the page cache,\nand the reservation now belongs to that folio.  Calling\nhugetlb_unreserve_pages() in that case incorrectly removes the region\nbacking the cached folio and releases one reservation more than it should,\nleaving that folio in the page cache with no region recording it.\n\nThat leaves resv_huge_pages one page short until that folio is removed\nfrom the page cache, so available_huge_pages() reports a page that is not\nactually free and the pool can grant one reservation more than it can\nback.  Applications using hugetlb memfds can then fail to allocate or\nfault in a page they already reserved.  They see -ENOMEM or -ENOSPC from\nthe allocation or fault path even though the reservation and\nHugePages_Free still look healthy.\n\nSo hold the hugetlb fault mutex from hugetlb_reserve_pages() until the\nerror-path unreserve completes to make the reserve, allocate and\ninstantiate steps atomic against concurrent faults.  With the mutex held\nfrom the start, a concurrent fault can no longer consume the reservation\nbetween reserve and allocate/instantiate.  If a fault completed before the\nmutex was taken, it has already added the region for that index, so\nhugetlb_reserve_pages() returns 0 and the error path leaves the region in\nplace."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/memfd.c"],"versions":[{"version":"717cf9357325055ab6b41c4e0581f4d67601eb58","lessThan":"ef619ce17a4a0f5f85649ced1ce96fe53737e4f3","status":"affected","versionType":"git"},{"version":"717cf9357325055ab6b41c4e0581f4d67601eb58","lessThan":"90f2f099e69bfb341c714751369c36cf3a420f6c","status":"affected","versionType":"git"},{"version":"717cf9357325055ab6b41c4e0581f4d67601eb58","lessThan":"50ee565c1e900e247e439e4139839b060c968343","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/memfd.c"],"versions":[{"version":"6.17","status":"affected"},{"version":"0","lessThan":"6.17","status":"unaffected","versionType":"semver"},{"version":"6.18.64","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.17","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/ef619ce17a4a0f5f85649ced1ce96fe53737e4f3"},{"url":"https://git.kernel.org/stable/c/90f2f099e69bfb341c714751369c36cf3a420f6c"},{"url":"https://git.kernel.org/stable/c/50ee565c1e900e247e439e4139839b060c968343"}],"title":"mm/memfd: fix hugetlb reservation accounting in error paths","x_generator":{"engine":"bippy-1.2.0"}}}}