{"id":"CVE-2022-50670","published":"2025-12-09T01:29:21Z","modified":"2026-05-11T19:23:21Z","title":"mmc: omap_hsmmc: fix return value check of mmc_add_host()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00262,"percentile":0.18095,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f153c9e15f8961bdf38707853e15b42ea7c691d9","tags":[]},{"url":"https://git.kernel.org/stable/c/fb3d596267a98813a7a8206097d8d46c98505a0d","tags":[]},{"url":"https://git.kernel.org/stable/c/62005dfcc396424db3337a1dc3ab49623537f5e5","tags":[]},{"url":"https://git.kernel.org/stable/c/a5f8a4583280a76e50329b910e91ef1dea1e6c79","tags":[]},{"url":"https://git.kernel.org/stable/c/4e1dc24bcfc8257f24c0663badec7e4f3ae80558","tags":[]},{"url":"https://git.kernel.org/stable/c/a525cad241c339ca00bf7ebf03c5180f2a9b767c","tags":[]}],"priority":{"score":3.6,"factors":[{"name":"EPSS percentile","points":3.62}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a45c6cb816474cefe56059fce422a9bdcd77e0dc, < f153c9e15f8961bdf38707853e15b42ea7c691d9",">= a45c6cb816474cefe56059fce422a9bdcd77e0dc, < fb3d596267a98813a7a8206097d8d46c98505a0d",">= a45c6cb816474cefe56059fce422a9bdcd77e0dc, < 62005dfcc396424db3337a1dc3ab49623537f5e5",">= a45c6cb816474cefe56059fce422a9bdcd77e0dc, < a5f8a4583280a76e50329b910e91ef1dea1e6c79",">= a45c6cb816474cefe56059fce422a9bdcd77e0dc, < 4e1dc24bcfc8257f24c0663badec7e4f3ae80558",">= a45c6cb816474cefe56059fce422a9bdcd77e0dc, < a525cad241c339ca00bf7ebf03c5180f2a9b767c"]},{"vendor":"Linux","product":"Linux","versions":["2.6.29"]}],"euvd":{"id":"EUVD-2022-55735","exploited":false,"provenance":"source"}}