# CVE-2024-26795: riscv: Sparse-Memory/vmemmap out-of-bounds fix

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-04-04T08:20:25.063Z
- Modified: 2026-08-05T11:27:18.433Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

riscv: Sparse-Memory/vmemmap out-of-bounds fix

Offset vmemmap so that the first page of vmemmap will be mapped
to the first page of physical memory in order to ensure that
vmemmap’s bounds will be respected during
pfn_to_page()/page_to_pfn() operations.
The conversion macros will produce correct SV39/48/57 addresses
for every possible/valid DRAM_BASE inside the physical memory limits.

v2:Address Alex's comments

(As written by CVE List.)

## Affected

- Linux Linux: from d95f1a542c3df396137afa217ef9bd39cb8931ca before 5941a90c55d3bfba732b32208d58d997600b44ef; from d95f1a542c3df396137afa217ef9bd39cb8931ca before 8310080799b40fd9f2a8b808c657269678c149af; from d95f1a542c3df396137afa217ef9bd39cb8931ca before a278d5c60f21aa15d540abb2f2da6e6d795c3e6e; from d95f1a542c3df396137afa217ef9bd39cb8931ca before 2a1728c15ec4f45ed9248ae22f626541c179bfbe; from d95f1a542c3df396137afa217ef9bd39cb8931ca before a11dd49dcb9376776193e15641f84fcc1e5980c9; 5.4 (not affected: before 5.4; from 5.15.151 up to 5.15.*; from 6.1.81 up to 6.1.*; from 6.6.21 up to 6.6.*; from 6.7.9 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 5.4 before 5.10.212; from 5.11 before 5.15.151; from 5.16 before 6.1.81; from 6.2 before 6.6.21; from 6.7 before 6.7.9; 6.8
- debian debian_linux: 10.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/5941a90c55d3bfba732b32208d58d997600b44ef> (patch)
- <https://git.kernel.org/stable/c/8310080799b40fd9f2a8b808c657269678c149af> (patch)
- <https://git.kernel.org/stable/c/a278d5c60f21aa15d540abb2f2da6e6d795c3e6e> (patch)
- <https://git.kernel.org/stable/c/2a1728c15ec4f45ed9248ae22f626541c179bfbe> (patch)
- <https://git.kernel.org/stable/c/a11dd49dcb9376776193e15641f84fcc1e5980c9> (patch)
- <https://git.kernel.org/stable/c/8af1c121b0102041809bc137ec600d1865eaeedd> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (mailing-list)

## Sources

- CVE List: [CVE-2024-26795](https://www.cve.org/CVERecord?id=CVE-2024-26795), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-26795](https://nvd.nist.gov/vuln/detail/CVE-2024-26795), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-26795 · Whole record: https://cve.day/CVE-2024-26795.json · Rebuilt by cve.day 2026-11-25T22:58:38.744Z
