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

Published Oct 7, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

If neither a "hifmspi" 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 platformgetdrvdata() would return NULL, which it would then try to dereference when trying to unregister the spi master.

Fix this by unconditionally calling devmioremapresource(), as it can handle a NULL res and will then return a viable ERRPTR() if we get one.

The "return 0;" was previously a "goto qspiresourceerr;" 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 Software

8 affected components
Linux Kernel
Linux Linux kernel>=4.9<4.14.322
Linux Linux kernel>=4.15<4.19.291
Linux Linux kernel>=4.20<5.4.251
Linux Linux kernel>=5.5<5.10.188
Linux Linux kernel>=5.11<5.15.121
Linux Linux kernel>=5.16<6.1.39
Linux Linux kernel>=6.2<6.4.4

Event History

Oct 7, 2025
CVE Published
via MITRE·03:21 PM
Data Sourced
via MITRE·03:21 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-53658?

CVE-2023-53658 is classified with moderate severity due to its impact on the Linux kernel functionality.

2

How do I fix CVE-2023-53658?

To fix CVE-2023-53658, update your Linux kernel to the latest stable version that includes the patch.

3

What systems are affected by CVE-2023-53658?

CVE-2023-53658 affects the Linux kernel, specifically the bcm-qspi driver.

4

What is the impact of CVE-2023-53658?

The impact of CVE-2023-53658 is potential improper resource handling in the bcm-qspi driver.

5

Is there a workaround for CVE-2023-53658?

There is no official workaround for CVE-2023-53658; upgrading the kernel is the recommended action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203