CVE-2026-72013
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 versions
Linux kernel versions
5.15.47,
5.17.15,
5.18.4,
5.19
and later are affected. Fixed in
5.15.212,
6.1.178,
6.6.145,
6.12.97,
6.18.40,
7.1.5,
7.2-rc3
and their respective stable series.
References
7 totalFrequently asked questions
-
What is CVE-2026-72013?
CVE-2026-72013 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 5.15.47 onward and has been patched in 5.15.212, 6.1.178, 6.6.145 and others. CVE-2026-72013 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2026-72013?
Yes. CVE-2026-72013 has been patched. Fixed versions include 5.15.212, 6.1.178, 6.6.145 and others. If you are running Linux kernel 5.15.47 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2026-72013 actively exploited?
No. CVE-2026-72013 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.