{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50353","id":"CVE-2022-50353","title":"mmc: wmt-sdmmc: fix return value check of mmc_add_host()","description":"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 pa","descriptionLong":"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.","published":"2025-09-17T14:56:06.761Z","updated":"2026-10-28T02:31:10.331484126Z","reserved":"2025-09-16T16:03:27.882Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","lessThan":"70b0620afab3c69d95a7e2dd7ceff162a21c4009","status":"affected","versionType":"git"},{"version":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","lessThan":"ecd6f77af3478f5223aa4011642a891b7dc91228","status":"affected","versionType":"git"},{"version":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","lessThan":"c7a328cea791cc2769b6417943939420913b4a46","status":"affected","versionType":"git"},{"version":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","lessThan":"9bedf64dda84b29151e41591d8ded9ff0e6d336a","status":"affected","versionType":"git"},{"version":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","lessThan":"58c3a8d0f1abeb1ca5c2df948be58ad4f7bb6f67","status":"affected","versionType":"git"},{"version":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","lessThan":"b40ac3b696a9c84b36211ef0c3f5a422650c101b","status":"affected","versionType":"git"},{"version":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","lessThan":"eb7a2d516d4fbd165c07877a20feccb047342b1f","status":"affected","versionType":"git"},{"version":"3a96dff0f828ae9dfb43efd49a9b67a74c6dc360","lessThan":"29276d56f6ed138db0f38cd31aedc0b725c8c76c","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.8","status":"affected"},{"version":"0","lessThan":"3.8","status":"unaffected","versionType":"semver"},{"version":"4.14.303","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.270","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.229","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.163","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.86","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.16","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1.2","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/70b0620afab3c69d95a7e2dd7ceff162a21c4009","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ecd6f77af3478f5223aa4011642a891b7dc91228","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c7a328cea791cc2769b6417943939420913b4a46","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9bedf64dda84b29151e41591d8ded9ff0e6d336a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/58c3a8d0f1abeb1ca5c2df948be58ad4f7bb6f67","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b40ac3b696a9c84b36211ef0c3f5a422650c101b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/eb7a2d516d4fbd165c07877a20feccb047342b1f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/29276d56f6ed138db0f38cd31aedc0b725c8c76c","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50353.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50353","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00211,"epssPercentile":0.11455,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50353","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50353","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50353","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50353","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}