Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-53658

MEDIUM 5.5EPSS 7%

spi: bcm-qspi: return error if neither hif_mspi nor mspi is available

Mitigation

  • Upgrade Linux to 7c1f23ad34fcdace50275a6aa1e1969b41c6233f or later.

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

Vulnerability facts

Affected
Linux >= fa236a7ef24048bafaeed13f68df35a819794758, < a91c34357afcfaa5307e254f22a8452550a07b34; >= fa236a7ef24048bafaeed13f68df35a819794758, < d20db3c58a7f9361e370a7850ceb60dbdf62eea3; >= fa236a7ef24048bafaeed13f68df35a819794758, < 398e6a015877d44327f754aeb48ff3354945c78c; >= fa236a7ef24048bafaeed13f68df35a819794758, < 32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6; >= fa236a7ef24048bafaeed13f68df35a819794758, < 217b6ea8cf7b819477bca597a6ae2d43d38ba283; >= fa236a7ef24048bafaeed13f68df35a819794758, < d3dcdb43c872a3b967345144151a2c9bb9124c9b; >= fa236a7ef24048bafaeed13f68df35a819794758, < 22ae32d80ef590d12a2364e4621f90f7c58445c7; >= fa236a7ef24048bafaeed13f68df35a819794758, < 7c1f23ad34fcdace50275a6aa1e1969b41c6233f; Linux 4.9
Fixed in
Linux 398e6a015877d44327f754aeb48ff3354945c78c, Linux 32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6, Linux 217b6ea8cf7b819477bca597a6ae2d43d38ba283, Linux 22ae32d80ef590d12a2364e4621f90f7c58445c7, Linux 7c1f23ad34fcdace50275a6aa1e1969b41c6233f
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.21% chance of exploitation in 30 days (percentile 7, 2026-11-26)
CWE
CWE-476
Published
Modified

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

Package / productAffectedFixedSource
Linux>= fa236a7ef24048bafaeed13f68df35a819794758, < a91c34357afcfaa5307e254f22a8452550a07b34; >= fa236a7ef24048bafaeed13f68df35a819794758, < d20db3c58a7f9361e370a7850ceb60dbdf62eea3; >= fa236a7ef24048bafaeed13f68df35a819794758, < 398e6a015877d44327f754aeb48ff3354945c78c; >= fa236a7ef24048bafaeed13f68df35a819794758, < 32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6; >= fa236a7ef24048bafaeed13f68df35a819794758, < 217b6ea8cf7b819477bca597a6ae2d43d38ba283; >= fa236a7ef24048bafaeed13f68df35a819794758, < d3dcdb43c872a3b967345144151a2c9bb9124c9b; >= fa236a7ef24048bafaeed13f68df35a819794758, < 22ae32d80ef590d12a2364e4621f90f7c58445c7; >= fa236a7ef24048bafaeed13f68df35a819794758, < 7c1f23ad34fcdace50275a6aa1e1969b41c6233f—cvelist
Linux4.9—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors