CVE-2023-53658 json
spi: bcm-qspi: return error if neither hif_mspi nor mspi is available
published 2025-10-07 13 mo ago modified 2026-10-28 11 d ago also EUVD-2025-31957
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 4%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 4.14.322, 4.19.291, 5.4.251, 5.10.188, 5.15.121, 6.1.39, 6.4.4, 6.5
- linux Debian 12 6.1.52-1
- linux Debian 14, Debian 13 6.4.4-1
debian advisories DEBIAN-CVE-2023-53658
- linux Ubuntu 20.04 LTS 5.4.0-166.183
- linux Ubuntu 22.04 LTS 5.15.0-86.96
- linux-aws Ubuntu 20.04 LTS 5.4.0-1113.123
- linux-aws Ubuntu 22.04 LTS 5.15.0-1047.52
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1117.126
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1044.52
- linux-gke Ubuntu 22.04 LTS 5.15.0-1044.49
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1060.65
ubuntu advisories UBUNTU-CVE-2023-53658
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-64kb SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS, SLE High Performance Computing 15 SP5-ESPOS 5.14.21-150500.55.127.1
- kernel-syms SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 5.14.21-150500.55.127.1
- kernel-source SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +2 more 5.14.21-150500.55.127.1
- kernel-default SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +3 more 5.14.21-150500.55.127.1
- kernel-obs-build SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 5.14.21-150500.55.127.1
- kernel-default-base SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +2 more 5.14.21-150500.55.127.1.150500.6.61.1
- kernel-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.58.1
- kernel-syms-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.58.1
suse advisories SUSE-SU-2025:4320-1SUSE-SU-2025:4301-1SUSE-SU-2025:21052-1SUSE-SU-2025:21064-1SUSE-SU-2025:4149-1SUSE-SU-2025:4141-1
- git.kernel.org/stable/c/a91c34357afcfaa5307e254f22a8452550a07b34 commit
- git.kernel.org/stable/c/d20db3c58a7f9361e370a7850ceb60dbdf62eea3 commit
- git.kernel.org/stable/c/398e6a015877d44327f754aeb48ff3354945c78c commit
- git.kernel.org/stable/c/32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6 commit
- git.kernel.org/stable/c/217b6ea8cf7b819477bca597a6ae2d43d38ba283 commit
- git.kernel.org/stable/c/d3dcdb43c872a3b967345144151a2c9bb9124c9b commit
- git.kernel.org/stable/c/22ae32d80ef590d12a2364e4621f90f7c58445c7 commit
- git.kernel.org/stable/c/7c1f23ad34fcdace50275a6aa1e1969b41c6233f commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-53658 updated
kernel: spi: bcm-qspi: return error if neither hif_mspi nor mspi is available
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.15% chance of exploitation in the next 30 days, higher than 4% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
- Technology feeds
References
-
git.kernel.org
/stable/c/a91c34357afcfaa5307e254f22a8452550a07b34
patch
-
git.kernel.org
/stable/c/d20db3c58a7f9361e370a7850ceb60dbdf62eea3
patch
-
git.kernel.org
/stable/c/398e6a015877d44327f754aeb48ff3354945c78c
patch
-
git.kernel.org
/stable/c/32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6
patch
-
git.kernel.org
/stable/c/217b6ea8cf7b819477bca597a6ae2d43d38ba283
patch
-
git.kernel.org
/stable/c/d3dcdb43c872a3b967345144151a2c9bb9124c9b
patch
-
git.kernel.org
/stable/c/22ae32d80ef590d12a2364e4621f90f7c58445c7
patch
-
git.kernel.org
/stable/c/7c1f23ad34fcdace50275a6aa1e1969b41c6233f
patch
Sources
- CVE List CVE-2023-53658
- NVD CVE-2023-53658
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.