cve.bz

CVE-2024-57945 linux linux kernel: Out-of-bounds Read

7.1 highEPSS 0.2%Fix available

High (7.1) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 11th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-57945 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-57945?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-57945?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-57945 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linuxfrom 5.10.212 before 5.10.258
Linuxfrom 6.1.81 before 6.1.140
Linuxfrom 6.6.21 before 6.6.72
Linuxfrom 5.15.151 before 5.16
Linuxfrom 6.7.9 before 6.8
Linux6.8 and later

Fixed in

ProductRelease lineFixed in
Linux5.105.10.258
Linux6.16.1.140
Linux6.66.6.72
Linux6.126.12.10
Linuxlater releases6.13

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux-6.16.1.140-1~deb11u1DLA-4271-1
Debian12linux6.1.140-1DEBIAN-CVE-2024-57945 DSA-5925-1
Debian13, 14linux6.12.10-1DEBIAN-CVE-2024-57945
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2024-57945
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2024-57945
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2024-57945
Ubuntu22.04:LTSlinux5.15.0-202.212UBUNTU-CVE-2024-57945 USN-8961-1
Ubuntu22.04:LTSlinux-aws5.15.0-1119.126UBUNTU-CVE-2024-57945 USN-8961-1
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1029.31~22.04.1UBUNTU-CVE-2024-57945 USN-7513-1
Ubuntu22.04:LTSlinux-azure5.15.0-1125.134UBUNTU-CVE-2024-57945 USN-8961-1
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1029.34~22.04.1UBUNTU-CVE-2024-57945 USN-7513-3
Ubuntu22.04:LTSlinux-azure-fde5.15.0-1124.133UBUNTU-CVE-2024-57945 USN-8962-1
Ubuntu22.04:LTSlinux-gcp5.15.0-1120.130UBUNTU-CVE-2024-57945 USN-8961-1
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1030.32~22.04.1UBUNTU-CVE-2024-57945 USN-7515-2
Ubuntu22.04:LTSlinux-gke5.15.0-1115.121UBUNTU-CVE-2024-57945 USN-8961-1
62 more for Ubuntu in the JSON and on Ubuntu's page.
Azure Linux2kernelno fix listedAZL-67845
Alpaquita23linux-lts6.1.140-r0BELL-CVE-2024-57945
Alpaquita25linux-lts6.12.41-r0BELL-CVE-2024-57945
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2024-57945

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability does not impact Red Hat Enterprise Linux or other Red Hat offerings because the flaw resides entirely within the RISC-V architecture memory management subsystem. Red Hat does not support or distribute kernels for the RISC-V hardware platform. As a result, supported Red Hat environments are not affected by this flaw.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-57945.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON