{"id":"CVE-2022-50769","aliases":["CVE-2022-50769"],"related":[],"kind":"vulnerability","state":"published","title":"mmc: mxcmmc: fix return value check of mmc_add_host()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: mxcmmc: 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 goto error path which will call\nmmc_free_host().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: mxcmmc: 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 goto error path which will call\nmmc_free_host().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmmc: mxcmmc: corregir la comprobación del valor de retorno de mmc_add_host()\n\nmmc_add_host() puede devolver un error, si ignoramos su valor de retorno, la memoria que se asignó en mmc_alloc_host() se filtrará y provocará un fallo del kernel debido a la eliminación de un dispositivo no añadido en la ruta de eliminación.\n\nAsí que se corrige esto comprobando el valor de retorno y saltando a la ruta de error que llamará a mmc_free_host().","source":"nvd"}],"published":"2025-12-24T13:05:58.994Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d96be879ff469759af6d7fcebdb66237c18da6f8","fixed":"5f35c038c9f4d258b3cf77885a2730f1417d63e7","status":"affected"},{"type":"git","introduced":"d96be879ff469759af6d7fcebdb66237c18da6f8","fixed":"1cf0c1e58738b97e2de207846105b6a5d46622ee","status":"affected"},{"type":"git","introduced":"d96be879ff469759af6d7fcebdb66237c18da6f8","fixed":"b8bdb3fd13d5cd1e86d22fd3f803a742fd88af89","status":"affected"},{"type":"git","introduced":"d96be879ff469759af6d7fcebdb66237c18da6f8","fixed":"32eb502c972dfc34413c9147418b3d94d870c2b8","status":"affected"},{"type":"git","introduced":"d96be879ff469759af6d7fcebdb66237c18da6f8","fixed":"3904eb97bb78fdca3e16d30a38ce5697b9686110","status":"affected"},{"type":"git","introduced":"d96be879ff469759af6d7fcebdb66237c18da6f8","fixed":"2d496050ded83b13b16f05e1fc0329b0210d2493","status":"affected"},{"type":"git","introduced":"d96be879ff469759af6d7fcebdb66237c18da6f8","fixed":"d37474ab9a79149075f0823315c6d45dd983a78c","status":"affected"},{"type":"git","introduced":"d96be879ff469759af6d7fcebdb66237c18da6f8","fixed":"d2ead18bc7cc166220cab5a744a05c5b69431a12","status":"affected"},{"type":"git","introduced":"d96be879ff469759af6d7fcebdb66237c18da6f8","fixed":"cde600af7b413c9fe03e85c58c4279df90e91d13","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.29","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.29","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"}],"references":[{"url":"https://git.kernel.org/stable/c/5f35c038c9f4d258b3cf77885a2730f1417d63e7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1cf0c1e58738b97e2de207846105b6a5d46622ee","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b8bdb3fd13d5cd1e86d22fd3f803a742fd88af89","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/32eb502c972dfc34413c9147418b3d94d870c2b8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3904eb97bb78fdca3e16d30a38ce5697b9686110","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d496050ded83b13b16f05e1fc0329b0210d2493","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d37474ab9a79149075f0823315c6d45dd983a78c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d2ead18bc7cc166220cab5a744a05c5b69431a12","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cde600af7b413c9fe03e85c58c4279df90e91d13","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50769","url":"https://www.cve.org/CVERecord?id=CVE-2022-50769","licence":"CVE Terms of Use","modified":"2026-05-11T19:25:11.217Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50769","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50769","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.353Z","epss":{"score":0.00322,"percentile":0.17661,"date":"2026-11-30T12:00:22.000Z"}}