{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-72013",
  "modified": "2026-10-07T17:22:01Z",
  "upstream": [
    "CVE-2026-72013"
  ],
  "published": "2026-08-15T06:04:33Z",
  "summary": "riscv: Prevent NULL pointer dereference in machine_kexec_prepare()",
  "details": "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's\nmachine_kexec_prepare(), where image->segment[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    -> kimage_file_alloc_init()\n       -> kimage_file_prepare_segments()\n          -> ima_add_kexec_buffer()\n             -> kexec_add_buffer()\n    -> machine_kexec_prepare()\n       -> memcpy()\n\nAddress this by adding a check before the data copy attempt.",
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.178",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-72013"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/606cc45e871e34b80a2f63874f069387a5b44176"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c462e15497dc40abe369b3be7a2c91ac5d1be6f9"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b5f92cc4e24a298bf390b0b189a4b888c0900161"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/6ad6954492697681ebcfc1beb0eb384406cd4b65"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/eadd0c2c76aee6a738f17f251434c77db3c606c8"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d5b2752a17efc165793ae38f2c24b5ed9c04ffde"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/81bbcff0c053c4f5c711c31a9b72fc492bd96c3f"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-17T05:24:08Z"
  }
}
