Reference page — cumulative record through Wednesday, August 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.
Linux Linux — riscv: mm: Fix the out of bound issue of vmemmap address
AV AC PR UI S C I A CVSS EPSS %ile KEV
L L L N U H N H 7.1 .0021 11.8 —
AFFECTED
Product Versions Fixed
Linux 8af1c121b0102041809bc137ec600d1865eaeedd – —
Linux 6.8 – 5.10.258
TIMELINE
Jan 19 Reserved by Linux
Jan 21 Published (CNA: Linux)
Aug 4 RESCORED — CVE-2024-57945 (Linux). CVSS 7.8 → 7.1 (NVD).
Description
In the Linux kernel, the following vulnerability has been resolved:
riscv: mm: Fix the out of bound issue of vmemmap address
In sparse vmemmap model, the virtual address of vmemmap is calculated as:
((struct page *)VMEMMAP_START - (phys_ram_base >> PAGE_SHIFT)).
And the struct page's va can be calculated with an offset:
(vmemmap + (pfn)).
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's physical address is not (phys_ram_base >> PAGE_SHIFT), then
we get an va below VMEMMAP_START when calculating va for it's struct page.
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.
This commit fixes this bug by introducing a new variable
'vmemmap_start_pfn' which is aligned with memory section size and using
it to calculate vmemmap address instead of phys_ram_base.
Lifecycle
Complete event history — 3 events, chronological
| Date | Event | Detail |
| January 19, 2025 | Reserved | Reserved by Linux |
| January 21, 2025 | Published | Published (CNA: Linux) |
| August 4, 2026 | RESCORED | RESCORED — CVE-2024-57945 (Linux). CVSS 7.8 → 7.1 (NVD). |
Affected
Affected products and packages — 2 rows
| Vendor | Product / Package | Ecosystem | Version introduced | Fixed |
| Linux | Linux | — | 8af1c121b0102041809bc137ec600d1865eaeedd | — |
| Linux | Linux | — | 6.8 | 5.10.258 |
About this page
This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2024-57945 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Wednesday, August 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.