CVE-2024-26866: spi: lpspi: Avoid potential use-after-free in probe()
In the Linux kernel, the following vulnerability has been resolved:
spi: lpspi: Avoid potential use-after-free in probe()
fsllpspiprobe() is allocating/disposing memory manually with spiallochost()/spialloctarget(), but uses devmspiregistercontroller(). In case of error after the latter call the memory will be explicitly freed in the probe function by spicontrollerput() call, but used afterwards by "devm" management outside probe() (spiunregistercontroller() <- devmspiunregister() below).
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000070 ... Call trace: kernfsfindns kernfsfindandgetns sysfsremovegroup sysfsremovegroups deviceremoveattrs devicedel spiunregistercontroller devmspiunregister releasenodes devresreleaseall reallyprobe driverprobedevice deviceattachdriver busforeachdrv deviceattach deviceinitialprobe busprobedevice deferredprobeworkfunc processonework workerthread kthread retfromfork
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-26866?
CVE-2024-26866 has a severity rating that indicates a medium risk due to the potential use-after-free vulnerability.
How do I fix CVE-2024-26866?
To fix CVE-2024-26866, update to the Linux kernel versions 6.12.12-1 or 6.12.13-1 or apply the appropriate patches.
What versions of Linux are affected by CVE-2024-26866?
CVE-2024-26866 affects Linux kernel versions from 4.10 up to, but not including, 6.6.23, as well as specific versions between 6.7.0 and 6.7.11 and 6.8.0 to 6.8.2.
Is CVE-2024-26866 remotely exploitable?
CVE-2024-26866 is primarily a local vulnerability and is not considered to be remotely exploitable.
What is the impact of CVE-2024-26866 on system security?
The impact of CVE-2024-26866 includes potential memory corruption issues which can lead to denial of service or escalation of privileges if exploited.