{"id":"CVE-2022-50353","aliases":["CVE-2022-50353"],"related":[],"kind":"vulnerability","state":"published","title":"mmc: wmt-sdmmc: fix return value check of mmc_add_host()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: wmt-sdmmc: 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, clk_disable_unprepare() also needs be called.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: wmt-sdmmc: 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, clk_disable_unprepare() also needs be called.","source":"cvelist"}],"published":"2025-09-17T14:56:06.761Z","modified":"2026-06-17T05:23:18.323Z","severity":{"scorer":"CISA-ADP","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":"CISA-ADP","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"},{"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":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","fixed":"70b0620afab3c69d95a7e2dd7ceff162a21c4009","status":"affected"},{"type":"git","introduced":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","fixed":"ecd6f77af3478f5223aa4011642a891b7dc91228","status":"affected"},{"type":"git","introduced":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","fixed":"c7a328cea791cc2769b6417943939420913b4a46","status":"affected"},{"type":"git","introduced":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","fixed":"9bedf64dda84b29151e41591d8ded9ff0e6d336a","status":"affected"},{"type":"git","introduced":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","fixed":"58c3a8d0f1abeb1ca5c2df948be58ad4f7bb6f67","status":"affected"},{"type":"git","introduced":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","fixed":"b40ac3b696a9c84b36211ef0c3f5a422650c101b","status":"affected"},{"type":"git","introduced":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","fixed":"eb7a2d516d4fbd165c07877a20feccb047342b1f","status":"affected"},{"type":"git","introduced":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","fixed":"29276d56f6ed138db0f38cd31aedc0b725c8c76c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.8","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.8","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/70b0620afab3c69d95a7e2dd7ceff162a21c4009","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ecd6f77af3478f5223aa4011642a891b7dc91228","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c7a328cea791cc2769b6417943939420913b4a46","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9bedf64dda84b29151e41591d8ded9ff0e6d336a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/58c3a8d0f1abeb1ca5c2df948be58ad4f7bb6f67","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b40ac3b696a9c84b36211ef0c3f5a422650c101b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb7a2d516d4fbd165c07877a20feccb047342b1f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/29276d56f6ed138db0f38cd31aedc0b725c8c76c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T18:31:18.543Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50353","url":"https://www.cve.org/CVERecord?id=CVE-2022-50353","licence":"CVE Terms of Use","modified":"2026-05-11T19:17:53.702Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50353","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50353","licence":"Public domain","modified":"2026-06-17T05:23:18.323Z"}],"updatedAt":"2026-11-25T22:58:21.177Z","epss":{"score":0.00211,"percentile":0.12031,"date":"2026-12-01T12:00:22.000Z"}}