CVE-2026-72013 (GCVE-0-2026-72013)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:51 – Updated: 2026-08-17 05:06
VLAI
Title
riscv: Prevent NULL pointer dereference in machine_kexec_prepare()
Summary
In the Linux kernel, the following vulnerability has been resolved: riscv: Prevent NULL pointer dereference in machine_kexec_prepare() A NULL pointer dereference issue is noticed in riscv's machine_kexec_prepare(), where image->segment[i].buf might be NULL and copied unchecked. The NULL buf comes from ima_add_kexec_buffer(), where kbuf is added by kexec_add_buffer(), but kbuf.buffer is NULL, then it is copied without a check in machine_kexec_prepare(): kexec_file_load -> kimage_file_alloc_init() -> kimage_file_prepare_segments() -> ima_add_kexec_buffer() -> kexec_add_buffer() -> machine_kexec_prepare() -> memcpy() Address this by adding a check before the data copy attempt.
Severity
No CVSS data available.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 4211742f0f9e083188f4f0ada00d6eeeef31b7c7 , < 606cc45e871e34b80a2f63874f069387a5b44176 (git)
Affected: b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 , < c462e15497dc40abe369b3be7a2c91ac5d1be6f9 (git)
Affected: b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 , < b5f92cc4e24a298bf390b0b189a4b888c0900161 (git)
Affected: b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 , < 6ad6954492697681ebcfc1beb0eb384406cd4b65 (git)
Affected: b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 , < eadd0c2c76aee6a738f17f251434c77db3c606c8 (git)
Affected: b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 , < d5b2752a17efc165793ae38f2c24b5ed9c04ffde (git)
Affected: b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 , < 81bbcff0c053c4f5c711c31a9b72fc492bd96c3f (git)
Affected: 3ca8a07f141fd8eec347a82bdfa4b94164f2bb97 (git)
Affected: 3ba83e46b591381e718007f55c9f831fd0cd7ee8 (git)
Affected: 5.15.47 , < 5.15.212 (semver)
Affected: 5.17.15 , < 5.18 (semver)
Affected: 5.18.4 , < 5.19 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 5.19
Unaffected: 0 , < 5.19 (semver)
Unaffected: 5.15.212 , ≤ 5.15.* (semver)
Unaffected: 6.1.178 , ≤ 6.1.* (semver)
Unaffected: 6.6.145 , ≤ 6.6.* (semver)
Unaffected: 6.12.97 , ≤ 6.12.* (semver)
Unaffected: 6.18.40 , ≤ 6.18.* (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/riscv/kernel/machine_kexec.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "606cc45e871e34b80a2f63874f069387a5b44176",
              "status": "affected",
              "version": "4211742f0f9e083188f4f0ada00d6eeeef31b7c7",
              "versionType": "git"
            },
            {
              "lessThan": "c462e15497dc40abe369b3be7a2c91ac5d1be6f9",
              "status": "affected",
              "version": "b7fb4d78a6ade6026d9e5cf438c2a46ab962e032",
              "versionType": "git"
            },
            {
              "lessThan": "b5f92cc4e24a298bf390b0b189a4b888c0900161",
              "status": "affected",
              "version": "b7fb4d78a6ade6026d9e5cf438c2a46ab962e032",
              "versionType": "git"
            },
            {
              "lessThan": "6ad6954492697681ebcfc1beb0eb384406cd4b65",
              "status": "affected",
              "version": "b7fb4d78a6ade6026d9e5cf438c2a46ab962e032",
              "versionType": "git"
            },
            {
              "lessThan": "eadd0c2c76aee6a738f17f251434c77db3c606c8",
              "status": "affected",
              "version": "b7fb4d78a6ade6026d9e5cf438c2a46ab962e032",
              "versionType": "git"
            },
            {
              "lessThan": "d5b2752a17efc165793ae38f2c24b5ed9c04ffde",
              "status": "affected",
              "version": "b7fb4d78a6ade6026d9e5cf438c2a46ab962e032",
              "versionType": "git"
            },
            {
              "lessThan": "81bbcff0c053c4f5c711c31a9b72fc492bd96c3f",
              "status": "affected",
              "version": "b7fb4d78a6ade6026d9e5cf438c2a46ab962e032",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "3ca8a07f141fd8eec347a82bdfa4b94164f2bb97",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "3ba83e46b591381e718007f55c9f831fd0cd7ee8",
              "versionType": "git"
            },
            {
              "lessThan": "5.15.212",
              "status": "affected",
              "version": "5.15.47",
              "versionType": "semver"
            },
            {
              "lessThan": "5.18",
              "status": "affected",
              "version": "5.17.15",
              "versionType": "semver"
            },
            {
              "lessThan": "5.19",
              "status": "affected",
              "version": "5.18.4",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/riscv/kernel/machine_kexec.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.19"
            },
            {
              "lessThan": "5.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.212",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.178",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.145",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.97",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.40",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.212",
                  "versionStartIncluding": "5.15.47",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.178",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.145",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.97",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.40",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.17.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.18.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: Prevent NULL pointer dereference in machine_kexec_prepare()\n\nA NULL pointer dereference issue is noticed in riscv\u0027s\nmachine_kexec_prepare(), where image-\u003esegment[i].buf might be NULL and\ncopied unchecked.\n\nThe NULL buf comes from ima_add_kexec_buffer(), where kbuf is added by\nkexec_add_buffer(), but kbuf.buffer is NULL, then it is copied without\na check in machine_kexec_prepare():\n\n  kexec_file_load\n    -\u003e kimage_file_alloc_init()\n       -\u003e kimage_file_prepare_segments()\n          -\u003e ima_add_kexec_buffer()\n             -\u003e kexec_add_buffer()\n    -\u003e machine_kexec_prepare()\n       -\u003e memcpy()\n\nAddress this by adding a check before the data copy attempt."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T05:06:35.378Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/606cc45e871e34b80a2f63874f069387a5b44176"
        },
        {
          "url": "https://git.kernel.org/stable/c/c462e15497dc40abe369b3be7a2c91ac5d1be6f9"
        },
        {
          "url": "https://git.kernel.org/stable/c/b5f92cc4e24a298bf390b0b189a4b888c0900161"
        },
        {
          "url": "https://git.kernel.org/stable/c/6ad6954492697681ebcfc1beb0eb384406cd4b65"
        },
        {
          "url": "https://git.kernel.org/stable/c/eadd0c2c76aee6a738f17f251434c77db3c606c8"
        },
        {
          "url": "https://git.kernel.org/stable/c/d5b2752a17efc165793ae38f2c24b5ed9c04ffde"
        },
        {
          "url": "https://git.kernel.org/stable/c/81bbcff0c053c4f5c711c31a9b72fc492bd96c3f"
        }
      ],
      "title": "riscv: Prevent NULL pointer dereference in machine_kexec_prepare()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-72013",
    "datePublished": "2026-08-15T05:51:41.982Z",
    "dateReserved": "2026-08-09T03:40:39.899Z",
    "dateUpdated": "2026-08-17T05:06:35.378Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72013",
      "date": "2026-08-24",
      "epss": "0.00206",
      "percentile": "0.10495"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-72013\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-15T06:21:00.033\",\"lastModified\":\"2026-08-17T06:17:58.763\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nriscv: Prevent NULL pointer dereference in machine_kexec_prepare()\\n\\nA NULL pointer dereference issue is noticed in riscv\u0027s\\nmachine_kexec_prepare(), where image-\u003esegment[i].buf might be NULL and\\ncopied unchecked.\\n\\nThe NULL buf comes from ima_add_kexec_buffer(), where kbuf is added by\\nkexec_add_buffer(), but kbuf.buffer is NULL, then it is copied without\\na check in machine_kexec_prepare():\\n\\n  kexec_file_load\\n    -\u003e kimage_file_alloc_init()\\n       -\u003e kimage_file_prepare_segments()\\n          -\u003e ima_add_kexec_buffer()\\n             -\u003e kexec_add_buffer()\\n    -\u003e machine_kexec_prepare()\\n       -\u003e memcpy()\\n\\nAddress this by adding a check before the data copy attempt.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"arch/riscv/kernel/machine_kexec.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"4211742f0f9e083188f4f0ada00d6eeeef31b7c7\",\"lessThan\":\"606cc45e871e34b80a2f63874f069387a5b44176\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"b7fb4d78a6ade6026d9e5cf438c2a46ab962e032\",\"lessThan\":\"c462e15497dc40abe369b3be7a2c91ac5d1be6f9\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"b7fb4d78a6ade6026d9e5cf438c2a46ab962e032\",\"lessThan\":\"b5f92cc4e24a298bf390b0b189a4b888c0900161\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"b7fb4d78a6ade6026d9e5cf438c2a46ab962e032\",\"lessThan\":\"6ad6954492697681ebcfc1beb0eb384406cd4b65\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"b7fb4d78a6ade6026d9e5cf438c2a46ab962e032\",\"lessThan\":\"eadd0c2c76aee6a738f17f251434c77db3c606c8\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"b7fb4d78a6ade6026d9e5cf438c2a46ab962e032\",\"lessThan\":\"d5b2752a17efc165793ae38f2c24b5ed9c04ffde\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"b7fb4d78a6ade6026d9e5cf438c2a46ab962e032\",\"lessThan\":\"81bbcff0c053c4f5c711c31a9b72fc492bd96c3f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"3ca8a07f141fd8eec347a82bdfa4b94164f2bb97\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"3ba83e46b591381e718007f55c9f831fd0cd7ee8\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"5.15.47\",\"lessThan\":\"5.15.212\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"5.17.15\",\"lessThan\":\"5.18\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"5.18.4\",\"lessThan\":\"5.19\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"arch/riscv/kernel/machine_kexec.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.19\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.19\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.212\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.178\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.145\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.97\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.40\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.5\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/606cc45e871e34b80a2f63874f069387a5b44176\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/6ad6954492697681ebcfc1beb0eb384406cd4b65\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/81bbcff0c053c4f5c711c31a9b72fc492bd96c3f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b5f92cc4e24a298bf390b0b189a4b888c0900161\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c462e15497dc40abe369b3be7a2c91ac5d1be6f9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d5b2752a17efc165793ae38f2c24b5ed9c04ffde\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/eadd0c2c76aee6a738f17f251434c77db3c606c8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-17T16:05:51+00:00",
      "cve": "CVE-2026-72013",
      "id": "CVE-2026-72013",
      "initial_release_date": "2026-08-15T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: riscv: Prevent NULL pointer dereference in machine_kexec_prepare()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72013.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…