<?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, 06 Oct 2026 15:12:41 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-42317 — mm/huge_memory: avoid PMD-size page cache if needed</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-42317</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/huge_memory: avoid PMD-size page cache if needed&lt;/p&gt;
&lt;p&gt;xarray can&amp;#39;t support arbitrary page cache size.  the largest and supported
page cache size is defined as MAX_PAGECACHE_ORDER by commit 099d90642a71
(&amp;#34;mm/filemap: make MAX_PAGECACHE_ORDER acceptable to xarray&amp;#34;).  However,
it&amp;#39;s possible to have 512MB page cache in the huge memory&amp;#39;s collapsing
path on ARM64 system whose base page size is 64KB.  512MB page cache is
breaking the limitation and a warning is raised when the xarray entry is
split as shown in the following example.&lt;/p&gt;
&lt;p&gt;[root@dhcp-10-26-1-207 ~]# cat /proc/1/smaps | grep KernelPageSize
KernelPageSize:       64 kB
[root@dhcp-10-26-1-207 ~]# cat /tmp/test.c
   :
int main(int argc, char **argv)
{
	const char *filename = TEST_XFS_FILENAME;
	int fd = 0;
	void *buf = (void *)-1, *p;
	int pgsize = getpagesize();
	int ret = 0;&lt;/p&gt;
&lt;p&gt;if (pgsize != 0x10000) {
		fprintf(stdout, &amp;#34;System with 64KB base page size is required!\n&amp;#34;);
		return -EPERM;
	}&lt;/p&gt;
&lt;p&gt;system(&amp;#34;echo 0 &amp;gt; /sys/devices/virtual/bdi/253:0/read_ahead_kb&amp;#34;);
	system(&amp;#34;echo 1 &amp;gt; /proc/sys/vm/drop_caches&amp;#34;);&lt;/p&gt;
&lt;p&gt;/* Open the xfs file */
	fd = open(filename, O_RDONLY);
	assert(fd &amp;gt; 0);&lt;/p&gt;
&lt;p&gt;/* Create VMA */
	buf = mmap(NULL, TEST_MEM_SIZE, PROT_READ, MAP_SHARED, fd, 0);
	assert(buf != (void *)-1);
	fprintf(stdout, &amp;#34;mapped buffer at 0x%p\n&amp;#34;, buf);&lt;/p&gt;
&lt;p&gt;/* Populate VMA */
	ret = madvise(buf, TEST_MEM_SIZE, MADV_NOHUGEPAGE);
	assert(ret == 0);
	ret = madvise(buf, TEST_MEM_SIZE,…&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/huge_memory: avoid PMD-size page cache if needed&lt;/p&gt;
&lt;p&gt;xarray can&amp;#39;t support arbitrary page cache size.  the largest and supported
page cache size is defined as MAX_PAGECACHE_ORDER by commit 099d90642a71
(&amp;#34;mm/filemap: make MAX_PAGECACHE_ORDER acceptable to xarray&amp;#34;).  However,
it&amp;#39;s possible to have 512MB page cache in the huge memory&amp;#39;s collapsing
path on ARM64 system whose base page size is 64KB.  512MB page cache is
breaking the limitation and a warning is raised when the xarray entry is
split as shown in the following example.&lt;/p&gt;
&lt;p&gt;[root@dhcp-10-26-1-207 ~]# cat /proc/1/smaps | grep KernelPageSize
KernelPageSize:       64 kB
[root@dhcp-10-26-1-207 ~]# cat /tmp/test.c
   :
int main(int argc, char **argv)
{
	const char *filename = TEST_XFS_FILENAME;
	int fd = 0;
	void *buf = (void *)-1, *p;
	int pgsize = getpagesize();
	int ret = 0;&lt;/p&gt;
&lt;p&gt;if (pgsize != 0x10000) {
		fprintf(stdout, &amp;#34;System with 64KB base page size is required!\n&amp;#34;);
		return -EPERM;
	}&lt;/p&gt;
&lt;p&gt;system(&amp;#34;echo 0 &amp;gt; /sys/devices/virtual/bdi/253:0/read_ahead_kb&amp;#34;);
	system(&amp;#34;echo 1 &amp;gt; /proc/sys/vm/drop_caches&amp;#34;);&lt;/p&gt;
&lt;p&gt;/* Open the xfs file */
	fd = open(filename, O_RDONLY);
	assert(fd &amp;gt; 0);&lt;/p&gt;
&lt;p&gt;/* Create VMA */
	buf = mmap(NULL, TEST_MEM_SIZE, PROT_READ, MAP_SHARED, fd, 0);
	assert(buf != (void *)-1);
	fprintf(stdout, &amp;#34;mapped buffer at 0x%p\n&amp;#34;, buf);&lt;/p&gt;
&lt;p&gt;/* Populate VMA */
	ret = madvise(buf, TEST_MEM_SIZE, MADV_NOHUGEPAGE);
	assert(ret == 0);
	ret = madvise(buf, TEST_MEM_SIZE,…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-42317</guid>
    </item>
  </channel>
</rss>
