{"id":"CVE-2023-53658","aliases":["CVE-2023-53658"],"related":[],"kind":"vulnerability","state":"published","title":"spi: bcm-qspi: return error if neither hif_mspi nor mspi is available","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: bcm-qspi: return error if neither hif_mspi nor mspi is available\n\nIf neither a \"hif_mspi\" nor \"mspi\" resource is present, the driver will\njust early exit in probe but still return success. Apart from not doing\nanything meaningful, this would then also lead to a null pointer access\non removal, as platform_get_drvdata() would return NULL, which it would\nthen try to dereference when trying to unregister the spi master.\n\nFix this by unconditionally calling devm_ioremap_resource(), as it can\nhandle a NULL res and will then return a viable ERR_PTR() if we get one.\n\nThe \"return 0;\" was previously a \"goto qspi_resource_err;\" where then\nret was returned, but since ret was still initialized to 0 at this place\nthis was a valid conversion in 63c5395bb7a9 (\"spi: bcm-qspi: Fix\nuse-after-free on unbind\"). The issue was not introduced by this commit,\nonly made more obvious.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: bcm-qspi: return error if neither hif_mspi nor mspi is available\n\nIf neither a \"hif_mspi\" nor \"mspi\" resource is present, the driver will\njust early exit in probe but still return success. Apart from not doing\nanything meaningful, this would then also lead to a null pointer access\non removal, as platform_get_drvdata() would return NULL, which it would\nthen try to dereference when trying to unregister the spi master.\n\nFix this by unconditionally calling devm_ioremap_resource(), as it can\nhandle a NULL res and will then return a viable ERR_PTR() if we get one.\n\nThe \"return 0;\" was previously a \"goto qspi_resource_err;\" where then\nret was returned, but since ret was still initialized to 0 at this place\nthis was a valid conversion in 63c5395bb7a9 (\"spi: bcm-qspi: Fix\nuse-after-free on unbind\"). The issue was not introduced by this commit,\nonly made more obvious.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nspi: bcm-qspi: devolver error si ni hif_mspi ni mspi están disponibles\n\nSi ni un recurso ’hif_mspi’ ni ’mspi’ está presente, el controlador simplemente saldrá temprano en probe pero aún así devolverá éxito. Aparte de no hacer nada significativo, esto también llevaría a un acceso de puntero nulo en la eliminación, ya que platform_get_drvdata() devolvería NULL, el cual intentaría desreferenciar al intentar anular el registro del maestro spi.\n\nSolucione esto llamando incondicionalmente a devm_ioremap_resource(), ya que puede manejar un ’res’ NULL y luego devolverá un ERR_PTR() viable si obtenemos uno.\n\nEl ’return 0;’ era previamente un ’goto qspi_resource_err;’ donde luego se devolvía ’ret’, pero dado que ’ret’ todavía estaba inicializado a 0 en este lugar, esta fue una conversión válida en 63c5395bb7a9 (’spi: bcm-qspi: Solucionar uso después de liberación en desvinculación’). El problema no fue introducido por este commit, solo se hizo más obvio.","source":"nvd"}],"published":"2025-10-07T15:21:18.950Z","modified":"2026-10-28T20:10:00.163Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"fa236a7ef24048bafaeed13f68df35a819794758","fixed":"a91c34357afcfaa5307e254f22a8452550a07b34","status":"affected"},{"type":"git","introduced":"fa236a7ef24048bafaeed13f68df35a819794758","fixed":"d20db3c58a7f9361e370a7850ceb60dbdf62eea3","status":"affected"},{"type":"git","introduced":"fa236a7ef24048bafaeed13f68df35a819794758","fixed":"398e6a015877d44327f754aeb48ff3354945c78c","status":"affected"},{"type":"git","introduced":"fa236a7ef24048bafaeed13f68df35a819794758","fixed":"32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6","status":"affected"},{"type":"git","introduced":"fa236a7ef24048bafaeed13f68df35a819794758","fixed":"217b6ea8cf7b819477bca597a6ae2d43d38ba283","status":"affected"},{"type":"git","introduced":"fa236a7ef24048bafaeed13f68df35a819794758","fixed":"d3dcdb43c872a3b967345144151a2c9bb9124c9b","status":"affected"},{"type":"git","introduced":"fa236a7ef24048bafaeed13f68df35a819794758","fixed":"22ae32d80ef590d12a2364e4621f90f7c58445c7","status":"affected"},{"type":"git","introduced":"fa236a7ef24048bafaeed13f68df35a819794758","fixed":"7c1f23ad34fcdace50275a6aa1e1969b41c6233f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.9","status":"unaffected"},{"type":"semver","introduced":"4.14.322","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.291","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.251","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.188","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.121","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.39","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.4.4","lastAffected":"6.4.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.5","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.9","fixed":"4.14.322"},{"status":"affected","introduced":"4.15","fixed":"4.19.291"},{"status":"affected","introduced":"4.20","fixed":"5.4.251"},{"status":"affected","introduced":"5.5","fixed":"5.10.188"},{"status":"affected","introduced":"5.11","fixed":"5.15.121"},{"status":"affected","introduced":"5.16","fixed":"6.1.39"},{"status":"affected","introduced":"6.2","fixed":"6.4.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a91c34357afcfaa5307e254f22a8452550a07b34","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d20db3c58a7f9361e370a7850ceb60dbdf62eea3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/398e6a015877d44327f754aeb48ff3354945c78c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/32b9c8f7892c19f7f5c9fed5fb410b9fd5990bb6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/217b6ea8cf7b819477bca597a6ae2d43d38ba283","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d3dcdb43c872a3b967345144151a2c9bb9124c9b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22ae32d80ef590d12a2364e4621f90f7c58445c7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c1f23ad34fcdace50275a6aa1e1969b41c6233f","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53658","url":"https://www.cve.org/CVERecord?id=CVE-2023-53658","licence":"CVE Terms of Use","modified":"2026-05-11T19:49:24.804Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53658","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53658","licence":"Public domain","modified":"2026-10-28T20:10:00.163Z"}],"updatedAt":"2026-11-25T22:58:34.989Z","epss":{"score":0.00214,"percentile":0.06695,"date":"2026-11-30T12:00:22.000Z"}}