drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios() As comment of pci_get_class() says, it returns a pci_device with its refcount increased and decreased the refcount for the input parameter @from if it is not NULL. If we break the loop in amdgpu_atrm_get_bios() with 'pdev' not NULL, we need to call pci_dev_put() to decrease the refcount. Add the missing pci_dev_put() to avoid refcount leak.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.303, 4.19.270, 4.9.337, 5.10.163, 5.15.86, 5.4.229, 6.0.16, 6.1.2
- CVEs
- CVE-2022-50760
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 08:25 UTC · Revision 1
Source evidence
drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()
core-osv · Original sourcePublished 24 Dec 2025, 13:05 UTC
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios() As comment of pci_get_class() says, it returns a pci_device with its refcount increased and decreased the refcount for the input parameter @from if it is not NULL. If we break the loop in amdgpu_atrm_get_bios() with 'pdev' not NULL, we need to call pci_dev_put() to decrease the refcount. Add the missing pci_dev_put() to avoid refcount leak.
osv:CVE-2022-50760
Kernel
Fixed versions: 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2
Complete source record
{
"id": "6577bf0a2da7727318c383ababc06b5e0a204921f2385d4ec8dc2f0705f4e4c0",
"url": "https://osv.dev/vulnerability/CVE-2022-50760",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios() As comment of pci_get_class() says, it returns a pci_device with its refcount increased and decreased the refcount for the input parameter @from if it is not NULL. If we break the loop in amdgpu_atrm_get_bios() with 'pdev' not NULL, we need to call pci_dev_put() to decrease the refcount. Add the missing pci_dev_put() to avoid refcount leak.",
"evidence": "osv:CVE-2022-50760",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.9.337",
"evidence": "/affected/1/ranges"
},
{
"value": "4.14.303",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.270",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.229",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.163",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.86",
"evidence": "/affected/1/ranges"
},
{
"value": "6.0.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-50760",
"aliases": [
"CVE-2022-50760"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "d38ceaf99ed015f2a0b9af3499791bd3a3daae21"
},
{
"fixed": "6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7"
},
{
"fixed": "da7c78ea9e62bb65273d3ff19a3866ec205bfe18"
},
{
"fixed": "3360125d721c91d697c71201f18f042ff743e936"
},
{
"fixed": "981024abf5fe605c94d4f906f65d1b3408d628be"
},
{
"fixed": "7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4"
},
{
"fixed": "8f2d2badf8ca5e7e7c30d88840b695c8af7286f3"
},
{
"fixed": "9d4057d0452243917e12eb19f1599c96f2f05b14"
},
{
"fixed": "a8b54ad7106c0604c4adc4933138b3557739bce0"
},
{
"fixed": "ca54639c7752edf1304d92ff4d0c049d4efc9ba0"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50760.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.2.0"
},
{
"fixed": "4.9.337"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.10.0"
},
{
"fixed": "4.14.303"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.270"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.229"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.163"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.86"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.0.16"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.1.0"
},
{
"fixed": "6.1.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50760.json"
}
}
],
"modified": "2026-10-28T02:30:33.796155861Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/3360125d721c91d697c71201f18f042ff743e936",
"https://git.kernel.org/stable/c/6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7",
"https://git.kernel.org/stable/c/7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4",
"https://git.kernel.org/stable/c/8f2d2badf8ca5e7e7c30d88840b695c8af7286f3",
"https://git.kernel.org/stable/c/981024abf5fe605c94d4f906f65d1b3408d628be",
"https://git.kernel.org/stable/c/9d4057d0452243917e12eb19f1599c96f2f05b14",
"https://git.kernel.org/stable/c/a8b54ad7106c0604c4adc4933138b3557739bce0",
"https://git.kernel.org/stable/c/ca54639c7752edf1304d92ff4d0c049d4efc9ba0",
"https://git.kernel.org/stable/c/da7c78ea9e62bb65273d3ff19a3866ec205bfe18",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50760.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50760",
"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/50xxx/CVE-2022-50760.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50760",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 501113,
"published_at": "2025-12-24T13:05:52.582+00:00"
}