<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 04 Dec 2026 19:23:19 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-138896 — mm: hugetlb: return -ENOSPC on memcg charge failure</title>
      <link>https://db.gcve.eu/vuln/cve-2026-138896</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;mm: hugetlb: return -ENOSPC on memcg charge failure&lt;/p&gt;
&lt;p&gt;Patch series &amp;#34;Fix bugs in HugeTLB allocation when
mem_cgroup_charge_hugetlb() fails&amp;#34;, v2.&lt;/p&gt;
&lt;p&gt;In hugetlb_alloc_folio(), when mem_cgroup_charge_hugetlb() fails, there
are 2 issues:&lt;/p&gt;
&lt;p&gt;1. free_huge_folio() expects a non-refcounted folio and will
   VM_BUG_ON_FOLIO().&lt;/p&gt;
&lt;p&gt;2. -ENOMEM is returned, causing an infinite loop retrying the fault.&lt;/p&gt;
&lt;p&gt;This patch (of 2):&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Avoid this loop by returning -ENOSPC when charging fails, which maps to
VM_FAULT_SIGBUS, terminating the process cleanly.&lt;/p&gt;
&lt;p&gt;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&amp;#39;t trigger the OOM
killer and hence opt to terminate the process with a SIGBUS.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;mm: hugetlb: return -ENOSPC on memcg charge failure&lt;/p&gt;
&lt;p&gt;Patch series &amp;#34;Fix bugs in HugeTLB allocation when
mem_cgroup_charge_hugetlb() fails&amp;#34;, v2.&lt;/p&gt;
&lt;p&gt;In hugetlb_alloc_folio(), when mem_cgroup_charge_hugetlb() fails, there
are 2 issues:&lt;/p&gt;
&lt;p&gt;1. free_huge_folio() expects a non-refcounted folio and will
   VM_BUG_ON_FOLIO().&lt;/p&gt;
&lt;p&gt;2. -ENOMEM is returned, causing an infinite loop retrying the fault.&lt;/p&gt;
&lt;p&gt;This patch (of 2):&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Avoid this loop by returning -ENOSPC when charging fails, which maps to
VM_FAULT_SIGBUS, terminating the process cleanly.&lt;/p&gt;
&lt;p&gt;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&amp;#39;t trigger the OOM
killer and hence opt to terminate the process with a SIGBUS.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-138896</guid>
    </item>
  </channel>
</rss>
