CVE-2024-26866: spi: lpspi: Avoid potential use-after-free in probe()

Published Apr 17, 2024
·
Updated

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

4 affected componentsFixes available
Linux Linux kernel>=4.10<6.6.23
Linux Linux kernel>=6.7<6.7.11
Linux Linux kernel>=6.8<6.8.2
debian/linux<=5.10.223-1, <=5.10.234-1, <=6.1.129-1, <=6.1.135-1
6.12.25-16.12.27-1

Event History

Apr 17, 2024
CVE Published
via MITRE·10:27 AM
Data Sourced
via MITRE·10:27 AM
Description
Jun 8, 2024
Data Sourced
via Launchpad·01:07 AM
Description
May 6, 2025
Data Sourced
via Ubuntu·02:22 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

Is CVE-2024-26866 remotely exploitable?

CVE-2024-26866 is primarily a local vulnerability and is not considered to be remotely exploitable.

5

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.

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