spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 1f886a7bfb3faf4c1021e73f045538008ce7634e, Kernel 4b31a226097cf8cc3c9de5e855d97757fdb2bf06 and Kernel 95e5d9eb26705a9a76d2ef8bcba9ee2e195d653d.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.2, >=1cc0cbea7167af524a7f7b2d0d2f19f7a324e807 <1f886a7bfb3faf4c1021e73f045538008ce7634e, >=1cc0cbea7167af524a7f7b2d0d2f19f7a324e807 <4b31a226097cf8cc3c9de5e855d97757fdb2bf06, >=1cc0cbea7167af524a7f7b2d0d2f19f7a324e807 <95e5d9eb26705a9a76d2ef8bcba9ee2e195d653d | 1f886a7bfb3faf4c1021e73f045538008ce7634e, 4b31a226097cf8cc3c9de5e855d97757fdb2bf06, 95e5d9eb26705a9a76d2ef8bcba9ee2e195d653d |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket