CVE-2022-50846Detection of Error Condition Without Action 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: via-sdmmc: fix return value check of mmc_add_host() mmc_add_host() may return error, if we ignore its return value, it will lead two issues: 1. The memory that allocated in mmc_alloc_host() is leaked. 2. In the remove() path, mmc_remove_host() will be called to delete device, but it's not added yet, it will lead a kernel crash because of null-ptr-deref in device_del(). Fix this by checking the return value and goto error

Affected Packages4 packages

Linuxlinux/linux_kernel2.6.314.9.337+7
Debianlinux/linux_kernel< 5.10.178-1+3
CVEListV5linux/linuxf0bf7f61b8405224bc52fc9a3ccd167a68126e00076bcd2c93e16b05c10564e299d6e5d26a766d00+9
debiandebian/linux< linux 6.1.4-1 (bookworm)

🔴Vulnerability Details

3
GHSA
GHSA-f972-7cqm-cm9w: In the Linux kernel, the following vulnerability has been resolved: mmc: via-sdmmc: fix return value check of mmc_add_host() mmc_add_host() may retu2025-12-30
OSV
CVE-2022-50846: In the Linux kernel, the following vulnerability has been resolved: mmc: via-sdmmc: fix return value check of mmc_add_host() mmc_add_host() may return2025-12-30
OSV
mmc: via-sdmmc: fix return value check of mmc_add_host()2025-12-30

📋Vendor Advisories

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

🕵️Threat Intelligence

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