# CVE-2022-50653: mmc: atmel-mci: fix return value check of mmc\_add\_host()

> 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:27.592Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 6bb26abb92f25e582a0976091a10b539fe3796db; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 00ac0f5f95920f003cd6ece53cdc759549b69118; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 1925472dec31ec061d57412b3a65a056ea24f340; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< cc8bb436f3c842a86b9082d97933582120d180e2; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 85946ceb0fac20ab39cdb85333086daf0291a553; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 9e6e8c43726673ca2abcaac87640b9215fd72f4c
- Anyone running Linux 2.6.27

## Description

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

mmc: atmel-mci: 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().

So fix this by checking the return value and calling mmc\_free\_host()
in the error path.

## Affected and fixed versions

- Linux: \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 6bb26abb92f25e582a0976091a10b539fe3796db; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 00ac0f5f95920f003cd6ece53cdc759549b69118; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 1925472dec31ec061d57412b3a65a056ea24f340; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< cc8bb436f3c842a86b9082d97933582120d180e2; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 85946ceb0fac20ab39cdb85333086daf0291a553; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 9e6e8c43726673ca2abcaac87640b9215fd72f4c (cvelist)
- Linux: 2.6.27 (cvelist)

## Mitigation

- Upgrade Linux to 9e6e8c43726673ca2abcaac87640b9215fd72f4c 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-50653. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50653.md
Affected: Linux >= 7d2be0749a59096a334c94dc48f43294193cb8ed, < 99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2; >= 7d2be0749a59096a334c94dc48f43294193cb8ed, < 6bb26abb92f25e582a0976091a10b539fe3796db; >= 7d2be0749a59096a334c94dc48f43294193cb8ed, < 00ac0f5f95920f003cd6ece53cdc759549b69118; >= 7d2be0749a59096a334c94d…
Fixed in: Linux 99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2, Linux 6bb26abb92f25e582a0976091a10b539fe3796db, Linux 00ac0f5f95920f003cd6ece53cdc759549b69118, Linux 1925472dec31ec061d57412b3a65a056ea24f340, Linux 85946ceb0fac20ab39cdb85333086daf0291a553, Linux 9e6e8c43726673ca2abcaac87640b9215fd72f4c

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-50653 being exploited?

There is no confirmed exploitation: CVE-2022-50653 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-50653?

It has no CVSS score yet. Unknown.

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

Linux \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 6bb26abb92f25e582a0976091a10b539fe3796db; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 00ac0f5f95920f003cd6ece53cdc759549b69118; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 1925472dec31ec061d57412b3a65a056ea24f340; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< cc8bb436f3c842a86b9082d97933582120d180e2; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 85946ceb0fac20ab39cdb85333086daf0291a553; \>= 7d2be0749a59096a334c94dc48f43294193cb8ed, \< 9e6e8c43726673ca2abcaac87640b9215fd72f4c; Linux 2.6.27.

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

Yes. Fixed in Linux 99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2, Linux 6bb26abb92f25e582a0976091a10b539fe3796db, Linux 00ac0f5f95920f003cd6ece53cdc759549b69118, Linux 1925472dec31ec061d57412b3a65a056ea24f340, Linux 85946ceb0fac20ab39cdb85333086daf0291a553, Linux 9e6e8c43726673ca2abcaac87640b9215fd72f4c. Upgrade Linux to 9e6e8c43726673ca2abcaac87640b9215fd72f4c or later.

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

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/99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2>
- other: <https://git.kernel.org/stable/c/6bb26abb92f25e582a0976091a10b539fe3796db>
- other: <https://git.kernel.org/stable/c/00ac0f5f95920f003cd6ece53cdc759549b69118>
- other: <https://git.kernel.org/stable/c/1925472dec31ec061d57412b3a65a056ea24f340>
- other: <https://git.kernel.org/stable/c/cc8bb436f3c842a86b9082d97933582120d180e2>
- other: <https://git.kernel.org/stable/c/85946ceb0fac20ab39cdb85333086daf0291a553>
- other: <https://git.kernel.org/stable/c/9e6e8c43726673ca2abcaac87640b9215fd72f4c>

## 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-50653>

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