CVE-2026-72013

riscv: Prevent NULL pointer dereference in machine_kexec_prepare()

N/A
Published: August 15, 2026 at 05:51 AM UTC
Updated: August 17, 2026 at 06:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.17.15v ≥ 5.18.45.15.47 ≤ v < 5.15.2125.17.15 ≤ v < 5.185.18.4 ≤ v < 5.195.19 ≤ v < 6.1.1785.19 ≤ v < 6.12.975.19 ≤ v < 6.18.405.19 ≤ v < 6.6.1455.19 ≤ v < 7.1.55.19 ≤ v < 7.23ba83e46b591381e718007f55c9f831fd0cd7ee83ca8a07f141fd8eec347a82bdfa4b94164f2bb974211742f0f9e083188f4f0ada00d6eeeef31b7c75.15.475.17.155.18.45.19b7fb4d78a6ade6026d9e5cf438c2a46ab962e032
Vendor states this is fixed in 606cc45e871e34b80a2f63874f069387a5b44176 (fixed)
Vendor states this is fixed in 6ad6954492697681ebcfc1beb0eb384406cd4b65 (fixed)
Vendor states this is fixed in 81bbcff0c053c4f5c711c31a9b72fc492bd96c3f (fixed)
Vendor states this is fixed in b5f92cc4e24a298bf390b0b189a4b888c0900161 (fixed)
Vendor states this is fixed in c462e15497dc40abe369b3be7a2c91ac5d1be6f9 (fixed)
Vendor states this is fixed in d5b2752a17efc165793ae38f2c24b5ed9c04ffde (fixed)
Vendor states this is fixed in eadd0c2c76aee6a738f17f251434c77db3c606c8 (fixed)
Vendor states this is fixed in 5.15.212 (unaffected)
Affected range stops below 5.18, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 6.1.178 (unaffected)
Vendor states this is fixed in 6.12.97 (unaffected)
Vendor states this is fixed in 6.18.40 (unaffected)
Vendor states this is fixed in 6.6.145 (unaffected)
Vendor states this is fixed in 7.1.5 (unaffected)
Vendor states this is fixed in 7.2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusRECEIVED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card