{"id":"CVE-2022-50347","aliases":["CVE-2022-50347"],"related":[],"kind":"vulnerability","state":"published","title":"mmc: rtsx_usb_sdmmc: fix return value check of mmc_add_host()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: rtsx_usb_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 calling mmc_free_host() in the\nerror path, besides, led_classdev_unregister() and pm_runtime_disable() also\nneed be called.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: rtsx_usb_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 calling mmc_free_host() in the\nerror path, besides, led_classdev_unregister() and pm_runtime_disable() also\nneed be called.","source":"cvelist"}],"published":"2025-09-16T16:11:39.891Z","modified":"2026-06-17T05:23:17.253Z","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":"c7f6558d84afe60016b8103c0737df6e376a1c2d","fixed":"d7ad7278be401b09c9f9a9f522cf4c449c7fd489","status":"affected"},{"type":"git","introduced":"c7f6558d84afe60016b8103c0737df6e376a1c2d","fixed":"e598c9683fe1cf97c2b11b800cc3cee072108220","status":"affected"},{"type":"git","introduced":"c7f6558d84afe60016b8103c0737df6e376a1c2d","fixed":"89303ddbb502c3bc8edbf864f9f85500c8fe07e9","status":"affected"},{"type":"git","introduced":"c7f6558d84afe60016b8103c0737df6e376a1c2d","fixed":"937112e991ed25d1727d878734adcbef3b900274","status":"affected"},{"type":"git","introduced":"c7f6558d84afe60016b8103c0737df6e376a1c2d","fixed":"7fa922c7a3dd623fd59f1af50e8896fd9ca7f654","status":"affected"},{"type":"git","introduced":"c7f6558d84afe60016b8103c0737df6e376a1c2d","fixed":"df683201c7ffbd21a806a7cad657b661c5ebfb6f","status":"affected"},{"type":"git","introduced":"c7f6558d84afe60016b8103c0737df6e376a1c2d","fixed":"1491667d5450778a265eddddd294219acfd648cb","status":"affected"},{"type":"git","introduced":"c7f6558d84afe60016b8103c0737df6e376a1c2d","fixed":"a522e26a20a43dcfbef9ee9f71ed803290e852b0","status":"affected"},{"type":"git","introduced":"c7f6558d84afe60016b8103c0737df6e376a1c2d","fixed":"fc38a5a10e9e5a75eb9189854abeb8405b214cc9","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/d7ad7278be401b09c9f9a9f522cf4c449c7fd489","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e598c9683fe1cf97c2b11b800cc3cee072108220","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89303ddbb502c3bc8edbf864f9f85500c8fe07e9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/937112e991ed25d1727d878734adcbef3b900274","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7fa922c7a3dd623fd59f1af50e8896fd9ca7f654","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/df683201c7ffbd21a806a7cad657b661c5ebfb6f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1491667d5450778a265eddddd294219acfd648cb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a522e26a20a43dcfbef9ee9f71ed803290e852b0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fc38a5a10e9e5a75eb9189854abeb8405b214cc9","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T18:21:11.875Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50347","url":"https://www.cve.org/CVERecord?id=CVE-2022-50347","licence":"CVE Terms of Use","modified":"2026-05-11T19:17:46.521Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50347","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50347","licence":"Public domain","modified":"2026-06-17T05:23:17.253Z"}],"updatedAt":"2026-11-25T22:58:21.175Z","epss":{"score":0.0017,"percentile":0.06645,"date":"2026-12-02T12:00:21.000Z"}}