# CVE-2022-50769: mmc: mxcmmc: 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.32% (percentile 18, 2026-11-26)
- **Published:** 2025-12-24T13:05:58.994Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 5f35c038c9f4d258b3cf77885a2730f1417d63e7; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 1cf0c1e58738b97e2de207846105b6a5d46622ee; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< b8bdb3fd13d5cd1e86d22fd3f803a742fd88af89; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 32eb502c972dfc34413c9147418b3d94d870c2b8; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 3904eb97bb78fdca3e16d30a38ce5697b9686110; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 2d496050ded83b13b16f05e1fc0329b0210d2493; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< d37474ab9a79149075f0823315c6d45dd983a78c; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< d2ead18bc7cc166220cab5a744a05c5b69431a12; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< cde600af7b413c9fe03e85c58c4279df90e91d13
- Anyone running Linux 2.6.29

## Description

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

mmc: mxcmmc: 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 goto error path which will call
mmc\_free\_host().

## Affected and fixed versions

- Linux: \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 5f35c038c9f4d258b3cf77885a2730f1417d63e7; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 1cf0c1e58738b97e2de207846105b6a5d46622ee; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< b8bdb3fd13d5cd1e86d22fd3f803a742fd88af89; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 32eb502c972dfc34413c9147418b3d94d870c2b8; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 3904eb97bb78fdca3e16d30a38ce5697b9686110; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 2d496050ded83b13b16f05e1fc0329b0210d2493; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< d37474ab9a79149075f0823315c6d45dd983a78c; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< d2ead18bc7cc166220cab5a744a05c5b69431a12; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< cde600af7b413c9fe03e85c58c4279df90e91d13 (cvelist)
- Linux: 2.6.29 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50769.md
Affected: Linux >= d96be879ff469759af6d7fcebdb66237c18da6f8, < 5f35c038c9f4d258b3cf77885a2730f1417d63e7; >= d96be879ff469759af6d7fcebdb66237c18da6f8, < 1cf0c1e58738b97e2de207846105b6a5d46622ee; >= d96be879ff469759af6d7fcebdb66237c18da6f8, < b8bdb3fd13d5cd1e86d22fd3f803a742fd88af89; >= d96be879ff469759af6d7fc…
Fixed in: Linux 5f35c038c9f4d258b3cf77885a2730f1417d63e7, Linux 1cf0c1e58738b97e2de207846105b6a5d46622ee, Linux 32eb502c972dfc34413c9147418b3d94d870c2b8, Linux 3904eb97bb78fdca3e16d30a38ce5697b9686110, Linux 2d496050ded83b13b16f05e1fc0329b0210d2493

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 5f35c038c9f4d258b3cf77885a2730f1417d63e7; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 1cf0c1e58738b97e2de207846105b6a5d46622ee; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< b8bdb3fd13d5cd1e86d22fd3f803a742fd88af89; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 32eb502c972dfc34413c9147418b3d94d870c2b8; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 3904eb97bb78fdca3e16d30a38ce5697b9686110; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< 2d496050ded83b13b16f05e1fc0329b0210d2493; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< d37474ab9a79149075f0823315c6d45dd983a78c; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< d2ead18bc7cc166220cab5a744a05c5b69431a12; \>= d96be879ff469759af6d7fcebdb66237c18da6f8, \< cde600af7b413c9fe03e85c58c4279df90e91d13; Linux 2.6.29.

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

Yes. Fixed in Linux 5f35c038c9f4d258b3cf77885a2730f1417d63e7, Linux 1cf0c1e58738b97e2de207846105b6a5d46622ee, Linux 32eb502c972dfc34413c9147418b3d94d870c2b8, Linux 3904eb97bb78fdca3e16d30a38ce5697b9686110, Linux 2d496050ded83b13b16f05e1fc0329b0210d2493. No fix listed yet: follow the vendor advisory.

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

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/5f35c038c9f4d258b3cf77885a2730f1417d63e7>
- other: <https://git.kernel.org/stable/c/1cf0c1e58738b97e2de207846105b6a5d46622ee>
- other: <https://git.kernel.org/stable/c/b8bdb3fd13d5cd1e86d22fd3f803a742fd88af89>
- other: <https://git.kernel.org/stable/c/32eb502c972dfc34413c9147418b3d94d870c2b8>
- other: <https://git.kernel.org/stable/c/3904eb97bb78fdca3e16d30a38ce5697b9686110>
- other: <https://git.kernel.org/stable/c/2d496050ded83b13b16f05e1fc0329b0210d2493>
- other: <https://git.kernel.org/stable/c/d37474ab9a79149075f0823315c6d45dd983a78c>
- other: <https://git.kernel.org/stable/c/d2ead18bc7cc166220cab5a744a05c5b69431a12>
- other: <https://git.kernel.org/stable/c/cde600af7b413c9fe03e85c58c4279df90e91d13>

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

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