<?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>Sat, 10 Oct 2026 19:03:33 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-47674 — mm: avoid leaving partial pfn mappings around in error case</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-47674</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: avoid leaving partial pfn mappings around in error case&lt;/p&gt;
&lt;p&gt;As Jann points out, PFN mappings are special, because unlike normal
memory mappings, there is no lifetime information associated with the
mapping - it is just a raw mapping of PFNs with no reference counting of
a &amp;#39;struct page&amp;#39;.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s all very much intentional, but it does mean that it&amp;#39;s easy to
mess up the cleanup in case of errors.  Yes, a failed mmap() will always
eventually clean up any partial mappings, but without any explicit
lifetime in the page table mapping itself, it&amp;#39;s very easy to do the
error handling in the wrong order.&lt;/p&gt;
&lt;p&gt;In particular, it&amp;#39;s easy to mistakenly free the physical backing store
before the page tables are actually cleaned up and (temporarily) have
stale dangling PTE entries.&lt;/p&gt;
&lt;p&gt;To make this situation less error-prone, just make sure that any partial
pfn mapping is torn down early, before any other error handling.&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: avoid leaving partial pfn mappings around in error case&lt;/p&gt;
&lt;p&gt;As Jann points out, PFN mappings are special, because unlike normal
memory mappings, there is no lifetime information associated with the
mapping - it is just a raw mapping of PFNs with no reference counting of
a &amp;#39;struct page&amp;#39;.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s all very much intentional, but it does mean that it&amp;#39;s easy to
mess up the cleanup in case of errors.  Yes, a failed mmap() will always
eventually clean up any partial mappings, but without any explicit
lifetime in the page table mapping itself, it&amp;#39;s very easy to do the
error handling in the wrong order.&lt;/p&gt;
&lt;p&gt;In particular, it&amp;#39;s easy to mistakenly free the physical backing store
before the page tables are actually cleaned up and (temporarily) have
stale dangling PTE entries.&lt;/p&gt;
&lt;p&gt;To make this situation less error-prone, just make sure that any partial
pfn mapping is torn down early, before any other error handling.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-47674</guid>
    </item>
  </channel>
</rss>
