{"id":"CVE-2022-50268","aliases":["CVE-2022-50268"],"related":[],"kind":"vulnerability","state":"published","title":"mmc: moxart: fix return value check of mmc_add_host()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: moxart: 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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: moxart: 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().","source":"cvelist"}],"published":"2025-09-15T14:21:04.555Z","modified":"2026-06-17T05:23:07.043Z","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-476"],"affected":[{"ranges":[{"type":"git","introduced":"1b66e94e6b9995323190f31c51d8e1a6f516627e","fixed":"a4c765f5d8e58138cff69f1510b2e8942ec37022","status":"affected"},{"type":"git","introduced":"1b66e94e6b9995323190f31c51d8e1a6f516627e","fixed":"a94d466f31a5201995d39bc1208e2c09ab04f0bf","status":"affected"},{"type":"git","introduced":"1b66e94e6b9995323190f31c51d8e1a6f516627e","fixed":"c7e9a2059fb943fc3c3fa12261518fd72a0fc136","status":"affected"},{"type":"git","introduced":"1b66e94e6b9995323190f31c51d8e1a6f516627e","fixed":"b174f2b36c638fc7737df6c8aac1889a646be98f","status":"affected"},{"type":"git","introduced":"1b66e94e6b9995323190f31c51d8e1a6f516627e","fixed":"7c3b301ca8b0cab392c71da8fcdfa499074f8e97","status":"affected"},{"type":"git","introduced":"1b66e94e6b9995323190f31c51d8e1a6f516627e","fixed":"f0502fe86a2db2336c9498d2de3e97f22dcf85ae","status":"affected"},{"type":"git","introduced":"1b66e94e6b9995323190f31c51d8e1a6f516627e","fixed":"8f8bb62c7c5c833758ef1563fe738afd579c3efe","status":"affected"},{"type":"git","introduced":"1b66e94e6b9995323190f31c51d8e1a6f516627e","fixed":"40aa73c70e8a5706f9cbe01409a5e51cc0f1750e","status":"affected"},{"type":"git","introduced":"1b66e94e6b9995323190f31c51d8e1a6f516627e","fixed":"0ca18d09c744fb030ae9bc5836c3e357e0237dea","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.16","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.16","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/a4c765f5d8e58138cff69f1510b2e8942ec37022","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a94d466f31a5201995d39bc1208e2c09ab04f0bf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c7e9a2059fb943fc3c3fa12261518fd72a0fc136","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b174f2b36c638fc7737df6c8aac1889a646be98f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c3b301ca8b0cab392c71da8fcdfa499074f8e97","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f0502fe86a2db2336c9498d2de3e97f22dcf85ae","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8f8bb62c7c5c833758ef1563fe738afd579c3efe","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/40aa73c70e8a5706f9cbe01409a5e51cc0f1750e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0ca18d09c744fb030ae9bc5836c3e357e0237dea","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50268","url":"https://www.cve.org/CVERecord?id=CVE-2022-50268","licence":"CVE Terms of Use","modified":"2026-05-11T19:16:02.317Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50268","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50268","licence":"Public domain","modified":"2026-06-17T05:23:07.043Z"}],"updatedAt":"2026-11-25T22:58:21.138Z","epss":{"score":0.0017,"percentile":0.06663,"date":"2026-12-01T12:00:22.000Z"}}