In the Linux kernel, the following vulnerability has been resolved:
mmc: sunplus: fix return value check of mmcaddhost()
mmcaddhost() may return error, if we ignore its return value, 1. the memory allocated in mmcallochost() will be leaked 2. null-ptr-deref will happen when calling mmcremovehost() in remove function spmmcdrvremove() because deleting not added device.
Fix this by checking the return value of mmcaddhost(). Moreover, I fixed the error handling path of spmmcdrvprobe() to clean up.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54204.json"
}