spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe
Published May 19, 2024
5.5
MEDIUMCVSS 3.1
EPSS 0.23%
Description
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 products
-
Affected
- ≥ , <
- ≥ , <
- ≥ , <
-
Affected
- 6.2
Unaffected
- ≥ 0, < 6.2
- ≥ 6.6.26, ≤ 6.6.*
- ≥ 6.8.5, ≤ 6.8.*
- 6.9
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
- ≥ 6.2 · < 6.6.26
- ≥ 6.7 · < 6.8.5
- 6.9
- 6.9
No data.
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat Enterprise Linux is not impacted by this CVE, as the vulnerability in question does not affect the specific versions or configurations of the Linux kernel used in its distributions. This ensures that users of Red Hat Enterprise Linux are not exposed to the potential risks associated with this issue, and no further action or mitigation is necessary for systems running this operating system.
Red Hat mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
References (9)
- https://access.redhat.com/security/cve/CVE-2024-35883 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2281706 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-35601 Advisory
- https://git.kernel.org/stable/c/1f886a7bfb3faf4c1021e73f045538008ce7634e Patch
- https://git.kernel.org/stable/c/4b31a226097cf8cc3c9de5e855d97757fdb2bf06 Patch
- https://git.kernel.org/stable/c/95e5d9eb26705a9a76d2ef8bcba9ee2e195d653d Patch
- https://lore.kernel.org/linux-cve-announce/2024051945-CVE-2024-35883-471d@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2024-35883
- https://www.cve.org/CVERecord?id=CVE-2024-35883
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
GitHub
No data