# CVE-2023-52708: mmc: mmc_spi: fix error handling in mmc_spi_probe()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-05-21T15:22:55.975Z
- Modified: 2026-06-17T06:43:23.867Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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'.

(As written by CVE List.)

## Affected

- 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 *)
- 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

## References

- <https://git.kernel.org/stable/c/e9b488d60f51ae312006e224e03a30a151c28bdd> (patch)
- <https://git.kernel.org/stable/c/0b3edcb24bd81b3b2e3dac89f4733bfd47d283be> (patch)
- <https://git.kernel.org/stable/c/ecad2fafd424ffdc203b2748ded0b37e4bbecef3> (patch)
- <https://git.kernel.org/stable/c/82645bf4ed02abe930a659c5fe16d593a6dbd93f> (patch)
- <https://git.kernel.org/stable/c/cf4c9d2ac1e42c7d18b921bec39486896645b714> (patch)

## Sources

- CVE List: [CVE-2023-52708](https://www.cve.org/CVERecord?id=CVE-2023-52708), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52708](https://nvd.nist.gov/vuln/detail/CVE-2023-52708), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52708 · Whole record: https://cve.day/CVE-2023-52708.json · Rebuilt by cve.day 2026-11-25T22:58:33.989Z
