# CVE-2024-35883: spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-02)
- Published: 2024-05-19T08:34:40.035Z
- Modified: 2026-06-17T07:35:37.710Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1cc0cbea7167af524a7f7b2d0d2f19f7a324e807 before 4b31a226097cf8cc3c9de5e855d97757fdb2bf06; from 1cc0cbea7167af524a7f7b2d0d2f19f7a324e807 before 95e5d9eb26705a9a76d2ef8bcba9ee2e195d653d; from 1cc0cbea7167af524a7f7b2d0d2f19f7a324e807 before 1f886a7bfb3faf4c1021e73f045538008ce7634e; 6.2 (not affected: before 6.2; from 6.6.26 up to 6.6.*; from 6.8.5 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.2 before 6.6.26; from 6.7 before 6.8.5; 6.9

## References

- <https://git.kernel.org/stable/c/4b31a226097cf8cc3c9de5e855d97757fdb2bf06> (patch)
- <https://git.kernel.org/stable/c/95e5d9eb26705a9a76d2ef8bcba9ee2e195d653d> (patch)
- <https://git.kernel.org/stable/c/1f886a7bfb3faf4c1021e73f045538008ce7634e> (patch)

## Sources

- CVE List: [CVE-2024-35883](https://www.cve.org/CVERecord?id=CVE-2024-35883), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-35883](https://nvd.nist.gov/vuln/detail/CVE-2024-35883), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-35883 · Whole record: https://cve.day/CVE-2024-35883.json · Rebuilt by cve.day 2026-11-25T22:58:40.581Z
