CVE-2023-53658 Details
Description
In the Linux kernel, the following vulnerability has been resolved: spi: bcm-qspi: return error if neither hif_mspi nor mspi is available If neither a "hif_mspi" nor "mspi" resource is present, the driver will just early exit in probe but still return success. Apart from not doing anything meaningful, this would then also lead to a null pointer access on removal, as platform_get_drvdata() would return NULL, which it would then try to dereference when trying to unregister the spi master. Fix this by unconditionally calling devm_ioremap_resource(), as it can handle a NULL res and will then return a viable ERR_PTR() if we get one. The "return 0;" was previously a "goto qspi_resource_err;" where then ret was returned, but since ret was still initialized to 0 at this place this was a valid conversion in 63c5395bb7a9 ("spi: bcm-qspi: Fix use-after-free on unbind"). The issue was not introduced by this commit, only made more obvious.
A vulnerability in the Broadcom QSPI driver of the Linux kernel can lead to a null pointer dereference. This issue occurs when the driver fails to properly handle the absence of certain resources, specifically 'hif_mspi' and 'mspi'. In such cases, the driver exits early during the probe process but incorrectly reports success. This oversight can cause a null pointer access when the driver is removed, as it attempts to dereference a null value while unregistering the SPI master. The vulnerability has been addressed by modifying the driver to always call 'devm_ioremap_resource()', which can manage a null resource and return a valid error pointer if needed.
The vulnerability has been fixed in the Linux kernel. Users should upgrade to the latest version where this issue has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/217b6ea8cf7b819477bca597a6ae2d43d38ba283 | kernel.org | Patch |
| https://git.kernel.org/stable/c/22ae32d80ef590d12a2364e4621f90f7c58445c7 | kernel.org | Patch |
| https://git.kernel.org/stable/c/32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6 | kernel.org | Patch |
| https://git.kernel.org/stable/c/398e6a015877d44327f754aeb48ff3354945c78c | kernel.org | Patch |
| https://git.kernel.org/stable/c/7c1f23ad34fcdace50275a6aa1e1969b41c6233f | kernel.org | Patch |
| https://git.kernel.org/stable/c/a91c34357afcfaa5307e254f22a8452550a07b34 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d20db3c58a7f9361e370a7850ceb60dbdf62eea3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d3dcdb43c872a3b967345144151a2c9bb9124c9b | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.9, < 4.14.322 >= 4.15, < 4.19.291 >= 4.20, < 5.4.251 >= 5.5, < 5.10.188 >= 5.11, < 5.15.121 >= 5.16, < 6.1.39 >= 6.2, < 6.4.4 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 28, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Feb 3, 2026 | Initial Analysis | [email protected] |
| Oct 7, 2025 | New CVE Received | kernel.org |