# CVE-2022-50640: mmc: core: Fix kernel panic when remove non-standard SDIO card

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-09T00:00:13.871Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< b8b2965932e702b21e335ff30e1bb550f5a23b6f; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< b3275dde570b6420106a715bb58a0af041b94d95; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 1fb79478695d92bab1c120ad3dad05252b02a29d; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 7a09c64b7da0abdec3919812e3d93ecc44069ed0; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 8bf037279b5869ae9331c42bb1527d2680ebba96; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 1e8cd93ae536581562bab4e1d8c5315bbc2548bf; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 66d461a92f32b6995b630625d350259b6b1f961b; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 9972e6b404884adae9eec7463e30d9b3c9a70b18
- Anyone running Linux 2.6.36

## Description

In the Linux kernel, the following vulnerability has been resolved:

mmc: core: Fix kernel panic when remove non-standard SDIO card

SDIO tuple is only allocated for standard SDIO card, especially it causes
memory corruption issues when the non-standard SDIO card has removed, which
is because the card device's reference counter does not increase for it at
sdio\_init\_func(), but all SDIO card device reference counter gets decreased
at sdio\_release\_func().

## Affected and fixed versions

- Linux: \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< b8b2965932e702b21e335ff30e1bb550f5a23b6f; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< b3275dde570b6420106a715bb58a0af041b94d95; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 1fb79478695d92bab1c120ad3dad05252b02a29d; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 7a09c64b7da0abdec3919812e3d93ecc44069ed0; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 8bf037279b5869ae9331c42bb1527d2680ebba96; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 1e8cd93ae536581562bab4e1d8c5315bbc2548bf; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 66d461a92f32b6995b630625d350259b6b1f961b; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 9972e6b404884adae9eec7463e30d9b3c9a70b18 (cvelist)
- Linux: 2.6.36 (cvelist)

## Mitigation

- Upgrade Linux to 9972e6b404884adae9eec7463e30d9b3c9a70b18 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50640. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50640.md
Affected: Linux >= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, < b8b2965932e702b21e335ff30e1bb550f5a23b6f; >= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, < b3275dde570b6420106a715bb58a0af041b94d95; >= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, < 1fb79478695d92bab1c120ad3dad05252b02a29d; >= 6f51be3d37dff73cf8db771…
Fixed in: Linux 1fb79478695d92bab1c120ad3dad05252b02a29d, Linux 7a09c64b7da0abdec3919812e3d93ecc44069ed0, Linux 8bf037279b5869ae9331c42bb1527d2680ebba96, Linux 1e8cd93ae536581562bab4e1d8c5315bbc2548bf, Linux 66d461a92f32b6995b630625d350259b6b1f961b, Linux 9972e6b404884adae9eec7463e30d9b3c9a70b18

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50640 being exploited?

There is no confirmed exploitation: CVE-2022-50640 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50640?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50640?

Linux \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< b8b2965932e702b21e335ff30e1bb550f5a23b6f; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< b3275dde570b6420106a715bb58a0af041b94d95; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 1fb79478695d92bab1c120ad3dad05252b02a29d; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 7a09c64b7da0abdec3919812e3d93ecc44069ed0; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 8bf037279b5869ae9331c42bb1527d2680ebba96; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 1e8cd93ae536581562bab4e1d8c5315bbc2548bf; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 66d461a92f32b6995b630625d350259b6b1f961b; \>= 6f51be3d37dff73cf8db771df4169f4c2f1cbf66, \< 9972e6b404884adae9eec7463e30d9b3c9a70b18; Linux 2.6.36.

### Is there a fix for CVE-2022-50640?

Yes. Fixed in Linux 1fb79478695d92bab1c120ad3dad05252b02a29d, Linux 7a09c64b7da0abdec3919812e3d93ecc44069ed0, Linux 8bf037279b5869ae9331c42bb1527d2680ebba96, Linux 1e8cd93ae536581562bab4e1d8c5315bbc2548bf, Linux 66d461a92f32b6995b630625d350259b6b1f961b, Linux 9972e6b404884adae9eec7463e30d9b3c9a70b18. Upgrade Linux to 9972e6b404884adae9eec7463e30d9b3c9a70b18 or later.

### How do I check if I'm affected by CVE-2022-50640?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/b8b2965932e702b21e335ff30e1bb550f5a23b6f>
- other: <https://git.kernel.org/stable/c/b3275dde570b6420106a715bb58a0af041b94d95>
- other: <https://git.kernel.org/stable/c/1fb79478695d92bab1c120ad3dad05252b02a29d>
- other: <https://git.kernel.org/stable/c/7a09c64b7da0abdec3919812e3d93ecc44069ed0>
- other: <https://git.kernel.org/stable/c/8bf037279b5869ae9331c42bb1527d2680ebba96>
- other: <https://git.kernel.org/stable/c/1e8cd93ae536581562bab4e1d8c5315bbc2548bf>
- other: <https://git.kernel.org/stable/c/66d461a92f32b6995b630625d350259b6b1f961b>
- other: <https://git.kernel.org/stable/c/9972e6b404884adae9eec7463e30d9b3c9a70b18>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50640>

HTML: <https://flawdb.com/CVE-2022-50640> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50640>
