# CVE-2022-50760: drm/amdgpu: Fix PCI device refcount leak in amdgpu\_atrm\_get\_bios()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **Published:** 2025-12-24T13:05:52.582Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< da7c78ea9e62bb65273d3ff19a3866ec205bfe18; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 3360125d721c91d697c71201f18f042ff743e936; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 981024abf5fe605c94d4f906f65d1b3408d628be; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 8f2d2badf8ca5e7e7c30d88840b695c8af7286f3; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 9d4057d0452243917e12eb19f1599c96f2f05b14; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< a8b54ad7106c0604c4adc4933138b3557739bce0; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< ca54639c7752edf1304d92ff4d0c049d4efc9ba0
- Anyone running Linux 4.2

## 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.

## Affected and fixed versions

- Linux: \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< da7c78ea9e62bb65273d3ff19a3866ec205bfe18; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 3360125d721c91d697c71201f18f042ff743e936; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 981024abf5fe605c94d4f906f65d1b3408d628be; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 8f2d2badf8ca5e7e7c30d88840b695c8af7286f3; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 9d4057d0452243917e12eb19f1599c96f2f05b14; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< a8b54ad7106c0604c4adc4933138b3557739bce0; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< ca54639c7752edf1304d92ff4d0c049d4efc9ba0 (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50760. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50760.md
Affected: Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < da7c78ea9e62bb65273d3ff19a3866ec205bfe18; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 3360125d721c91d697c71201f18f042ff743e936; >= d38ceaf99ed015f2a0b9af3…
Fixed in: Linux 6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7, Linux 3360125d721c91d697c71201f18f042ff743e936, Linux 981024abf5fe605c94d4f906f65d1b3408d628be, Linux 7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4, Linux 8f2d2badf8ca5e7e7c30d88840b695c8af7286f3, Linux 9d4057d0452243917e12eb19f1599c96f2f05b14

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50760 being exploited?

There is no confirmed exploitation: CVE-2022-50760 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50760?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50760?

Linux \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< da7c78ea9e62bb65273d3ff19a3866ec205bfe18; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 3360125d721c91d697c71201f18f042ff743e936; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 981024abf5fe605c94d4f906f65d1b3408d628be; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 8f2d2badf8ca5e7e7c30d88840b695c8af7286f3; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 9d4057d0452243917e12eb19f1599c96f2f05b14; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< a8b54ad7106c0604c4adc4933138b3557739bce0; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< ca54639c7752edf1304d92ff4d0c049d4efc9ba0; Linux 4.2.

### Is there a fix for CVE-2022-50760?

Yes. Fixed in Linux 6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7, Linux 3360125d721c91d697c71201f18f042ff743e936, Linux 981024abf5fe605c94d4f906f65d1b3408d628be, Linux 7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4, Linux 8f2d2badf8ca5e7e7c30d88840b695c8af7286f3, Linux 9d4057d0452243917e12eb19f1599c96f2f05b14. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50760?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7>
- other: <https://git.kernel.org/stable/c/da7c78ea9e62bb65273d3ff19a3866ec205bfe18>
- other: <https://git.kernel.org/stable/c/3360125d721c91d697c71201f18f042ff743e936>
- other: <https://git.kernel.org/stable/c/981024abf5fe605c94d4f906f65d1b3408d628be>
- other: <https://git.kernel.org/stable/c/7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4>
- other: <https://git.kernel.org/stable/c/8f2d2badf8ca5e7e7c30d88840b695c8af7286f3>
- other: <https://git.kernel.org/stable/c/9d4057d0452243917e12eb19f1599c96f2f05b14>
- other: <https://git.kernel.org/stable/c/a8b54ad7106c0604c4adc4933138b3557739bce0>
- other: <https://git.kernel.org/stable/c/ca54639c7752edf1304d92ff4d0c049d4efc9ba0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50760>

HTML: <https://flawdb.com/CVE-2022-50760> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50760>
