CVE-2026-72013
riscv: Prevent NULL pointer dereference in machine_kexec_prepare()
Check your servers for CVE-2026-72013
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-72013 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 4211742f0f9e083188f4f0ada00d6eeeef31b7c7, before 606cc45e871e34b80a2f63874f069387a5b44176 affected from b7fb4d78a6ade6026d9e5cf438c2a46ab962e032, before c462e15497dc40abe369b3be7a2c91ac5d1be6f9 affected from b7fb4d78a6ade6026d9e5cf438c2a46ab962e032, before b5f92cc4e24a298bf390b0b189a4b888c0900161 affected from b7fb4d78a6ade6026d9e5cf438c2a46ab962e032, before 6ad6954492697681ebcfc1beb0eb384406cd4b65 affected from b7fb4d78a6ade6026d9e5cf438c2a46ab962e032, before eadd0c2c76aee6a738f17f251434c77db3c606c8 affected from b7fb4d78a6ade6026d9e5cf438c2a46ab962e032, before d5b2752a17efc165793ae38f2c24b5ed9c04ffde affected from b7fb4d78a6ade6026d9e5cf438c2a46ab962e032, before 81bbcff0c053c4f5c711c31a9b72fc492bd96c3f affected 3ca8a07f141fd8eec347a82bdfa4b94164f2bb97 affected 3ba83e46b591381e718007f55c9f831fd0cd7ee8 affected from 5.15.47, before 5.15.212 affected from 5.17.15, before 5.18 affected from 5.18.4, before 5.19
Other versions: unaffected
|
| Linux |
affected 5.19 unaffected before 5.19 unaffected from 5.15.212 up to and including 5.15.* unaffected from 6.1.178 up to and including 6.1.* unaffected from 6.6.145 up to and including 6.6.* unaffected from 6.12.97 up to and including 6.12.* unaffected from 6.18.40 up to and including 6.18.* unaffected from 7.1.5 up to and including 7.1.* unaffected 7.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-72013 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-72013
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-72013
trivy image --scanners vuln IMAGE | grep CVE-2026-72013
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/606cc45e871e34b80a2f63874f069387a5b44176 git.kernel.org
- https://git.kernel.org/stable/c/c462e15497dc40abe369b3be7a2c91ac5d1be6f9 git.kernel.org
- https://git.kernel.org/stable/c/b5f92cc4e24a298bf390b0b189a4b888c0900161 git.kernel.org
- https://git.kernel.org/stable/c/6ad6954492697681ebcfc1beb0eb384406cd4b65 git.kernel.org
- https://git.kernel.org/stable/c/eadd0c2c76aee6a738f17f251434c77db3c606c8 git.kernel.org
- https://git.kernel.org/stable/c/d5b2752a17efc165793ae38f2c24b5ed9c04ffde git.kernel.org
- https://git.kernel.org/stable/c/81bbcff0c053c4f5c711c31a9b72fc492bd96c3f git.kernel.org
Source: the record CVE-2026-72013 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse