<?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://vulnerability.circl.lu</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>Thu, 01 Oct 2026 19:33:44 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-39725 — mm/vmscan: fix hwpoisoned large folio handling in shrink_folio_list</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-39725</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/vmscan: fix hwpoisoned large folio handling in shrink_folio_list&lt;/p&gt;
&lt;p&gt;In shrink_folio_list(), the hwpoisoned folio may be large folio, which
can&amp;#39;t be handled by unmap_poisoned_folio().  For THP, try_to_unmap_one()
must be passed with TTU_SPLIT_HUGE_PMD to split huge PMD first and then
retry.  Without TTU_SPLIT_HUGE_PMD, we will trigger null-ptr deref of
pvmw.pte.  Even we passed TTU_SPLIT_HUGE_PMD, we will trigger a
WARN_ON_ONCE due to the page isn&amp;#39;t in swapcache.&lt;/p&gt;
&lt;p&gt;Since UCE is rare in real world, and race with reclaimation is more rare,
just skipping the hwpoisoned large folio is enough.  memory_failure() will
handle it if the UCE is triggered again.&lt;/p&gt;
&lt;p&gt;This happens when memory reclaim for large folio races with
memory_failure(), and will lead to kernel panic.  The race is as
follows:&lt;/p&gt;
&lt;p&gt;cpu0      cpu1
 shrink_folio_list memory_failure
  TestSetPageHWPoison
  unmap_poisoned_folio
  --&amp;gt; trigger BUG_ON due to
  unmap_poisoned_folio couldn&amp;#39;t
   handle large folio&lt;/p&gt;
&lt;p&gt;[tujinjiang@huawei.com: add comment to unmap_poisoned_folio()]&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/vmscan: fix hwpoisoned large folio handling in shrink_folio_list&lt;/p&gt;
&lt;p&gt;In shrink_folio_list(), the hwpoisoned folio may be large folio, which
can&amp;#39;t be handled by unmap_poisoned_folio().  For THP, try_to_unmap_one()
must be passed with TTU_SPLIT_HUGE_PMD to split huge PMD first and then
retry.  Without TTU_SPLIT_HUGE_PMD, we will trigger null-ptr deref of
pvmw.pte.  Even we passed TTU_SPLIT_HUGE_PMD, we will trigger a
WARN_ON_ONCE due to the page isn&amp;#39;t in swapcache.&lt;/p&gt;
&lt;p&gt;Since UCE is rare in real world, and race with reclaimation is more rare,
just skipping the hwpoisoned large folio is enough.  memory_failure() will
handle it if the UCE is triggered again.&lt;/p&gt;
&lt;p&gt;This happens when memory reclaim for large folio races with
memory_failure(), and will lead to kernel panic.  The race is as
follows:&lt;/p&gt;
&lt;p&gt;cpu0      cpu1
 shrink_folio_list memory_failure
  TestSetPageHWPoison
  unmap_poisoned_folio
  --&amp;gt; trigger BUG_ON due to
  unmap_poisoned_folio couldn&amp;#39;t
   handle large folio&lt;/p&gt;
&lt;p&gt;[tujinjiang@huawei.com: add comment to unmap_poisoned_folio()]&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-39725</guid>
    </item>
  </channel>
</rss>
