CVE-2023-52708·Kernel vulnerability
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'.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.1.13
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 5% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 5.16
Until: 6.1.13
Fixed in: 6.1.13
How to fix this CVE
Update your Linux kernel to version 6.1.13 or later to resolve a device management error in the mmc_spi driver that can cause kernel crashes. This fix corrects the error handling path when MMC host registration fails, preventing null pointer dereference during cleanup. Systems running kernel versions 5.16 through 6.1.12 with SPI-based MMC devices should prioritize this update.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and compare against the affected range (5.16 to 6.1.12)
- Step 2: Verify if mmc_spi module is loaded: `lsmod | grep mmc_spi` or `modinfo mmc_spi`
- Step 3: Search kernel logs for mmc_spi initialization failures: `dmesg | grep -i 'mmc_spi\|mmc_add_host'` or `journalctl -k | grep -i 'mmc_spi'`
- Step 4: After patching, confirm the new kernel version: `uname -r` should show 6.1.13 or later, and `dmesg | grep -i 'mmc_spi'` should show successful device initialization
FAQ
What is CVE-2023-52708?
CVE-2023-52708 is a kernel bug in the mmc_spi driver where incorrect error handling during device registration leads to a null pointer dereference, potentially causing kernel panics on systems with SPI-connected MMC/SD cards.
Is CVE-2023-52708 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available. However, it can be triggered locally by unprivileged users with access to SPI MMC devices.
What versions of Kernel are affected by CVE-2023-52708?
Linux kernel versions 5.16.0 through 6.1.12 are affected. The vulnerability was fixed in kernel 6.1.13 and backported to stable branches.
How do I check if my server is vulnerable to CVE-2023-52708?
Run `uname -r` and check if your version falls between 5.16 and 6.1.12. Additionally, verify the mmc_spi module is present with `grep -i mmc_spi /lib/modules/$(uname -r)/modules.builtin` or `lsmod | grep mmc_spi`.
Does Defensia detect CVE-2023-52708?
Yes — Defensia's CVE advisory scanner compares installed kernel versions against the NVD database. If a vulnerable kernel version is detected on your monitored servers, CVE-2023-52708 will appear in your dashboard with remediation steps and affected module information.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0b3edcb24bd81b3b2e3dac89f4733bfd47d283be
- https://git.kernel.org/stable/c/82645bf4ed02abe930a659c5fe16d593a6dbd93f
- https://git.kernel.org/stable/c/cf4c9d2ac1e42c7d18b921bec39486896645b714
- https://git.kernel.org/stable/c/e9b488d60f51ae312006e224e03a30a151c28bdd
- https://git.kernel.org/stable/c/ecad2fafd424ffdc203b2748ded0b37e4bbecef3
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2023-52708. Free for 1 server.
Get started free