CVE-2026-72013
riscv: Prevent NULL pointer dereference in machine_kexec_prepare()
Reported by linux · Published August 15, 2026
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.
EPSS 0.21% · 10.6th percentile
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 4211742f0f9e083188f4f0ada00d6eeeef31b7c7, b7fb4d78a6ade6026d9e5cf438c2a46ab962e032, b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 |
| Linux | Linux | 5.19, 0, 5.15.212 |
| linux | linux_kernel | 5.15.47, 5.19, 5.19 |
| Linux | Linux | *, *, * |
Timeline
- Aug 15, 2026 Coalition ESS Score
- Aug 15, 2026 CVE Published
- Aug 17, 2026 CVE Updated
- Aug 19, 2026 Security Advisory
- Aug 24, 2026 EPSS Score (17 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-72013
vulnetix vdb fixes CVE-2026-72013
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-72013/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart