CVE-2022-50886Unchecked Return Value in Linux

Severity
3.3LOW
No vector
EPSS
0.0%
top 84.94%
CISA KEV
Not in KEV
Exploit
No known exploits
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

Linuxlinux/linux_kernel3.19.04.9.337+7
Debianlinux/linux_kernel< 5.10.178-1+3
CVEListV5linux/linuxa5eb8bbd66ccf9f169419f9652544aec771b7c5734ae492f8d172f0bd193c24cad588b35419ea47a+9
debiandebian/linux< linux 6.1.4-1 (bookworm)

🔴Vulnerability Details

3
OSV
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 er2025-12-30
OSV
mmc: toshsd: fix return value check of mmc_add_host()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 return2025-12-30

📋Vendor Advisories

2
Red Hat
kernel: mmc: toshsd: fix return value check of mmc_add_host()2025-12-30
Debian
CVE-2022-50886: linux - In the Linux kernel, the following vulnerability has been resolved: mmc: toshsd...2022

🕵️Threat Intelligence

1
Wiz
CVE-2022-50886 Impact, Exploitability, and Mitigation Steps | Wiz