What’s Vulnerable › Vulnerabilities
CVE-2022-49787: mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-05-01 · updated 2026-06-17
- Weakness: CWE-401
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.
Affected products
- 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 — fixed in 4.14.300, 4.19.267, 5.10.156, 5.15.80, 5.4.225, 6.0.10
How to fix
Upgrade to a fixed version: Linux kernel 4.14.300, 4.19.267, 5.10.156, 5.15.80. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/222cfa0118aa68687ace74aab8fdf77ce8fbd7e6
- https://git.kernel.org/stable/c/27f712cd47d65e14cd52cc32a23d42aeef583d5d
- https://git.kernel.org/stable/c/35bca18092685b488003509fef7055aa2d4f2ebc
- https://git.kernel.org/stable/c/4423866d31a06a810db22062ed13389416a66b22
- https://git.kernel.org/stable/c/5dbd6378dbf96787d6dbcca44156c511ae085ea3
- https://git.kernel.org/stable/c/7570e5b5419ffd34b6dc45a88c51e113a9a187e3
- https://git.kernel.org/stable/c/a99a547658e5d451f01ed307426286716b6f01bf
Get alerted when CVE-2022-49787 or the next vulnerability affects your stack