# CVE-2022-50670: mmc: omap\_hsmmc: 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-09T01:29:21.864Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< f153c9e15f8961bdf38707853e15b42ea7c691d9; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< fb3d596267a98813a7a8206097d8d46c98505a0d; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< 62005dfcc396424db3337a1dc3ab49623537f5e5; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< a5f8a4583280a76e50329b910e91ef1dea1e6c79; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< 4e1dc24bcfc8257f24c0663badec7e4f3ae80558; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< a525cad241c339ca00bf7ebf03c5180f2a9b767c
- Anyone running Linux 2.6.29

## Description

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

mmc: omap\_hsmmc: 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 wihch
will call mmc\_free\_host().

## Affected and fixed versions

- Linux: \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< f153c9e15f8961bdf38707853e15b42ea7c691d9; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< fb3d596267a98813a7a8206097d8d46c98505a0d; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< 62005dfcc396424db3337a1dc3ab49623537f5e5; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< a5f8a4583280a76e50329b910e91ef1dea1e6c79; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< 4e1dc24bcfc8257f24c0663badec7e4f3ae80558; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< a525cad241c339ca00bf7ebf03c5180f2a9b767c (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-50670. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50670.md
Affected: Linux >= a45c6cb816474cefe56059fce422a9bdcd77e0dc, < f153c9e15f8961bdf38707853e15b42ea7c691d9; >= a45c6cb816474cefe56059fce422a9bdcd77e0dc, < fb3d596267a98813a7a8206097d8d46c98505a0d; >= a45c6cb816474cefe56059fce422a9bdcd77e0dc, < 62005dfcc396424db3337a1dc3ab49623537f5e5; >= a45c6cb816474cefe56059f…
Fixed in: Linux 62005dfcc396424db3337a1dc3ab49623537f5e5, Linux 4e1dc24bcfc8257f24c0663badec7e4f3ae80558

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< f153c9e15f8961bdf38707853e15b42ea7c691d9; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< fb3d596267a98813a7a8206097d8d46c98505a0d; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< 62005dfcc396424db3337a1dc3ab49623537f5e5; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< a5f8a4583280a76e50329b910e91ef1dea1e6c79; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< 4e1dc24bcfc8257f24c0663badec7e4f3ae80558; \>= a45c6cb816474cefe56059fce422a9bdcd77e0dc, \< a525cad241c339ca00bf7ebf03c5180f2a9b767c; Linux 2.6.29.

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

Yes. Fixed in Linux 62005dfcc396424db3337a1dc3ab49623537f5e5, Linux 4e1dc24bcfc8257f24c0663badec7e4f3ae80558. No fix listed yet: follow the vendor advisory.

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

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/f153c9e15f8961bdf38707853e15b42ea7c691d9>
- other: <https://git.kernel.org/stable/c/fb3d596267a98813a7a8206097d8d46c98505a0d>
- other: <https://git.kernel.org/stable/c/62005dfcc396424db3337a1dc3ab49623537f5e5>
- other: <https://git.kernel.org/stable/c/a5f8a4583280a76e50329b910e91ef1dea1e6c79>
- other: <https://git.kernel.org/stable/c/4e1dc24bcfc8257f24c0663badec7e4f3ae80558>
- other: <https://git.kernel.org/stable/c/a525cad241c339ca00bf7ebf03c5180f2a9b767c>

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

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