{"id":"CVE-2024-35883","summary":"spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe\n\nIn function pci1xxxx_spi_probe, there is a potential null pointer that\nmay be caused by a failed memory allocation by the function devm_kzalloc.\nHence, a null pointer check needs to be added to prevent null pointer\ndereferencing later in the code.\n\nTo fix this issue, spi_bus-\u003espi_int[iter] should be checked. The memory\nallocated by devm_kzalloc will be automatically released, so just directly\nreturn -ENOMEM without worrying about memory leaks.","modified":"2026-03-20T12:36:42.869028Z","published":"2024-05-19T08:34:40.035Z","related":["SUSE-SU-2024:2135-1","SUSE-SU-2024:2203-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20249-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35883.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1f886a7bfb3faf4c1021e73f045538008ce7634e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4b31a226097cf8cc3c9de5e855d97757fdb2bf06"},{"type":"WEB","url":"https://git.kernel.org/stable/c/95e5d9eb26705a9a76d2ef8bcba9ee2e195d653d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35883.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35883"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1cc0cbea7167af524a7f7b2d0d2f19f7a324e807"},{"fixed":"4b31a226097cf8cc3c9de5e855d97757fdb2bf06"},{"fixed":"95e5d9eb26705a9a76d2ef8bcba9ee2e195d653d"},{"fixed":"1f886a7bfb3faf4c1021e73f045538008ce7634e"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35883.json"}}],"schema_version":"1.7.5"}