{"id":"CVE-2024-26795","summary":"riscv: Sparse-Memory/vmemmap out-of-bounds fix","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: Sparse-Memory/vmemmap out-of-bounds fix\n\nOffset vmemmap so that the first page of vmemmap will be mapped\nto the first page of physical memory in order to ensure that\nvmemmap’s bounds will be respected during\npfn_to_page()/page_to_pfn() operations.\nThe conversion macros will produce correct SV39/48/57 addresses\nfor every possible/valid DRAM_BASE inside the physical memory limits.\n\nv2:Address Alex's comments","modified":"2026-04-02T10:05:58.243005Z","published":"2024-04-04T08:20:25.063Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26795.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2a1728c15ec4f45ed9248ae22f626541c179bfbe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5941a90c55d3bfba732b32208d58d997600b44ef"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8310080799b40fd9f2a8b808c657269678c149af"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8af1c121b0102041809bc137ec600d1865eaeedd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a11dd49dcb9376776193e15641f84fcc1e5980c9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a278d5c60f21aa15d540abb2f2da6e6d795c3e6e"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26795.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26795"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d95f1a542c3df396137afa217ef9bd39cb8931ca"},{"fixed":"8af1c121b0102041809bc137ec600d1865eaeedd"},{"fixed":"5941a90c55d3bfba732b32208d58d997600b44ef"},{"fixed":"8310080799b40fd9f2a8b808c657269678c149af"},{"fixed":"a278d5c60f21aa15d540abb2f2da6e6d795c3e6e"},{"fixed":"2a1728c15ec4f45ed9248ae22f626541c179bfbe"},{"fixed":"a11dd49dcb9376776193e15641f84fcc1e5980c9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26795.json"}}],"schema_version":"1.7.5"}