Skip to main content
Network Thinking Solutions Logo

CVE-2024-57945

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)).

All CVEs
CVE-2024-57945Published 1/21/2025

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)).

Vendor advisory
CVSS7.8High

Overview

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.

Published
1/21/2025
Last modified
8/4/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.10.212, < 5.11

Verify advisory

Source
linux kernel
linux
≥ 5.15.151, < 5.16

Verify advisory

Source
linux kernel
linux
≥ 6.1.81, < 6.1.140

Verify advisory

Source
linux kernel
linux
≥ 6.6.21, < 6.6.72

Verify advisory

Source
linux kernel
linux
≥ 6.7.9, < 6.8

Verify advisory

Source
linux kernel
linux
≥ 6.8.1, < 6.12.10

Verify advisory

Source
linux kernel
linux
6.8

Verify advisory

Source
linux kernel
linux
6.8

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
linux kernel
linux
6.13

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 8af1c121b0102041809bc137ec600d1865eaeedd, < 04350304428063da6a55a8a4597d409dc69148b2

Verify advisory

Source
Linux
Linux
≥ 8310080799b40fd9f2a8b808c657269678c149af, < 92f08673d3f1893191323572f60e3c62f2e57c2f

Verify advisory

Source
Linux
Linux
≥ a278d5c60f21aa15d540abb2f2da6e6d795c3e6e, < a4a7ac3d266008018f05fae53060fcb331151a14

Verify advisory

Source
Linux
Linux
≥ a11dd49dcb9376776193e15641f84fcc1e5980c9, < d2bd51954ac8377c2f1eb1813e694788998add66

Verify advisory

Source
Linux
Linux
≥ a11dd49dcb9376776193e15641f84fcc1e5980c9, < f754f27e98f88428aaf6be6e00f5cbce97f62d4b

Verify advisory

Source
Linux
Linux
5941a90c55d3bfba732b32208d58d997600b44ef

Verify advisory

Source
Linux
Linux
2a1728c15ec4f45ed9248ae22f626541c179bfbe

Verify advisory

Source
Linux
Linux
≥ 5.10.212, < 5.10.258

Verify advisory

Source
Linux
Linux
≥ 6.1.81, < 6.1.140

Verify advisory

Source
Linux
Linux
≥ 6.6.21, < 6.6.72

Verify advisory

Source
Linux
Linux
≥ 5.15.151, < 5.16

Verify advisory

Source
Linux
Linux
≥ 6.7.9, < 6.8

Verify advisory

Source
Linux
Linux
6.8

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.