CVE-2022-50858Unchecked Return Value in Linux

Severity
3.3LOW
No vector
EPSS
0.0%
top 89.30%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 30

Description

In the Linux kernel, the following vulnerability has been resolved: mmc: alcor: 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 calling mmc_free_host() in the error path.

Affected Packages4 packages

Linuxlinux/linux_kernel5.0.05.4.229+4
Debianlinux/linux_kernel< 5.10.178-1+3
CVEListV5linux/linuxc5413ad815a675b5c98a002353d8e96b44b164e9289c964fe182ce755044a6cd57698072e12ffa6f+6
debiandebian/linux< linux 6.1.4-1 (bookworm)

🔴Vulnerability Details

3
OSV
CVE-2022-50858: In the Linux kernel, the following vulnerability has been resolved: mmc: alcor: fix return value check of mmc_add_host() mmc_add_host() may return err2025-12-30
GHSA
GHSA-m3wv-5mmv-w433: In the Linux kernel, the following vulnerability has been resolved: mmc: alcor: fix return value check of mmc_add_host() mmc_add_host() may return e2025-12-30
OSV
mmc: alcor: fix return value check of mmc_add_host()2025-12-30

📋Vendor Advisories

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

🕵️Threat Intelligence

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