CVE-2024-35883

Source
https://cve.org/CVERecord?id=CVE-2024-35883
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35883.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-35883
Downstream
Related
Published
2024-05-19T08:34:40.035Z
Modified
2026-04-02T11:51:50.206082Z
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:

spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxxspiprobe

In function pci1xxxxspiprobe, 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, spibus->spiint[iter] should be checked. The memory allocated by devm_kzalloc will be automatically released, so just directly return -ENOMEM without worrying about memory leaks.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35883.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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/cve-osv-conversion/osv-output/CVE-2024-35883.json"