5.5medium
mmc: mmc_spi: fix error handling in mmc_spi_probe()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: mmc: mmc_spi: fix error handling in mmc_spi_probe() If mmc_add_host() fails, it doesn't need to call mmc_remove_host(), or it will cause null-ptr-deref, because of deleting a not added device in mmc_remove_host(). To fix this, goto label 'fail_glue_init', if mmc_add_host() fails, and change the label 'fail_add_host' to 'fail_gpiod_request'.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 15a0580ced081a0f7dc2deea8a4812bdc5e9a109 before e9b488d60f51ae312006e224e03a30a151c28bdd, from 15a0580ced081a0f7dc2deea8a4812bdc5e9a109 before 0b3edcb24bd81b3b2e3dac89f4733bfd47d283be, from 15a0580ced081a0f7dc2deea8a4812bdc5e9a109 before ecad2fafd424ffdc203b2748ded0b37e4bbecef3, from 15a0580ced081a0f7dc2deea8a4812bdc5e9a109 before 82645bf4ed02abe930a659c5fe16d593a6dbd93f, from 15a0580ced081a0f7dc2deea8a4812bdc5e9a109 before cf4c9d2ac1e42c7d18b921bec39486896645b714, 2.6.24 Not affected: before 2.6.24, from 5.4.232 up to 5.4.*, from 5.10.169 up to 5.10.*, from 5.15.95 up to 5.15.*, from 6.1.13 up to 6.1.*, from 6.2 up to * | CVE List |
| linux linux_kernel | from 2.6.24 before 5.4.232, from 5.5 before 5.10.169, from 5.11 before 5.15.95, from 5.16 before 6.1.13, 6.2 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: mmc: mmc_spi: fix error handling in mmc_spi_probe() If mmc_add_host() fails, it doesn't need to call mmc_remove_host(), or it will cause null-ptr-deref, because of deleting a not added device in mmc_remove_host(). To fix this, goto label 'fail_glue_init', if mmc_add_host() fails, and change the label 'fail_add_host' to 'fail_gpiod_request'.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mmc: mmc_spi: corrige el manejo de errores en mmc_spi_probe(). Si mmc_add_host() falla, no es necesario llamar a mmc_remove_host(), o causará null-ptr-deref, debido a la eliminación de un dispositivo no agregado en mmc_remove_host(). Para solucionar este problema, vaya a la etiqueta 'fail_glue_init', si mmc_add_host() falla, y cambie la etiqueta 'fail_add_host' a 'fail_gpiod_request'.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-52708 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-52708 changed 2026-06-17 | Public domain |