{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2024-57945",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2024-57945",
    "idYear": 2024,
    "status": "PUBLISHED",
    "publishedAt": "2025-01-21T12:18:12.548Z",
    "updatedAt": "2026-08-05T11:47:00.906Z",
    "importedAt": "2026-10-24T01:57:20.494Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "riscv: mm: Fix the out of bound issue of vmemmap address",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: mm: Fix the out of bound issue of vmemmap address\n\nIn sparse vmemmap model, the virtual address of vmemmap is calculated as:\n((struct page *)VMEMMAP_START - (phys_ram_base >> PAGE_SHIFT)).\nAnd the struct page's va can be calculated with an offset:\n(vmemmap + (pfn)).\n\nHowever, when initializing struct pages, kernel actually starts from the\nfirst page from the same section that phys_ram_base belongs to. If the\nfirst page's physical address is not (phys_ram_base >> PAGE_SHIFT), then\nwe get an va below VMEMMAP_START when calculating va for it's struct page.\n\nFor example, if phys_ram_base starts from 0x82000000 with pfn 0x82000, the\nfirst page in the same section is actually pfn 0x80000. During\ninit_unavailable_range(), we will initialize struct page for pfn 0x80000\nwith virtual address ((struct page *)VMEMMAP_START - 0x2000), which is\nbelow VMEMMAP_START as well as PCI_IO_END.\n\nThis commit fixes this bug by introducing a new variable\n'vmemmap_start_pfn' which is aligned with memory section size and using\nit to calculate vmemmap address instead of phys_ram_base.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "8af1c121b0102041809bc137ec600d1865eaeedd",
              "status": "affected",
              "versionType": "git",
              "lessThan": "04350304428063da6a55a8a4597d409dc69148b2"
            },
            {
              "version": "8310080799b40fd9f2a8b808c657269678c149af",
              "status": "affected",
              "versionType": "git",
              "lessThan": "92f08673d3f1893191323572f60e3c62f2e57c2f"
            },
            {
              "version": "a278d5c60f21aa15d540abb2f2da6e6d795c3e6e",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a4a7ac3d266008018f05fae53060fcb331151a14"
            },
            {
              "version": "a11dd49dcb9376776193e15641f84fcc1e5980c9",
              "status": "affected",
              "versionType": "git",
              "lessThan": "d2bd51954ac8377c2f1eb1813e694788998add66"
            },
            {
              "version": "a11dd49dcb9376776193e15641f84fcc1e5980c9",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f754f27e98f88428aaf6be6e00f5cbce97f62d4b"
            },
            {
              "version": "5941a90c55d3bfba732b32208d58d997600b44ef",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "2a1728c15ec4f45ed9248ae22f626541c179bfbe",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "5.10.212",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "5.10.258"
            },
            {
              "version": "6.1.81",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.1.140"
            },
            {
              "version": "6.6.21",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.6.72"
            },
            {
              "version": "5.15.151",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "5.16"
            },
            {
              "version": "6.7.9",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.8"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "6.8",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "6.8"
            },
            {
              "version": "5.10.258",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "6.1.140",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.72",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.10",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.13",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}