{"id":"CVE-2022-50653","published":"2025-12-09T00:00:27Z","modified":"2026-05-11T19:23:00Z","title":"mmc: atmel-mci: 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: 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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0022,"percentile":0.12568,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2","tags":[]},{"url":"https://git.kernel.org/stable/c/6bb26abb92f25e582a0976091a10b539fe3796db","tags":[]},{"url":"https://git.kernel.org/stable/c/00ac0f5f95920f003cd6ece53cdc759549b69118","tags":[]},{"url":"https://git.kernel.org/stable/c/1925472dec31ec061d57412b3a65a056ea24f340","tags":[]},{"url":"https://git.kernel.org/stable/c/cc8bb436f3c842a86b9082d97933582120d180e2","tags":[]},{"url":"https://git.kernel.org/stable/c/85946ceb0fac20ab39cdb85333086daf0291a553","tags":[]},{"url":"https://git.kernel.org/stable/c/9e6e8c43726673ca2abcaac87640b9215fd72f4c","tags":[]}],"priority":{"score":2.5,"factors":[{"name":"EPSS percentile","points":2.51}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 7d2be0749a59096a334c94dc48f43294193cb8ed, < 99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2",">= 7d2be0749a59096a334c94dc48f43294193cb8ed, < 6bb26abb92f25e582a0976091a10b539fe3796db",">= 7d2be0749a59096a334c94dc48f43294193cb8ed, < 00ac0f5f95920f003cd6ece53cdc759549b69118",">= 7d2be0749a59096a334c94dc48f43294193cb8ed, < 1925472dec31ec061d57412b3a65a056ea24f340",">= 7d2be0749a59096a334c94dc48f43294193cb8ed, < cc8bb436f3c842a86b9082d97933582120d180e2",">= 7d2be0749a59096a334c94dc48f43294193cb8ed, < 85946ceb0fac20ab39cdb85333086daf0291a553",">= 7d2be0749a59096a334c94dc48f43294193cb8ed, < 9e6e8c43726673ca2abcaac87640b9215fd72f4c"]},{"vendor":"Linux","product":"Linux","versions":["2.6.27"]}],"euvd":{"id":"EUVD-2022-55703","exploited":false,"provenance":"source"}}