PT-2026-162756

CVE-2026-138896

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
mm: hugetlb: return -ENOSPC on memcg charge failure
Patch series "Fix bugs in HugeTLB allocation when mem cgroup charge hugetlb() fails", v2.
In hugetlb alloc folio(), when mem cgroup charge hugetlb() fails, there are 2 issues:
  1. free huge folio() expects a non-refcounted folio and will VM BUG ON FOLIO().
  2. -ENOMEM is returned, causing an infinite loop retrying the fault.
This patch (of 2):
When mem cgroup charge hugetlb() fails with -ENOMEM, alloc hugetlb folio() currently propagates this error. This results in the page fault handler returning VM FAULT OOM.
Because HugeTLB allocations are high-order and use GFP RETRY MAYFAIL, they bypass the OOM killer. Returning VM FAULT OOM to the #PF handler without triggering the OOM killer (or having it make progress) leads to an infinite loop of retrying the fault.
Avoid this loop by returning -ENOSPC when charging fails, which maps to VM FAULT SIGBUS, terminating the process cleanly.
Make mem cgroup charge hugetlb() fault handling use a common error handling path, the same handling used for hugetlb cgroup uncharge cgroup{, rsvd}(), which also don't trigger the OOM killer and hence opt to terminate the process with a SIGBUS.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾