PT-2024-8481
CVE-2024-35883
·
Published
2024-04-03
·
Updated
2025-03-28
Description by
CVSS 3.1
5.5
MediumMetricsAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
The issue is related to a potential null pointer dereference in the
pci1xxx spi probe function, which may be caused by a failed memory allocation by the devm kzalloc function. To fix this issue, a null pointer check needs to be added to prevent null pointer dereferencing later in the code. The memory allocated by devm kzalloc will be automatically released.Recommendations
To resolve the issue, check
spi bus->spi int[iter] and directly return -ENOMEM without worrying about memory leaks. As a temporary workaround, consider adding a null pointer check in the pci1xxx spi probe function to prevent null pointer dereferencing.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾