<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T20:03:39.110035+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2025-21984</id>
    <title>CVE-2025-21984 — mm: fix kernel BUG when userfaultfd_move encounters swapcache</title>
    <updated>2026-09-29T20:03:39.113574+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>mm: fix kernel BUG when userfaultfd_move encounters swapcache</p>
<p>userfaultfd_move() checks whether the PTE entry is present or a
swap entry.</p>
<p>- If the PTE entry is present, move_present_pte() handles folio
  migration by setting:</p>
<p>src_folio-&gt;index = linear_page_index(dst_vma, dst_addr);</p>
<p>- If the PTE entry is a swap entry, move_swap_pte() simply copies
  the PTE to the new dst_addr.</p>
<p>This approach is incorrect because, even if the PTE is a swap entry,
it can still reference a folio that remains in the swap cache.</p>
<p>This creates a race window between steps 2 and 4.
 1. add_to_swap: The folio is added to the swapcache.
 2. try_to_unmap: PTEs are converted to swap entries.
 3. pageout: The folio is written back.
 4. Swapcache is cleared.
If userfaultfd_move() occurs in the window between steps 2 and 4,
after the swap PTE has been moved to the destination, accessing the
destination triggers do_swap_page(), which may locate the folio in
the swapcache. However, since the folio's index has not been updated
to match the destination VMA, do_swap_page() will detect a mismatch.</p>
<p>This can result in two critical issues depending on the system
configuration.</p>
<p>If KSM is disabled, both small and large folios can trigger a BUG
during the add_rmap operation due to:</p>
<p>page_pgoff(folio, page) != linear_page_index(vma, address)</p>
<p>[   13.336953] page: refcount:6 mapcount:1 mapping:00000000f43db19c index:0xffffaf150 pfn:0x4667c
[…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2025-21984"/>
  </entry>
</feed>
