CVE-2022-50846
published 2025-12-30CVE-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 return error…
PriorityP421low3.3
EPSS
0.25%
16.1th percentile
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 path which
will call mmc_free_host().
Affected
23 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.1.4-1 (bookworm) | linux 6.1.4-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= f0bf7f61b8405224bc52fc9a3ccd167a68126e00 < 076bcd2c93e16b05c10564e299d6e5d26a766d00 | 076bcd2c93e16b05c10564e299d6e5d26a766d00 |
| linux | linux | >= f0bf7f61b8405224bc52fc9a3ccd167a68126e00 < 12b8e81b77c05c658efd9cde3585bbd65ae39b59 | 12b8e81b77c05c658efd9cde3585bbd65ae39b59 |
| linux | linux | >= f0bf7f61b8405224bc52fc9a3ccd167a68126e00 < 95025a8dd0ec015872f6c16473fe04d6264e68ca | 95025a8dd0ec015872f6c16473fe04d6264e68ca |
| linux | linux | >= f0bf7f61b8405224bc52fc9a3ccd167a68126e00 < f59ef2a47a228e51322ad76752a55a8917c56e38 | f59ef2a47a228e51322ad76752a55a8917c56e38 |
| linux | linux | >= f0bf7f61b8405224bc52fc9a3ccd167a68126e00 < 63400da6cd37a9793c19bb6aed7131b58b975a04 | 63400da6cd37a9793c19bb6aed7131b58b975a04 |
| linux | linux | >= f0bf7f61b8405224bc52fc9a3ccd167a68126e00 < 0959cc1685eb19774300d43ef25e318b457b156b | 0959cc1685eb19774300d43ef25e318b457b156b |
| linux | linux | >= f0bf7f61b8405224bc52fc9a3ccd167a68126e00 < 0ec94795114edc7e24ec71849dce42bfa61dafa3 | 0ec94795114edc7e24ec71849dce42bfa61dafa3 |
| linux | linux | >= f0bf7f61b8405224bc52fc9a3ccd167a68126e00 < ba91b413983a9235792523c6b9f7ba2586c4d75d | ba91b413983a9235792523c6b9f7ba2586c4d75d |
| linux | linux | >= f0bf7f61b8405224bc52fc9a3ccd167a68126e00 < e4e46fb61e3bb4628170810d3f2b996b709b90d9 | e4e46fb61e3bb4628170810d3f2b996b709b90d9 |
| linux | linux_kernel | >= 0 < 5.10.178-1 | 5.10.178-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 2.6.31 < 4.9.337 | 4.9.337 |
| linux | linux_kernel | >= 4.10.0 < 4.14.303 | 4.14.303 |
| linux | linux_kernel | >= 4.15.0 < 4.19.270 | 4.19.270 |
| linux | linux_kernel | >= 4.20.0 < 5.4.229 | 5.4.229 |
| linux | linux_kernel | >= 5.11.0 < 5.15.86 | 5.15.86 |
| linux | linux_kernel | >= 5.16.0 < 6.0.16 | 6.0.16 |
| linux | linux_kernel | >= 5.5.0 < 5.10.163 | 5.10.163 |
| linux | linux_kernel | >= 6.1.0 < 6.1.2 | 6.1.2 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
VulDB
Linux Kernel up to 6.1.1 mmc_add_host return value (Nessus ID 281474 / WID-SEC-2025-2941)
vuldb·2026-04-26
CVE-2022-50846 [CRITICAL] Linux Kernel up to 6.1.1 mmc_add_host return value (Nessus ID 281474 / WID-SEC-2025-2941)
A vulnerability described as critical has been identified in Linux Kernel up to 6.1.1. Impacted is the function mmc_add_host. Such manipulation leads to unchecked return value.
This vulnerability is uniquely identified as CVE-2022-50846. The attack can only be initiated within the local network. No exploit exists.
Upgrading the affected component is recommended.
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 retu
ghsa_unreviewed·2025-12-30
CVE-2022-50846 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 retu
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 path which
will call mmc_free_host().
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 return
osv·2025-12-30
CVE-2022-50846 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 return
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 path which will call mmc_free_host().
OSV
mmc: via-sdmmc: fix return value check of mmc_add_host()
osv·2025-12-30
CVE-2022-50846 mmc: via-sdmmc: fix return value check of mmc_add_host()
mmc: via-sdmmc: fix return value check of mmc_add_host()
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 path which
will call mmc_free_host().
Red Hat
kernel: mmc: via-sdmmc: fix return value check of mmc_add_host()
vendor_redhat·2025-12-30·CVSS 3.3
CVE-2022-50846 [LOW] CWE-390 kernel: mmc: via-sdmmc: fix return value check of mmc_add_host()
kernel: mmc: via-sdmmc: fix return value check of mmc_add_host()
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 path which
will call mmc_free_host().
A flaw was found in the VIA SD/MMC host controller driver. When mmc_add_host() fails, the error is not checked, leading to memory leaks and potential null pointer dereference during driver removal.
Debian
CVE-2022-50846: linux - In the Linux kernel, the following vulnerability has been resolved: mmc: via-sd...
vendor_debian·2022
CVE-2022-50846 CVE-2022-50846: linux - In the Linux kernel, the following vulnerability has been resolved: mmc: via-sd...
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 path which will call mmc_free_host().
Scope: local
bookworm: resolved (fixed in 6.1.4-1)
bullseye: resolved (fixed in 5.10.178-1)
forky: resolved (fixed in 6.1.4-1)
sid: resolved (fixed in 6.1.4-1)
trixie: resolved (fixed in 6.1.4-1)
No detection rules found.
No public exploits indexed.
Wiz
CVE-2022-50846 Impact, Exploitability, and Mitigation Steps | Wiz
blogs_wiz
CVE-2022-50846 CVE-2022-50846 Impact, Exploitability, and Mitigation Steps | Wiz
## CVE-2022-50846 :
Linux Kernel vulnerability analysis and mitigation
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:
The memory that allocated in mmc_alloc_host() is leaked.
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 path which
will call mmc_free_host().
Source : NVD
Published December 30, 2025
CNA Score N/A
Affected Technologies
Linux Kernel
Alma Linux
Has Public Exploit No
Has CISA KEV Exploit No
CISA KEV Release Date N/A
CISA KEV
Bugzilla
CVE-2022-50846 kernel: mmc: via-sdmmc: fix return value check of mmc_add_host()
bugzilla·2025-12-30
CVE-2022-50846 [LOW] CVE-2022-50846 kernel: mmc: via-sdmmc: fix return value check of mmc_add_host()
CVE-2022-50846 kernel: mmc: via-sdmmc: fix return value check of mmc_add_host()
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 path which
will call mmc_free_host().
Discussion:
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025123021-CVE-2022-50846-caa2@gregkh/T
https://git.kernel.org/stable/c/076bcd2c93e16b05c10564e299d6e5d26a766d00https://git.kernel.org/stable/c/0959cc1685eb19774300d43ef25e318b457b156bhttps://git.kernel.org/stable/c/0ec94795114edc7e24ec71849dce42bfa61dafa3https://git.kernel.org/stable/c/12b8e81b77c05c658efd9cde3585bbd65ae39b59https://git.kernel.org/stable/c/63400da6cd37a9793c19bb6aed7131b58b975a04https://git.kernel.org/stable/c/95025a8dd0ec015872f6c16473fe04d6264e68cahttps://git.kernel.org/stable/c/ba91b413983a9235792523c6b9f7ba2586c4d75dhttps://git.kernel.org/stable/c/e4e46fb61e3bb4628170810d3f2b996b709b90d9https://git.kernel.org/stable/c/f59ef2a47a228e51322ad76752a55a8917c56e38
2025-12-30
Published