{"id":"CVE-2022-50251","aliases":["CVE-2022-50251"],"related":[],"kind":"vulnerability","state":"published","title":"mmc: vub300: fix return value check of mmc_add_host()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: vub300: 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 goto error path which will call\nmmc_free_host(), besides, the timer added before mmc_add_host() needs be del.\n\nAnd this patch fixes another missing call mmc_free_host() if usb_control_msg()\nfails.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: vub300: 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 goto error path which will call\nmmc_free_host(), besides, the timer added before mmc_add_host() needs be del.\n\nAnd this patch fixes another missing call mmc_free_host() if usb_control_msg()\nfails.","source":"cvelist"}],"published":"2025-09-15T14:02:12.331Z","modified":"2026-06-17T05:23:04.633Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"88095e7b473a3d9ec3b9c60429576e9cbd327c89","fixed":"41ed46bdbd2878cd6567abe0974a445f8b1b8ec8","status":"affected"},{"type":"git","introduced":"88095e7b473a3d9ec3b9c60429576e9cbd327c89","fixed":"25f05d762ca5e1c685002a53dd44f68e78ca3feb","status":"affected"},{"type":"git","introduced":"88095e7b473a3d9ec3b9c60429576e9cbd327c89","fixed":"a46e681151bbdacdf6b89ee8c4e5bad0555142bb","status":"affected"},{"type":"git","introduced":"88095e7b473a3d9ec3b9c60429576e9cbd327c89","fixed":"3b29f8769d32016b2d89183db4d80c7a71b7e35e","status":"affected"},{"type":"git","introduced":"88095e7b473a3d9ec3b9c60429576e9cbd327c89","fixed":"3049a3b927a40d89d4582ff1033cd7953be773c7","status":"affected"},{"type":"git","introduced":"88095e7b473a3d9ec3b9c60429576e9cbd327c89","fixed":"afc898019e7bf18c5eb7a0ac19852fcb1b341b3c","status":"affected"},{"type":"git","introduced":"88095e7b473a3d9ec3b9c60429576e9cbd327c89","fixed":"c9e85979b59cb86f0a15defa8199d740e2b36b90","status":"affected"},{"type":"git","introduced":"88095e7b473a3d9ec3b9c60429576e9cbd327c89","fixed":"2044b2ea77945f372ef161d1bbf814e471767ff2","status":"affected"},{"type":"git","introduced":"88095e7b473a3d9ec3b9c60429576e9cbd327c89","fixed":"0613ad2401f88bdeae5594c30afe318e93b14676","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.0","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","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"},{"ranges":[{"status":"affected","introduced":"3.0","fixed":"4.9.337"},{"status":"affected","introduced":"4.10","fixed":"4.14.303"},{"status":"affected","introduced":"4.15","fixed":"4.19.270"},{"status":"affected","introduced":"4.20","fixed":"5.4.229"},{"status":"affected","introduced":"5.5","fixed":"5.10.163"},{"status":"affected","introduced":"5.11","fixed":"5.15.86"},{"status":"affected","introduced":"5.16","fixed":"6.0.16"},{"status":"affected","introduced":"6.1","fixed":"6.1.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/41ed46bdbd2878cd6567abe0974a445f8b1b8ec8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25f05d762ca5e1c685002a53dd44f68e78ca3feb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a46e681151bbdacdf6b89ee8c4e5bad0555142bb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b29f8769d32016b2d89183db4d80c7a71b7e35e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3049a3b927a40d89d4582ff1033cd7953be773c7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/afc898019e7bf18c5eb7a0ac19852fcb1b341b3c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c9e85979b59cb86f0a15defa8199d740e2b36b90","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2044b2ea77945f372ef161d1bbf814e471767ff2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0613ad2401f88bdeae5594c30afe318e93b14676","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50251","url":"https://www.cve.org/CVERecord?id=CVE-2022-50251","licence":"CVE Terms of Use","modified":"2026-05-11T19:15:41.971Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50251","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50251","licence":"Public domain","modified":"2026-06-17T05:23:04.633Z"}],"updatedAt":"2026-11-25T22:58:21.129Z","epss":{"score":0.00171,"percentile":0.06834,"date":"2026-12-01T12:00:22.000Z"}}