{"id":"CVE-2026-99923","aliases":[],"cve":{"records":[{"id":"CVE-2026-99923","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.446Z","published":"2026-11-30T13:18:19.011Z","modified":"2026-11-30T13:18:19.011Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-30T13:18:19.011Z"}],"references":[{"url":"https://git.kernel.org/stable/c/ef619ce17a4a0f5f85649ced1ce96fe53737e4f3","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/90f2f099e69bfb341c714751369c36cf3a420f6c","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/50ee565c1e900e247e439e4139839b060c968343","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"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"}]}]}]}],"prioritization":[]},"title":"mm/memfd: fix hugetlb reservation accounting in error paths","titleSource":"Linux","descriptionSource":"Linux","description":"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.","score":null,"severity":"unknown","published":"2026-11-30T13:18:19.011Z","modified":"2026-11-30T13:18:19.011Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"717cf9357325055ab6b41c4e0581f4d67601eb58","status":"affected","lessThan":"ef619ce17a4a0f5f85649ced1ce96fe53737e4f3","versionType":"git"},{"version":"717cf9357325055ab6b41c4e0581f4d67601eb58","status":"affected","lessThan":"90f2f099e69bfb341c714751369c36cf3a420f6c","versionType":"git"},{"version":"717cf9357325055ab6b41c4e0581f4d67601eb58","status":"affected","lessThan":"50ee565c1e900e247e439e4139839b060c968343","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99923"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99923"}],"remediation":[],"references":["https://git.kernel.org/stable/c/ef619ce17a4a0f5f85649ced1ce96fe53737e4f3","https://git.kernel.org/stable/c/90f2f099e69bfb341c714751369c36cf3a420f6c","https://git.kernel.org/stable/c/50ee565c1e900e247e439e4139839b060c968343"],"sources":[{"name":"CVE","id":"CVE-2026-99923","modified":"2026-11-30T13:18:19.011Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99923"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-30T14:00:09.283Z","kev":{"status":"not-listed","checkedAt":"2026-11-30T22:55:31.926Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}