{"id":"CVE-2022-50858","aliases":["CVE-2022-50858"],"related":[],"kind":"vulnerability","state":"published","title":"mmc: alcor: fix return value check of mmc_add_host()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2025-12-30T12:15:32.534Z","modified":"2026-06-17T05:24:18.487Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c5413ad815a675b5c98a002353d8e96b44b164e9","fixed":"289c964fe182ce755044a6cd57698072e12ffa6f","status":"affected"},{"type":"git","introduced":"c5413ad815a675b5c98a002353d8e96b44b164e9","fixed":"4a6e5d0222804a3eaf2ea4cf893f412e7cf98cb2","status":"affected"},{"type":"git","introduced":"c5413ad815a675b5c98a002353d8e96b44b164e9","fixed":"29c5b4da41f35108136d843c7432885c78cf8272","status":"affected"},{"type":"git","introduced":"c5413ad815a675b5c98a002353d8e96b44b164e9","fixed":"48dc06333d75f41c2ce9ba954bc3231324b45914","status":"affected"},{"type":"git","introduced":"c5413ad815a675b5c98a002353d8e96b44b164e9","fixed":"60fafcf2fb7ee9a4125dc9a86eeb9d490acf23e2","status":"affected"},{"type":"git","introduced":"c5413ad815a675b5c98a002353d8e96b44b164e9","fixed":"e93d1468f429475a753d6baa79b853b7ee5ef8c0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.0","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/289c964fe182ce755044a6cd57698072e12ffa6f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a6e5d0222804a3eaf2ea4cf893f412e7cf98cb2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/29c5b4da41f35108136d843c7432885c78cf8272","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/48dc06333d75f41c2ce9ba954bc3231324b45914","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/60fafcf2fb7ee9a4125dc9a86eeb9d490acf23e2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e93d1468f429475a753d6baa79b853b7ee5ef8c0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50858","url":"https://www.cve.org/CVERecord?id=CVE-2022-50858","licence":"CVE Terms of Use","modified":"2026-05-11T19:26:29.001Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50858","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50858","licence":"Public domain","modified":"2026-06-17T05:24:18.487Z"}],"updatedAt":"2026-11-25T22:58:21.382Z","epss":{"score":0.00262,"percentile":0.19213,"date":"2026-12-02T12:00:21.000Z"}}