NULL pointer dereference in Linux
CVE-2024-35883
In the Linux kernel, the following vulnerability has been resolved: spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe In function pci1xxxx_spi_probe, there is a potential null pointer that may be caused by a failed memory allocation by the function devm_kzalloc. Hence, a null pointer check needs to be added to prevent null pointer dereferencing later in the code. To fix this issue, spi_bus->spi_int[iter] should be checked. The memory allocated by devm_kzalloc will be automatically released, so just directly return -ENOMEM without worrying about memory leaks.
EPSS: 0.002 (13.3th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Linux — versions 1cc0cbea7167af524a7f7b2d0d2f19f7a324e807, 6.2, 0
- Linux Linux_kernel — versions 6.9
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2024-35883?
- CVE-2024-35883 is a medium-severity vulnerability in Linux, classified under NULL Pointer Dereference. CVSS score: 5.5/10. Published 2024-05-19.
- How severe is CVE-2024-35883?
- Medium severity. CVSS v3 base score is 5.5 out of 10.