CVE-2023-54204 Details
Description
In the Linux kernel, the following vulnerability has been resolved: mmc: sunplus: fix return value check of mmc_add_host() mmc_add_host() may return error, if we ignore its return value, 1. the memory allocated in mmc_alloc_host() will be leaked 2. null-ptr-deref will happen when calling mmc_remove_host() in remove function spmmc_drv_remove() because deleting not added device. Fix this by checking the return value of mmc_add_host(). Moreover, I fixed the error handling path of spmmc_drv_probe() to clean up.
A vulnerability exists in the Linux kernel's MMC Sunplus driver, specifically in the handling of the return value from the 'mmc_add_host()' function. This oversight can lead to two issues: first, a memory leak from unfreed allocations in 'mmc_alloc_host()'; second, a null pointer dereference when 'mmc_remove_host()' is called in the 'spmmc_drv_remove()' function', attempting to remove a device that was not properly added. The vulnerability affects the Linux kernel stable tree.
Users can apply the latest patch available in the Linux kernel stable tree, which addresses the return value check and error handling in the Sunplus MMC driver.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/741a951f41929f39cae70c66d86d0754d3129d0a | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/dce6d8f985fa1ef5c2af47f4f86ea65511b78656 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 28, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 30, 2025 | New CVE Received | kernel.org |
Volerion