CVE-2026-89963: powerpc/kexec_file: Fix null-ptr-def in extra size calculation
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
powerpc/kexec_file: Fix null-ptr-def in extra size calculation
A static Sashiko AI review identified a potential NULL pointer dereference in kexec_extra_fdt_size_ppc64().
On platforms without any reserved memory regions, get_reserved_memory_ranges() can return 0 while leaving 'rmem' unallocated as NULL. Passing it directly leads to a kernel panic when evaluating 'rmem->nr_ranges'.
Add a NULL check for 'rmem' to prevent this crash.
The Linux kernel CVE team has assigned CVE-2026-89963 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit 0d3ff067331ef84e7e7f49537d768881042ed5ba and fixed in 6.12.110 with commit 11ef1c2a5dbe0bd8c1345f59bab7331d352f02cf Issue introduced in 6.11 with commit 0d3ff067331ef84e7e7f49537d768881042ed5ba and fixed in 6.18.51 with commit df45337587db21c502fe5251d3bcc7887428f4fb Issue introduced in 6.11 with commit 0d3ff067331ef84e7e7f49537d768881042ed5ba and fixed in 7.2.5 with commit 4ff3d9fd71c7bc2fc81afdac1970d9c55a5c0dea Issue introduced in 6.11 with commit 0d3ff067331ef84e7e7f49537d768881042ed5ba and fixed in 7.3-rc1 with commit 761eda315a6e1fda3e8e2185b28430771fb1ac29
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-89963
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/powerpc/kexec/file_load_64.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/11ef1c2a5dbe0bd8c1345f59bab7331d352f02cf https://git.kernel.org/stable/c/df45337587db21c502fe5251d3bcc7887428f4fb https://git.kernel.org/stable/c/4ff3d9fd71c7bc2fc81afdac1970d9c55a5c0dea https://git.kernel.org/stable/c/761eda315a6e1fda3e8e2185b28430771fb1ac29