mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.300, 4.19.267, 5.10.156, 5.15.80, 5.4.225, 6.0.10
- CVEs
- CVE-2022-49787
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 00:40 UTC · Revision 1
Source evidence
mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()
core-osv · Original sourcePublished 1 May 2025, 14:09 UTC
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.
osv:CVE-2022-49787
Kernel
Fixed versions: 4.14.300, 4.19.267, 5.4.225, 5.10.156, 5.15.80, 6.0.10
Complete source record
{
"id": "1b8e9544fd62d73ef9afe6cd7f6dc22776719df08f3c5bb209f0d16415844584",
"url": "https://osv.dev/vulnerability/CVE-2022-49787",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()",
"summary": "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.",
"evidence": "osv:CVE-2022-49787",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.14.300",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.267",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.225",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.156",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.80",
"evidence": "/affected/1/ranges"
},
{
"value": "6.0.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-49787",
"aliases": [
"CVE-2022-49787"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "659c9bc114a810b3a3c1e50585cc57f1312a6d60"
},
{
"fixed": "7570e5b5419ffd34b6dc45a88c51e113a9a187e3"
},
{
"fixed": "5dbd6378dbf96787d6dbcca44156c511ae085ea3"
},
{
"fixed": "27f712cd47d65e14cd52cc32a23d42aeef583d5d"
},
{
"fixed": "4423866d31a06a810db22062ed13389416a66b22"
},
{
"fixed": "a99a547658e5d451f01ed307426286716b6f01bf"
},
{
"fixed": "35bca18092685b488003509fef7055aa2d4f2ebc"
},
{
"fixed": "222cfa0118aa68687ace74aab8fdf77ce8fbd7e6"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49787.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.4.0"
},
{
"fixed": "4.14.300"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.267"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.225"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.156"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.80"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.0.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49787.json"
}
}
],
"modified": "2026-10-28T02:30:45.793843855Z",
"provider": "osv",
"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",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49787.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49787",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49787.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49787",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 513566,
"published_at": "2025-05-01T14:09:19.731+00:00"
}