{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50268","id":"CVE-2022-50268","title":"mmc: moxart: fix return value check of mmc_add_host()","description":"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 ","descriptionLong":"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().","published":"2025-09-15T14:21:04.555Z","updated":"2026-10-28T02:30:31.057956151Z","reserved":"2025-09-15T13:58:00.975Z","status":"Analyzed","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"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1b66e94e6b9995323190f31c51d8e1a6f516627e","lessThan":"a4c765f5d8e58138cff69f1510b2e8942ec37022","status":"affected","versionType":"git"},{"version":"1b66e94e6b9995323190f31c51d8e1a6f516627e","lessThan":"a94d466f31a5201995d39bc1208e2c09ab04f0bf","status":"affected","versionType":"git"},{"version":"1b66e94e6b9995323190f31c51d8e1a6f516627e","lessThan":"c7e9a2059fb943fc3c3fa12261518fd72a0fc136","status":"affected","versionType":"git"},{"version":"1b66e94e6b9995323190f31c51d8e1a6f516627e","lessThan":"b174f2b36c638fc7737df6c8aac1889a646be98f","status":"affected","versionType":"git"},{"version":"1b66e94e6b9995323190f31c51d8e1a6f516627e","lessThan":"7c3b301ca8b0cab392c71da8fcdfa499074f8e97","status":"affected","versionType":"git"},{"version":"1b66e94e6b9995323190f31c51d8e1a6f516627e","lessThan":"f0502fe86a2db2336c9498d2de3e97f22dcf85ae","status":"affected","versionType":"git"},{"version":"1b66e94e6b9995323190f31c51d8e1a6f516627e","lessThan":"8f8bb62c7c5c833758ef1563fe738afd579c3efe","status":"affected","versionType":"git"},{"version":"1b66e94e6b9995323190f31c51d8e1a6f516627e","lessThan":"40aa73c70e8a5706f9cbe01409a5e51cc0f1750e","status":"affected","versionType":"git"},{"version":"1b66e94e6b9995323190f31c51d8e1a6f516627e","lessThan":"0ca18d09c744fb030ae9bc5836c3e357e0237dea","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.16","status":"affected"},{"version":"0","lessThan":"3.16","status":"unaffected","versionType":"semver"},{"version":"4.9.337","lessThanOrEqual":"4.9.*","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/a4c765f5d8e58138cff69f1510b2e8942ec37022","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a94d466f31a5201995d39bc1208e2c09ab04f0bf","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c7e9a2059fb943fc3c3fa12261518fd72a0fc136","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b174f2b36c638fc7737df6c8aac1889a646be98f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7c3b301ca8b0cab392c71da8fcdfa499074f8e97","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f0502fe86a2db2336c9498d2de3e97f22dcf85ae","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8f8bb62c7c5c833758ef1563fe738afd579c3efe","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/40aa73c70e8a5706f9cbe01409a5e51cc0f1750e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0ca18d09c744fb030ae9bc5836c3e357e0237dea","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50268.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50268","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":null,"epss":0.0017,"epssPercentile":0.06491,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50268","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50268","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50268","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-50268","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}