CVE-2024-35883
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
19/05/2024
Last modified:
07/01/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe<br />
<br />
In function pci1xxxx_spi_probe, there is a potential null pointer that<br />
may be caused by a failed memory allocation by the function devm_kzalloc.<br />
Hence, a null pointer check needs to be added to prevent null pointer<br />
dereferencing later in the code.<br />
<br />
To fix this issue, spi_bus->spi_int[iter] should be checked. The memory<br />
allocated by devm_kzalloc will be automatically released, so just directly<br />
return -ENOMEM without worrying about memory leaks.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.26 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.8.5 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/1f886a7bfb3faf4c1021e73f045538008ce7634e
- https://git.kernel.org/stable/c/4b31a226097cf8cc3c9de5e855d97757fdb2bf06
- https://git.kernel.org/stable/c/95e5d9eb26705a9a76d2ef8bcba9ee2e195d653d
- https://git.kernel.org/stable/c/1f886a7bfb3faf4c1021e73f045538008ce7634e
- https://git.kernel.org/stable/c/4b31a226097cf8cc3c9de5e855d97757fdb2bf06
- https://git.kernel.org/stable/c/95e5d9eb26705a9a76d2ef8bcba9ee2e195d653d



