{"schema_version":"1.9.0","id":"CVE-2022-50670","published":"2025-12-09T01:29:21.864Z","modified":"2026-08-12T03:51:48.554757940Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0617-1"],"summary":"mmc: omap_hsmmc: fix return value check of mmc_add_host()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: omap_hsmmc: 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\nFix this by checking the return value and goto error path wihch\nwill call mmc_free_host().","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a45c6cb816474cefe56059fce422a9bdcd77e0dc"},{"fixed":"f153c9e15f8961bdf38707853e15b42ea7c691d9"},{"fixed":"fb3d596267a98813a7a8206097d8d46c98505a0d"},{"fixed":"62005dfcc396424db3337a1dc3ab49623537f5e5"},{"fixed":"a5f8a4583280a76e50329b910e91ef1dea1e6c79"},{"fixed":"4e1dc24bcfc8257f24c0663badec7e4f3ae80558"},{"fixed":"a525cad241c339ca00bf7ebf03c5180f2a9b767c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50670.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.29"},{"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/cve-osv-conversion/osv-output/CVE-2022-50670.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4e1dc24bcfc8257f24c0663badec7e4f3ae80558"},{"type":"WEB","url":"https://git.kernel.org/stable/c/62005dfcc396424db3337a1dc3ab49623537f5e5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a525cad241c339ca00bf7ebf03c5180f2a9b767c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a5f8a4583280a76e50329b910e91ef1dea1e6c79"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f153c9e15f8961bdf38707853e15b42ea7c691d9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fb3d596267a98813a7a8206097d8d46c98505a0d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50670.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50670"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50670.json"}}