{"id":"CVE-2022-50653","summary":"mmc: atmel-mci: fix return value check of mmc_add_host()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: atmel-mci: fix return value check of mmc_add_host()\n\nmmc_add_host() may return error, if we ignore its return value,\nit will lead two issues:\n1. The memory that allocated in mmc_alloc_host() is leaked.\n2. In the remove() path, mmc_remove_host() will be called to\n   delete device, but it's not added yet, it will lead a kernel\n   crash because of null-ptr-deref in device_del().\n\nSo fix this by checking the return value and calling mmc_free_host()\nin the error path.","modified":"2026-03-20T11:47:34.148761Z","published":"2025-12-09T00:00:27.592Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0617-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50653.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/00ac0f5f95920f003cd6ece53cdc759549b69118"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1925472dec31ec061d57412b3a65a056ea24f340"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6bb26abb92f25e582a0976091a10b539fe3796db"},{"type":"WEB","url":"https://git.kernel.org/stable/c/85946ceb0fac20ab39cdb85333086daf0291a553"},{"type":"WEB","url":"https://git.kernel.org/stable/c/99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9e6e8c43726673ca2abcaac87640b9215fd72f4c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cc8bb436f3c842a86b9082d97933582120d180e2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50653.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50653"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7d2be0749a59096a334c94dc48f43294193cb8ed"},{"fixed":"99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2"},{"fixed":"6bb26abb92f25e582a0976091a10b539fe3796db"},{"fixed":"00ac0f5f95920f003cd6ece53cdc759549b69118"},{"fixed":"1925472dec31ec061d57412b3a65a056ea24f340"},{"fixed":"cc8bb436f3c842a86b9082d97933582120d180e2"},{"fixed":"85946ceb0fac20ab39cdb85333086daf0291a553"},{"fixed":"9e6e8c43726673ca2abcaac87640b9215fd72f4c"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50653.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.27"},{"fixed":"4.19.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.229"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50653.json"}}],"schema_version":"1.7.5"}