Menu

Star on GitHub · 3.2k

CVE-2024-26866

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: spi: lpspi: Avoid potential use-after-free in probe() fsl_lpspi_probe() is allocating/disposing memory manually with spi_alloc_…

Published Apr 17, 2024CWE-416EPSS 0.22%

Overview

CVE-2024-26866 is a medium-severity vulnerability. It was published on April 17, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

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

fsl_lpspi_probe() is allocating/disposing memory manually with

spi_alloc_host()/spi_alloc_target(), but uses

devm_spi_register_controller(). In case of error after the latter call the

memory will be explicitly freed in the probe function by

spi_controller_put() call, but used afterwards by "devm" management outside

probe() (spi_unregister_controller() <- devm_spi_unregister() below).

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000070

...

Call trace:

kernfs_find_ns

kernfs_find_and_get_ns

sysfs_remove_group

sysfs_remove_groups

device_remove_attrs

device_del

spi_unregister_controller

devm_spi_unregister

release_nodes

devres_release_all

really_probe

driver_probe_device

__device_attach_driver

bus_for_each_drv

__device_attach

device_initial_probe

bus_probe_device

deferred_probe_work_func

process_one_work

worker_thre

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-26866?

CVE-2024-26866 is a medium-severity vulnerability. It was published on April 17, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-26866?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-26866?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-26866?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-26866 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2024

View all