<?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>Wed, 30 Sep 2026 01:22:04 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-52934 — mm/MADV_COLLAPSE: catch !none !huge !bad pmd lookups</title>
      <link>https://db.gcve.eu/vuln/cve-2023-52934</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/MADV_COLLAPSE: catch !none !huge !bad pmd lookups&lt;/p&gt;
&lt;p&gt;In commit 34488399fa08 (&amp;#34;mm/madvise: add file and shmem support to
MADV_COLLAPSE&amp;#34;) we make the following change to find_pmd_or_thp_or_none():&lt;/p&gt;
&lt;p&gt;-       if (!pmd_present(pmde))
	-               return SCAN_PMD_NULL;
	+       if (pmd_none(pmde))
	+               return SCAN_PMD_NONE;&lt;/p&gt;
&lt;p&gt;This was for-use by MADV_COLLAPSE file/shmem codepaths, where
MADV_COLLAPSE might identify a pte-mapped hugepage, only to have
khugepaged race-in, free the pte table, and clear the pmd.  Such codepaths
include:&lt;/p&gt;
&lt;p&gt;A) If we find a suitably-aligned compound page of order HPAGE_PMD_ORDER
   already in the pagecache.
B) In retract_page_tables(), if we fail to grab mmap_lock for the target
   mm/address.&lt;/p&gt;
&lt;p&gt;In these cases, collapse_pte_mapped_thp() really does expect a none (not
just !present) pmd, and we want to suitably identify that case separate
from the case where no pmd is found, or it&amp;#39;s a bad-pmd (of course, many
things could happen once we drop mmap_lock, and the pmd could plausibly
undergo multiple transitions due to intervening fault, split, etc). 
Regardless, the code is prepared install a huge-pmd only when the existing
pmd entry is either a genuine pte-table-mapping-pmd, or the none-pmd.&lt;/p&gt;
&lt;p&gt;However, the commit introduces a logical hole; namely, that we&amp;#39;ve allowed
!none- &amp;amp;&amp;amp; !huge- &amp;amp;&amp;amp; !bad-pmds to be classified as genuine
pte-table-mapping-pmds.  One such example that could l…&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/MADV_COLLAPSE: catch !none !huge !bad pmd lookups&lt;/p&gt;
&lt;p&gt;In commit 34488399fa08 (&amp;#34;mm/madvise: add file and shmem support to
MADV_COLLAPSE&amp;#34;) we make the following change to find_pmd_or_thp_or_none():&lt;/p&gt;
&lt;p&gt;-       if (!pmd_present(pmde))
	-               return SCAN_PMD_NULL;
	+       if (pmd_none(pmde))
	+               return SCAN_PMD_NONE;&lt;/p&gt;
&lt;p&gt;This was for-use by MADV_COLLAPSE file/shmem codepaths, where
MADV_COLLAPSE might identify a pte-mapped hugepage, only to have
khugepaged race-in, free the pte table, and clear the pmd.  Such codepaths
include:&lt;/p&gt;
&lt;p&gt;A) If we find a suitably-aligned compound page of order HPAGE_PMD_ORDER
   already in the pagecache.
B) In retract_page_tables(), if we fail to grab mmap_lock for the target
   mm/address.&lt;/p&gt;
&lt;p&gt;In these cases, collapse_pte_mapped_thp() really does expect a none (not
just !present) pmd, and we want to suitably identify that case separate
from the case where no pmd is found, or it&amp;#39;s a bad-pmd (of course, many
things could happen once we drop mmap_lock, and the pmd could plausibly
undergo multiple transitions due to intervening fault, split, etc). 
Regardless, the code is prepared install a huge-pmd only when the existing
pmd entry is either a genuine pte-table-mapping-pmd, or the none-pmd.&lt;/p&gt;
&lt;p&gt;However, the commit introduces a logical hole; namely, that we&amp;#39;ve allowed
!none- &amp;amp;&amp;amp; !huge- &amp;amp;&amp;amp; !bad-pmds to be classified as genuine
pte-table-mapping-pmds.  One such example that could l…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2023-52934</guid>
    </item>
  </channel>
</rss>
