<?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://cve.radiocsirt.org</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>Mon, 05 Oct 2026 18:47:37 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-57945 — riscv: mm: Fix the out of bound issue of vmemmap address</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2024-57945</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;riscv: mm: Fix the out of bound issue of vmemmap address&lt;/p&gt;
&lt;p&gt;In sparse vmemmap model, the virtual address of vmemmap is calculated as:
((struct page *)VMEMMAP_START - (phys_ram_base &amp;gt;&amp;gt; PAGE_SHIFT)).
And the struct page&amp;#39;s va can be calculated with an offset:
(vmemmap + (pfn)).&lt;/p&gt;
&lt;p&gt;However, when initializing struct pages, kernel actually starts from the
first page from the same section that phys_ram_base belongs to. If the
first page&amp;#39;s physical address is not (phys_ram_base &amp;gt;&amp;gt; PAGE_SHIFT), then
we get an va below VMEMMAP_START when calculating va for it&amp;#39;s struct page.&lt;/p&gt;
&lt;p&gt;For example, if phys_ram_base starts from 0x82000000 with pfn 0x82000, the
first page in the same section is actually pfn 0x80000. During
init_unavailable_range(), we will initialize struct page for pfn 0x80000
with virtual address ((struct page *)VMEMMAP_START - 0x2000), which is
below VMEMMAP_START as well as PCI_IO_END.&lt;/p&gt;
&lt;p&gt;This commit fixes this bug by introducing a new variable
&amp;#39;vmemmap_start_pfn&amp;#39; which is aligned with memory section size and using
it to calculate vmemmap address instead of phys_ram_base.&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;riscv: mm: Fix the out of bound issue of vmemmap address&lt;/p&gt;
&lt;p&gt;In sparse vmemmap model, the virtual address of vmemmap is calculated as:
((struct page *)VMEMMAP_START - (phys_ram_base &amp;gt;&amp;gt; PAGE_SHIFT)).
And the struct page&amp;#39;s va can be calculated with an offset:
(vmemmap + (pfn)).&lt;/p&gt;
&lt;p&gt;However, when initializing struct pages, kernel actually starts from the
first page from the same section that phys_ram_base belongs to. If the
first page&amp;#39;s physical address is not (phys_ram_base &amp;gt;&amp;gt; PAGE_SHIFT), then
we get an va below VMEMMAP_START when calculating va for it&amp;#39;s struct page.&lt;/p&gt;
&lt;p&gt;For example, if phys_ram_base starts from 0x82000000 with pfn 0x82000, the
first page in the same section is actually pfn 0x80000. During
init_unavailable_range(), we will initialize struct page for pfn 0x80000
with virtual address ((struct page *)VMEMMAP_START - 0x2000), which is
below VMEMMAP_START as well as PCI_IO_END.&lt;/p&gt;
&lt;p&gt;This commit fixes this bug by introducing a new variable
&amp;#39;vmemmap_start_pfn&amp;#39; which is aligned with memory section size and using
it to calculate vmemmap address instead of phys_ram_base.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2024-57945</guid>
    </item>
  </channel>
</rss>
