<?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>Tue, 24 Nov 2026 13:40:24 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-99580 — mm/userfaultfd: only allocate anon_vma in CoW mappings</title>
      <link>https://db.gcve.eu/vuln/cve-2026-99580</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/userfaultfd: only allocate anon_vma in CoW mappings&lt;/p&gt;
&lt;p&gt;find_vma_and_prepare_anon() can end up allocating an anon_vma in VMAs that
are not CoW mappings, which is wrong.&lt;/p&gt;
&lt;p&gt;If we have a MAP_SHARED R/O file mapped, we lack VM_SHARED (but do have
VM_MAYSHARE) and lack VM_MAYWRITE.&lt;/p&gt;
&lt;p&gt;While uffd later rejects such mappings (uffd registration requires
VM_MAYWRITE, see comment in validate_dst_vma) find_vma_and_prepare_anon()
still wrongly allocates an anon vma before it validates the vma.&lt;/p&gt;
&lt;p&gt;This in turn later confuses copy_page_range()-&amp;gt;vma_needs_copy() such
that we end up calling copy_hugetlb_page_range() with ranges that
actually do not contain *any* per-pagetable information that would
require copying, which is the basis for PMD-table sharing in the first
place.&lt;/p&gt;
&lt;p&gt;copy_hugetlb_page_range() should not have to worry about shared
PMD tables at all: it doesn&amp;#39;t make any sense to copy page tables that are
shared, as they can be fully recreated later. Ending up in the function
with shareable page tables is the real issue.&lt;/p&gt;
&lt;p&gt;If a destination PMD table is shared in copy_hugetlb_page_range(), it
might get concurrently unshared as we are not holding relevant
locks, resulting in us using a page table that is no longer mapped and
possibly freed after calling:&lt;/p&gt;
&lt;p&gt;dst_pte = huge_pte_alloc(dst, dst_vma, addr, sz);&lt;/p&gt;
&lt;p&gt;To fix it, do not allocate an anon_vma in non-CoW mappings and add a
safety guard to copy_hugetlb_page_range(), making s…&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/userfaultfd: only allocate anon_vma in CoW mappings&lt;/p&gt;
&lt;p&gt;find_vma_and_prepare_anon() can end up allocating an anon_vma in VMAs that
are not CoW mappings, which is wrong.&lt;/p&gt;
&lt;p&gt;If we have a MAP_SHARED R/O file mapped, we lack VM_SHARED (but do have
VM_MAYSHARE) and lack VM_MAYWRITE.&lt;/p&gt;
&lt;p&gt;While uffd later rejects such mappings (uffd registration requires
VM_MAYWRITE, see comment in validate_dst_vma) find_vma_and_prepare_anon()
still wrongly allocates an anon vma before it validates the vma.&lt;/p&gt;
&lt;p&gt;This in turn later confuses copy_page_range()-&amp;gt;vma_needs_copy() such
that we end up calling copy_hugetlb_page_range() with ranges that
actually do not contain *any* per-pagetable information that would
require copying, which is the basis for PMD-table sharing in the first
place.&lt;/p&gt;
&lt;p&gt;copy_hugetlb_page_range() should not have to worry about shared
PMD tables at all: it doesn&amp;#39;t make any sense to copy page tables that are
shared, as they can be fully recreated later. Ending up in the function
with shareable page tables is the real issue.&lt;/p&gt;
&lt;p&gt;If a destination PMD table is shared in copy_hugetlb_page_range(), it
might get concurrently unshared as we are not holding relevant
locks, resulting in us using a page table that is no longer mapped and
possibly freed after calling:&lt;/p&gt;
&lt;p&gt;dst_pte = huge_pte_alloc(dst, dst_vma, addr, sz);&lt;/p&gt;
&lt;p&gt;To fix it, do not allocate an anon_vma in non-CoW mappings and add a
safety guard to copy_hugetlb_page_range(), making s…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-99580</guid>
    </item>
  </channel>
</rss>
