CVE-2024-35883
MEDIUMLinux Kernel < 6.6.26 - NULL Pointer Dereference
Title source: ruleDescription
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.
Scores
CVSS v3
5.5
EPSS
0.0002
EPSS Percentile
4.3%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Classification
CWE
CWE-476
Status
published
Affected Products (5)
linux/linux_kernel
< 6.6.26
linux/linux_kernel
linux/linux_kernel
linux/Kernel
< 6.6.26linux
linux/Kernel
< 6.8.5linux
Timeline
Published
May 19, 2024
Tracked Since
Feb 18, 2026