CVE-2022-50760

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

No CVSS score yet EPSS 0.32%

Published 24 Dec 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50760

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50760 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.32%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 27.2% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from d38ceaf99ed015f2a0b9af3499791bd3a3daae21, before 6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7
affected from d38ceaf99ed015f2a0b9af3499791bd3a3daae21, before da7c78ea9e62bb65273d3ff19a3866ec205bfe18
affected from d38ceaf99ed015f2a0b9af3499791bd3a3daae21, before 3360125d721c91d697c71201f18f042ff743e936
affected from d38ceaf99ed015f2a0b9af3499791bd3a3daae21, before 981024abf5fe605c94d4f906f65d1b3408d628be
affected from d38ceaf99ed015f2a0b9af3499791bd3a3daae21, before 7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4
affected from d38ceaf99ed015f2a0b9af3499791bd3a3daae21, before 8f2d2badf8ca5e7e7c30d88840b695c8af7286f3
affected from d38ceaf99ed015f2a0b9af3499791bd3a3daae21, before 9d4057d0452243917e12eb19f1599c96f2f05b14
affected from d38ceaf99ed015f2a0b9af3499791bd3a3daae21, before a8b54ad7106c0604c4adc4933138b3557739bce0
affected from d38ceaf99ed015f2a0b9af3499791bd3a3daae21, before ca54639c7752edf1304d92ff4d0c049d4efc9ba0
Other versions: unaffected
Linux
affected 4.2
unaffected before 4.2
unaffected from 4.9.337 up to and including 4.9.*
unaffected from 4.14.303 up to and including 4.14.*
unaffected from 4.19.270 up to and including 4.19.*
unaffected from 5.4.229 up to and including 5.4.*
unaffected from 5.10.163 up to and including 5.10.*
unaffected from 5.15.86 up to and including 5.15.*
unaffected from 6.0.16 up to and including 6.0.*
unaffected from 6.1.2 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50760 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50760

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50760
trivy image --scanners vuln IMAGE | grep CVE-2022-50760

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50760 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.