# CVE-2022-49787: mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()

- 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.22%, higher than 13% of CVEs (2026-12-02)
- Published: 2025-05-01T14:09:19.731Z
- Modified: 2026-06-17T05:19:08.783Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()

pci_get_device() will increase the reference count for the returned
pci_dev. We need to use pci_dev_put() to decrease the reference count
before amd_probe() returns. There is no problem for the 'smbus_dev ==
NULL' branch because pci_dev_put() can also handle the NULL input
parameter case.

(As written by CVE List.)

## Affected

- Linux Linux: from 659c9bc114a810b3a3c1e50585cc57f1312a6d60 before 7570e5b5419ffd34b6dc45a88c51e113a9a187e3; from 659c9bc114a810b3a3c1e50585cc57f1312a6d60 before 5dbd6378dbf96787d6dbcca44156c511ae085ea3; from 659c9bc114a810b3a3c1e50585cc57f1312a6d60 before 27f712cd47d65e14cd52cc32a23d42aeef583d5d; from 659c9bc114a810b3a3c1e50585cc57f1312a6d60 before 4423866d31a06a810db22062ed13389416a66b22; from 659c9bc114a810b3a3c1e50585cc57f1312a6d60 before a99a547658e5d451f01ed307426286716b6f01bf; from 659c9bc114a810b3a3c1e50585cc57f1312a6d60 before 35bca18092685b488003509fef7055aa2d4f2ebc; from 659c9bc114a810b3a3c1e50585cc57f1312a6d60 before 222cfa0118aa68687ace74aab8fdf77ce8fbd7e6; 4.4 (not affected: before 4.4; from 4.14.300 up to 4.14.*; from 4.19.267 up to 4.19.*; from 5.4.225 up to 5.4.*; from 5.10.156 up to 5.10.*; from 5.15.80 up to 5.15.*; from 6.0.10 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 4.4 before 4.14.300; from 4.15 before 4.19.267; from 4.20 before 5.4.225; from 5.5 before 5.10.156; from 5.11 before 5.15.80; from 5.16 before 6.0.10; 6.1

## References

- <https://git.kernel.org/stable/c/7570e5b5419ffd34b6dc45a88c51e113a9a187e3> (patch)
- <https://git.kernel.org/stable/c/5dbd6378dbf96787d6dbcca44156c511ae085ea3> (patch)
- <https://git.kernel.org/stable/c/27f712cd47d65e14cd52cc32a23d42aeef583d5d> (patch)
- <https://git.kernel.org/stable/c/4423866d31a06a810db22062ed13389416a66b22> (patch)
- <https://git.kernel.org/stable/c/a99a547658e5d451f01ed307426286716b6f01bf> (patch)
- <https://git.kernel.org/stable/c/35bca18092685b488003509fef7055aa2d4f2ebc> (patch)
- <https://git.kernel.org/stable/c/222cfa0118aa68687ace74aab8fdf77ce8fbd7e6> (patch)

## Sources

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

---

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