{"id":"CVE-2026-138896","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:17:47.503","lastModified":"2026-11-30T14:17:47.503","vulnStatus":"Received","cveTags":[],"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":[{"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":"991135774c0e05a4734e6d32aa03b00355e4cac9","lessThan":"fb4752249623c6ac966a1a94a3f25456c0dfeea0","versionType":"git","status":"affected"},{"version":"991135774c0e05a4734e6d32aa03b00355e4cac9","lessThan":"11afc840288ab10a95b41ce5e298ce415fef0204","versionType":"git","status":"affected"},{"version":"991135774c0e05a4734e6d32aa03b00355e4cac9","lessThan":"956aeff185e7e16b989202bde0bb29859adba99d","versionType":"git","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.14","status":"affected"},{"version":"0","lessThan":"6.14","versionType":"semver","status":"unaffected"},{"version":"6.18.64","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/11afc840288ab10a95b41ce5e298ce415fef0204","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/956aeff185e7e16b989202bde0bb29859adba99d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/fb4752249623c6ac966a1a94a3f25456c0dfeea0","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}