CVE-2026-72013: riscv: Prevent NULL pointer dereference in machine_kexec_prepare()

Published Aug 15, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

riscv: Prevent NULL pointer dereference in machinekexecprepare()

A NULL pointer dereference issue is noticed in riscv's machinekexecprepare(), where image->segment[i].buf might be NULL and copied unchecked.

The NULL buf comes from imaaddkexecbuffer(), where kbuf is added by kexecaddbuffer(), but kbuf.buffer is NULL, then it is copied without a check in machinekexecprepare():

kexecfileload -> kimagefileallocinit() -> kimagefilepreparesegments() -> imaaddkexecbuffer() -> kexecaddbuffer() -> machinekexecprepare() -> memcpy()

Address this by adding a check before the data copy attempt.

Affected Software

1 affected component
Linux Linux kernel

Event History

Aug 15, 2026
CVE Published
via MITRE·05:51 AM
Data Sourced
via MITRE·05:51 AM
Description
Data Sourced
via NVD·06:21 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-72013?

The severity of CVE-2026-72013 is rated at risk 18.

2

How do I fix CVE-2026-72013?

To fix CVE-2026-72013, update the Linux kernel to the latest version that includes the patch for this vulnerability.

3

What systems are affected by CVE-2026-72013?

CVE-2026-72013 affects systems running the riscv architecture within the Linux kernel.

4

What is the nature of the vulnerability in CVE-2026-72013?

The nature of the vulnerability in CVE-2026-72013 is a NULL pointer dereference in machine_kexec_prepare() which can lead to potential crashes.

5

When was CVE-2026-72013 published?

CVE-2026-72013 was published on August 15, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203