<?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:22:39 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-138868 — mm/hugetlb: charge folios to the target mm's memcg</title>
      <link>https://db.gcve.eu/vuln/cve-2026-138868</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: charge folios to the target mm&amp;#39;s memcg&lt;/p&gt;
&lt;p&gt;HugeTLB folios are currently charged to the memcg of the allocating task. 
This gives the wrong result when a userfaultfd handler populates a HugeTLB
VMA that belongs to another process.  The UFFDIO_COPY ioctl operates on
the userfaultfd context&amp;#39;s mm, but get_mem_cgroup_from_current() charges
the folio to the handler&amp;#39;s memcg instead.&lt;/p&gt;
&lt;p&gt;This can be reproduced by placing the faulting process and its userfaultfd
handler in different memory cgroups.  Have the target process register a
HugeTLB mapping with userfaultfd, trigger a missing fault, and let the
handler resolve it with UFFDIO_COPY.  The hugepage usage is then reported
in the handler&amp;#39;s memory.current instead of the target&amp;#39;s.&lt;/p&gt;
&lt;p&gt;The generic userfaultfd population path avoids this problem by charging
folios to dst_vma-&amp;gt;vm_mm.&lt;/p&gt;
&lt;p&gt;Pass the target mm through hugetlb_alloc_folio() and charge the folio by
using get_mem_cgroup_from_mm().  This preserves the existing charge timing
and error handling while making HugeTLB userfaultfd population consistent
with the generic path.&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: charge folios to the target mm&amp;#39;s memcg&lt;/p&gt;
&lt;p&gt;HugeTLB folios are currently charged to the memcg of the allocating task. 
This gives the wrong result when a userfaultfd handler populates a HugeTLB
VMA that belongs to another process.  The UFFDIO_COPY ioctl operates on
the userfaultfd context&amp;#39;s mm, but get_mem_cgroup_from_current() charges
the folio to the handler&amp;#39;s memcg instead.&lt;/p&gt;
&lt;p&gt;This can be reproduced by placing the faulting process and its userfaultfd
handler in different memory cgroups.  Have the target process register a
HugeTLB mapping with userfaultfd, trigger a missing fault, and let the
handler resolve it with UFFDIO_COPY.  The hugepage usage is then reported
in the handler&amp;#39;s memory.current instead of the target&amp;#39;s.&lt;/p&gt;
&lt;p&gt;The generic userfaultfd population path avoids this problem by charging
folios to dst_vma-&amp;gt;vm_mm.&lt;/p&gt;
&lt;p&gt;Pass the target mm through hugetlb_alloc_folio() and charge the folio by
using get_mem_cgroup_from_mm().  This preserves the existing charge timing
and error handling while making HugeTLB userfaultfd population consistent
with the generic path.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-138868</guid>
    </item>
  </channel>
</rss>
