<?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>Tue, 29 Sep 2026 03:05:26 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-53111 — mm/mremap: fix address wraparound in move_page_tables()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-53111</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/mremap: fix address wraparound in move_page_tables()&lt;/p&gt;
&lt;p&gt;On 32-bit platforms, it is possible for the expression `len + old_addr &amp;lt;
old_end` to be false-positive if `len + old_addr` wraps around. 
`old_addr` is the cursor in the old range up to which page table entries
have been moved; so if the operation succeeded, `old_addr` is the *end* of
the old region, and adding `len` to it can wrap.&lt;/p&gt;
&lt;p&gt;The overflow causes mremap() to mistakenly believe that PTEs have been
copied; the consequence is that mremap() bails out, but doesn&amp;#39;t move the
PTEs back before the new VMA is unmapped, causing anonymous pages in the
region to be lost.  So basically if userspace tries to mremap() a
private-anon region and hits this bug, mremap() will return an error and
the private-anon region&amp;#39;s contents appear to have been zeroed.&lt;/p&gt;
&lt;p&gt;The idea of this check is that `old_end - len` is the original start
address, and writing the check that way also makes it easier to read; so
fix the check by rearranging the comparison accordingly.&lt;/p&gt;
&lt;p&gt;(An alternate fix would be to refactor this function by introducing an
&amp;#34;orig_old_start&amp;#34; variable or such.)&lt;/p&gt;
&lt;p&gt;Tested in a VM with a 32-bit X86 kernel; without the patch:&lt;/p&gt;
&lt;p&gt;```
user@horn:~/big_mremap$ cat test.c
#define _GNU_SOURCE
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;err.h&amp;gt;
#include &amp;lt;sys/mman.h&amp;gt;&lt;/p&gt;
&lt;p&gt;#define ADDR1 ((void*)0x60000000)
#define ADDR2 ((void*)0x10000000)
#define SIZE          0x50000000uL&lt;/p&gt;
&lt;p&gt;int m…&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/mremap: fix address wraparound in move_page_tables()&lt;/p&gt;
&lt;p&gt;On 32-bit platforms, it is possible for the expression `len + old_addr &amp;lt;
old_end` to be false-positive if `len + old_addr` wraps around. 
`old_addr` is the cursor in the old range up to which page table entries
have been moved; so if the operation succeeded, `old_addr` is the *end* of
the old region, and adding `len` to it can wrap.&lt;/p&gt;
&lt;p&gt;The overflow causes mremap() to mistakenly believe that PTEs have been
copied; the consequence is that mremap() bails out, but doesn&amp;#39;t move the
PTEs back before the new VMA is unmapped, causing anonymous pages in the
region to be lost.  So basically if userspace tries to mremap() a
private-anon region and hits this bug, mremap() will return an error and
the private-anon region&amp;#39;s contents appear to have been zeroed.&lt;/p&gt;
&lt;p&gt;The idea of this check is that `old_end - len` is the original start
address, and writing the check that way also makes it easier to read; so
fix the check by rearranging the comparison accordingly.&lt;/p&gt;
&lt;p&gt;(An alternate fix would be to refactor this function by introducing an
&amp;#34;orig_old_start&amp;#34; variable or such.)&lt;/p&gt;
&lt;p&gt;Tested in a VM with a 32-bit X86 kernel; without the patch:&lt;/p&gt;
&lt;p&gt;```
user@horn:~/big_mremap$ cat test.c
#define _GNU_SOURCE
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;err.h&amp;gt;
#include &amp;lt;sys/mman.h&amp;gt;&lt;/p&gt;
&lt;p&gt;#define ADDR1 ((void*)0x60000000)
#define ADDR2 ((void*)0x10000000)
#define SIZE          0x50000000uL&lt;/p&gt;
&lt;p&gt;int m…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-53111</guid>
    </item>
  </channel>
</rss>
