Bug 2426054 (CVE-2023-54204) - CVE-2023-54204 kernel: mmc: sunplus: fix return value check of mmc_add_host()
Summary: CVE-2023-54204 kernel: mmc: sunplus: fix return value check of mmc_add_host()
Keywords:
Status: NEW
Alias: CVE-2023-54204
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-30 13:05 UTC by OSIDB Bzimport
Modified: 2025-12-31 12:32 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-30 13:05:17 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.