{"id":"CVE-2024-35883","published":"2024-05-19T08:34:40Z","modified":"2026-05-11T20:13:05Z","title":"spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->spi_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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00227,"percentile":0.13691,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/4b31a226097cf8cc3c9de5e855d97757fdb2bf06","tags":[]},{"url":"https://git.kernel.org/stable/c/95e5d9eb26705a9a76d2ef8bcba9ee2e195d653d","tags":[]},{"url":"https://git.kernel.org/stable/c/1f886a7bfb3faf4c1021e73f045538008ce7634e","tags":[]}],"priority":{"score":2.7,"factors":[{"name":"EPSS percentile","points":2.74}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1cc0cbea7167af524a7f7b2d0d2f19f7a324e807, < 4b31a226097cf8cc3c9de5e855d97757fdb2bf06",">= 1cc0cbea7167af524a7f7b2d0d2f19f7a324e807, < 95e5d9eb26705a9a76d2ef8bcba9ee2e195d653d",">= 1cc0cbea7167af524a7f7b2d0d2f19f7a324e807, < 1f886a7bfb3faf4c1021e73f045538008ce7634e"]},{"vendor":"Linux","product":"Linux","versions":["6.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T15:41:14.519332Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-35601","exploited":false,"provenance":"source"}}