# CVE-2022-50267: mmc: rtsx_pci: fix return value check of mmc_add_host()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-15T14:21:03.372Z
- Modified: 2026-11-05T20:17:30.873Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

mmc: rtsx_pci: 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 calling mmc_free_host() in the
error path, beside, runtime PM also needs be disabled.

(As written by CVE List.)

## Affected

- Linux Linux: from ff984e57d36e8ac468849a144a36f1c11f88b61c before 30dc645461dfc63e52b3af8ee4a98e17bf14bacf; from ff984e57d36e8ac468849a144a36f1c11f88b61c before 5cd4e04eccaec140da6fa04db056a76282ee6852; from ff984e57d36e8ac468849a144a36f1c11f88b61c before ffa9b2a79e3e959683efbad3f6db937eca9d38f5; from ff984e57d36e8ac468849a144a36f1c11f88b61c before 0c87db77423a282b3b38b8a6daf057b822680516; 3.8 (not affected: before 3.8; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 3.8 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2

## References

- <https://git.kernel.org/stable/c/30dc645461dfc63e52b3af8ee4a98e17bf14bacf> (patch)
- <https://git.kernel.org/stable/c/5cd4e04eccaec140da6fa04db056a76282ee6852> (patch)
- <https://git.kernel.org/stable/c/ffa9b2a79e3e959683efbad3f6db937eca9d38f5> (patch)
- <https://git.kernel.org/stable/c/0c87db77423a282b3b38b8a6daf057b822680516> (patch)

## Sources

- CVE List: [CVE-2022-50267](https://www.cve.org/CVERecord?id=CVE-2022-50267), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-50267](https://nvd.nist.gov/vuln/detail/CVE-2022-50267), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-50267 · Whole record: https://cve.day/CVE-2022-50267.json · Rebuilt by cve.day 2026-11-25T22:58:21.137Z
