CVE-2023-54204

Source
https://cve.org/CVERecord?id=CVE-2023-54204
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54204.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-54204
Downstream
Related
Published
2025-12-30T12:11:04Z
Modified
2026-08-12T03:51:31Z
Summary
mmc: sunplus: fix return value check of mmc_add_host()
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54204.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4e268fed8b1861616af28f9cfb4eed8ca5d7af6c
Fixed
741a951f41929f39cae70c66d86d0754d3129d0a
Fixed
dce6d8f985fa1ef5c2af47f4f86ea65511b78656

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54204.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.4.12

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54204.json"