{"id":"CVE-2022-50858","summary":"mmc: alcor: fix return value check of mmc_add_host()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: alcor: fix return value check of mmc_add_host()\n\nmmc_add_host() may return error, if we ignore its return value, the memory\nthat allocated in mmc_alloc_host() will be leaked and it will lead a kernel\ncrash because of deleting not added device in the remove path.\n\nSo fix this by checking the return value and calling mmc_free_host() in the\nerror path.","modified":"2026-04-02T08:28:48.664993Z","published":"2025-12-30T12:15:32.534Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0617-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50858.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/289c964fe182ce755044a6cd57698072e12ffa6f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/29c5b4da41f35108136d843c7432885c78cf8272"},{"type":"WEB","url":"https://git.kernel.org/stable/c/48dc06333d75f41c2ce9ba954bc3231324b45914"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4a6e5d0222804a3eaf2ea4cf893f412e7cf98cb2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/60fafcf2fb7ee9a4125dc9a86eeb9d490acf23e2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e93d1468f429475a753d6baa79b853b7ee5ef8c0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50858.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50858"},{"type":"PACKAGE","url":"https://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":"c5413ad815a675b5c98a002353d8e96b44b164e9"},{"fixed":"289c964fe182ce755044a6cd57698072e12ffa6f"},{"fixed":"4a6e5d0222804a3eaf2ea4cf893f412e7cf98cb2"},{"fixed":"29c5b4da41f35108136d843c7432885c78cf8272"},{"fixed":"48dc06333d75f41c2ce9ba954bc3231324b45914"},{"fixed":"60fafcf2fb7ee9a4125dc9a86eeb9d490acf23e2"},{"fixed":"e93d1468f429475a753d6baa79b853b7ee5ef8c0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50858.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.4.229"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50858.json"}}],"schema_version":"1.7.5"}