CVE-2022-50760

Source
https://cve.org/CVERecord?id=CVE-2022-50760
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50760.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50760
Downstream
Related
Published
2025-12-24T13:05:52.582Z
Modified
2026-03-12T03:26:52.036926Z
Summary
drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()
Details

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

drm/amdgpu: Fix PCI device refcount leak in amdgpuatrmget_bios()

As comment of pcigetclass() 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 amdgpuatrmgetbios() with 'pdev' not NULL, we need to call pcidevput() to decrease the refcount. Add the missing pcidev_put() to avoid refcount leak.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50760.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.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/osv-test-cve-osv-conversion/osv-output/CVE-2022-50760.json"

Linux / Kernel

Package

Name
Kernel

Affected 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

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50760.json"