CVE-2022-50886 — Unchecked Return Value in Linux
Severity
3.3LOW
No vectorEPSS
0.0%
top 84.94%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedDec 30
Description
In the Linux kernel, the following vulnerability has been resolved:
mmc: toshsd: fix return value check of mmc_add_host()
mmc_add_host() may return error, if we ignore its return value, the memory
that allocated in mmc_alloc_host() will be leaked and it will lead a kernel
crash because of deleting not added device in the remove path.
So fix this by checking the return value and goto error path which will call
mmc_free_host(), besides, free_irq() also needs be called.
Affected Packages4 packages
▶CVEListV5linux/linuxa5eb8bbd66ccf9f169419f9652544aec771b7c57 — 34ae492f8d172f0bd193c24cad588b35419ea47a+9
🔴Vulnerability Details
3OSV▶
CVE-2022-50886: In the Linux kernel, the following vulnerability has been resolved: mmc: toshsd: fix return value check of mmc_add_host() mmc_add_host() may return er↗2025-12-30
GHSA▶
GHSA-78fc-p8m9-qw92: In the Linux kernel, the following vulnerability has been resolved:
mmc: toshsd: fix return value check of mmc_add_host()
mmc_add_host() may return↗2025-12-30