# CVE-2023-53658: spi: bcm-qspi: return error if neither hif\_mspi nor mspi is available

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-10-07T15:21:18.950Z
- **Modified:** 2026-10-28T20:10:00.163Z

## Who should check

- Anyone running Linux \>= fa236a7ef24048bafaeed13f68df35a819794758, \< a91c34357afcfaa5307e254f22a8452550a07b34; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< d20db3c58a7f9361e370a7850ceb60dbdf62eea3; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 398e6a015877d44327f754aeb48ff3354945c78c; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 217b6ea8cf7b819477bca597a6ae2d43d38ba283; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< d3dcdb43c872a3b967345144151a2c9bb9124c9b; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 22ae32d80ef590d12a2364e4621f90f7c58445c7; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 7c1f23ad34fcdace50275a6aa1e1969b41c6233f
- Anyone running Linux 4.9

## 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.

## Affected and fixed versions

- Linux: \>= fa236a7ef24048bafaeed13f68df35a819794758, \< a91c34357afcfaa5307e254f22a8452550a07b34; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< d20db3c58a7f9361e370a7850ceb60dbdf62eea3; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 398e6a015877d44327f754aeb48ff3354945c78c; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 217b6ea8cf7b819477bca597a6ae2d43d38ba283; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< d3dcdb43c872a3b967345144151a2c9bb9124c9b; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 22ae32d80ef590d12a2364e4621f90f7c58445c7; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 7c1f23ad34fcdace50275a6aa1e1969b41c6233f (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- Upgrade Linux to 7c1f23ad34fcdace50275a6aa1e1969b41c6233f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53658. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53658.md
Affected: Linux >= fa236a7ef24048bafaeed13f68df35a819794758, < a91c34357afcfaa5307e254f22a8452550a07b34; >= fa236a7ef24048bafaeed13f68df35a819794758, < d20db3c58a7f9361e370a7850ceb60dbdf62eea3; >= fa236a7ef24048bafaeed13f68df35a819794758, < 398e6a015877d44327f754aeb48ff3354945c78c; >= fa236a7ef24048bafaeed13…
Fixed in: Linux 398e6a015877d44327f754aeb48ff3354945c78c, Linux 32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6, Linux 217b6ea8cf7b819477bca597a6ae2d43d38ba283, Linux 22ae32d80ef590d12a2364e4621f90f7c58445c7, Linux 7c1f23ad34fcdace50275a6aa1e1969b41c6233f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53658 being exploited?

There is no confirmed exploitation: CVE-2023-53658 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53658?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53658?

Linux \>= fa236a7ef24048bafaeed13f68df35a819794758, \< a91c34357afcfaa5307e254f22a8452550a07b34; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< d20db3c58a7f9361e370a7850ceb60dbdf62eea3; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 398e6a015877d44327f754aeb48ff3354945c78c; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 217b6ea8cf7b819477bca597a6ae2d43d38ba283; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< d3dcdb43c872a3b967345144151a2c9bb9124c9b; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 22ae32d80ef590d12a2364e4621f90f7c58445c7; \>= fa236a7ef24048bafaeed13f68df35a819794758, \< 7c1f23ad34fcdace50275a6aa1e1969b41c6233f; Linux 4.9.

### Is there a fix for CVE-2023-53658?

Yes. Fixed in Linux 398e6a015877d44327f754aeb48ff3354945c78c, Linux 32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6, Linux 217b6ea8cf7b819477bca597a6ae2d43d38ba283, Linux 22ae32d80ef590d12a2364e4621f90f7c58445c7, Linux 7c1f23ad34fcdace50275a6aa1e1969b41c6233f. Upgrade Linux to 7c1f23ad34fcdace50275a6aa1e1969b41c6233f or later.

### How do I check if I'm affected by CVE-2023-53658?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a91c34357afcfaa5307e254f22a8452550a07b34>
- patch: <https://git.kernel.org/stable/c/d20db3c58a7f9361e370a7850ceb60dbdf62eea3>
- patch: <https://git.kernel.org/stable/c/398e6a015877d44327f754aeb48ff3354945c78c>
- patch: <https://git.kernel.org/stable/c/32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6>
- patch: <https://git.kernel.org/stable/c/217b6ea8cf7b819477bca597a6ae2d43d38ba283>
- patch: <https://git.kernel.org/stable/c/d3dcdb43c872a3b967345144151a2c9bb9124c9b>
- patch: <https://git.kernel.org/stable/c/22ae32d80ef590d12a2364e4621f90f7c58445c7>
- patch: <https://git.kernel.org/stable/c/7c1f23ad34fcdace50275a6aa1e1969b41c6233f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53658>

HTML: <https://flawdb.com/CVE-2023-53658> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53658>
