CVE-2023-52708 mmc: mmc_spi: fix error handling in mmc_spi_probe()
A null pointer dereference in the Linux kernel's mmc_spi driver can cause a system crash during device probe failure.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52708?
CVE-2023-52708 is a medium-severity vulnerability in Linux kernel, published on 21 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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'.
Weakness: CWE-476
Which versions are affected by CVE-2023-52708?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52708?
Apply the vendor's patch.
Is CVE-2023-52708 being exploited?
There is no known exploitation of CVE-2023-52708 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52708, DEBIAN-CVE-2023-52708, GHSA-5w29-44gv-2g38, UBUNTU-CVE-2023-52708.