powerpc/kexec_file: Fix null-ptr-def in extra size calculation
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12.110, 6.18.51, 7.2.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 0d3ff067331ef84e7e7f49537d768881042ed5ba · fixed in 11ef1c2a5dbe0bd8c1345f59bab7331d352f02cf; From 0d3ff067331ef84e7e7f49537d768881042ed5ba · fixed in df45337587db21c502fe5251d3bcc7887428f4fb; From 0d3ff067331ef84e7e7f49537d768881042ed5ba · fixed in 4ff3d9fd71c7bc2fc81afdac1970d9c55a5c0dea; From 0d3ff067331ef84e7e7f49537d768881042ed5ba · fixed in 761eda315a6e1fda3e8e2185b28430771fb1ac29
- Linux Linux
6.11
- KernelLinux
From 6.11.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5