{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138896","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.902Z","datePublished":"2026-11-30T13:25:59.770Z","dateUpdated":"2026-11-30T13:25:59.770Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:25:59.770Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: hugetlb: return -ENOSPC on memcg charge failure\n\nPatch series \"Fix bugs in HugeTLB allocation when\nmem_cgroup_charge_hugetlb() fails\", v2.\n\nIn hugetlb_alloc_folio(), when mem_cgroup_charge_hugetlb() fails, there\nare 2 issues:\n\n1. free_huge_folio() expects a non-refcounted folio and will\n   VM_BUG_ON_FOLIO().\n\n2. -ENOMEM is returned, causing an infinite loop retrying the fault.\n\n\nThis patch (of 2):\n\nWhen mem_cgroup_charge_hugetlb() fails with -ENOMEM, alloc_hugetlb_folio()\ncurrently propagates this error.  This results in the page fault handler\nreturning VM_FAULT_OOM.\n\nBecause HugeTLB allocations are high-order and use __GFP_RETRY_MAYFAIL,\nthey bypass the OOM killer.  Returning VM_FAULT_OOM to the #PF handler\nwithout triggering the OOM killer (or having it make progress) leads to an\ninfinite loop of retrying the fault.\n\nAvoid this loop by returning -ENOSPC when charging fails, which maps to\nVM_FAULT_SIGBUS, terminating the process cleanly.\n\nMake mem_cgroup_charge_hugetlb() fault handling use a common error\nhandling path, the same handling used for\nhugetlb_cgroup_uncharge_cgroup{,_rsvd}(), which also don't trigger the OOM\nkiller and hence opt to terminate the process with a SIGBUS."}],"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":"991135774c0e05a4734e6d32aa03b00355e4cac9","lessThan":"fb4752249623c6ac966a1a94a3f25456c0dfeea0","status":"affected","versionType":"git"},{"version":"991135774c0e05a4734e6d32aa03b00355e4cac9","lessThan":"11afc840288ab10a95b41ce5e298ce415fef0204","status":"affected","versionType":"git"},{"version":"991135774c0e05a4734e6d32aa03b00355e4cac9","lessThan":"956aeff185e7e16b989202bde0bb29859adba99d","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/hugetlb.c"],"versions":[{"version":"6.14","status":"affected"},{"version":"0","lessThan":"6.14","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.14","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/fb4752249623c6ac966a1a94a3f25456c0dfeea0"},{"url":"https://git.kernel.org/stable/c/11afc840288ab10a95b41ce5e298ce415fef0204"},{"url":"https://git.kernel.org/stable/c/956aeff185e7e16b989202bde0bb29859adba99d"}],"title":"mm: hugetlb: return -ENOSPC on memcg charge failure","x_generator":{"engine":"bippy-1.2.0"}}}}