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

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 8, 2026-11-26)
- **Published:** 2025-10-07T15:19:14.528Z
- **Modified:** 2026-11-05T21:17:03.610Z

## Who should check

- Anyone running Linux \>= c61e2775873f603148e8e998a938721b7d222d24, \< 6f28c7f67af4ef9bca580ab67ae2d4511797af56; \>= c61e2775873f603148e8e998a938721b7d222d24, \< e738f82e5b1311e8fb3d1409491a6fcce6418fbe; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 1079df6acf56f99d86b0081a38c84701412cc90e; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 470a77989037c3ab2b08bf2d026d2c0ddc35ff5b; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 3991d98a8a07b71c02f3a39f77d6d9a7f575a5c4; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 88c6e0995c04b170563b5c894c50a3b2152e18c2; \>= c61e2775873f603148e8e998a938721b7d222d24, \< b9decada8749b606fd8b4f04a3d6c74f7983d7bc; \>= c61e2775873f603148e8e998a938721b7d222d24, \< a6cffe54064a5f6c2162a85af3c16c6b453eac4e; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 725a521a18734f65de05b8d353b5bd0d3ca4c37a; 61ebf0a926149cc161131470cf848cb70b3d6fe6; …
- Anyone running Linux 3.6

## Description

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

drm/radeon: Fix PCI device refcount leak in radeon\_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 radeon\_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: \>= c61e2775873f603148e8e998a938721b7d222d24, \< 6f28c7f67af4ef9bca580ab67ae2d4511797af56; \>= c61e2775873f603148e8e998a938721b7d222d24, \< e738f82e5b1311e8fb3d1409491a6fcce6418fbe; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 1079df6acf56f99d86b0081a38c84701412cc90e; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 470a77989037c3ab2b08bf2d026d2c0ddc35ff5b; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 3991d98a8a07b71c02f3a39f77d6d9a7f575a5c4; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 88c6e0995c04b170563b5c894c50a3b2152e18c2; \>= c61e2775873f603148e8e998a938721b7d222d24, \< b9decada8749b606fd8b4f04a3d6c74f7983d7bc; \>= c61e2775873f603148e8e998a938721b7d222d24, \< a6cffe54064a5f6c2162a85af3c16c6b453eac4e; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 725a521a18734f65de05b8d353b5bd0d3ca4c37a; 61ebf0a926149cc161131470cf848cb70b3d6fe6; … (cvelist)
- Linux: 3.6 (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-50520. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50520.md
Affected: Linux >= c61e2775873f603148e8e998a938721b7d222d24, < 6f28c7f67af4ef9bca580ab67ae2d4511797af56; >= c61e2775873f603148e8e998a938721b7d222d24, < e738f82e5b1311e8fb3d1409491a6fcce6418fbe; >= c61e2775873f603148e8e998a938721b7d222d24, < 1079df6acf56f99d86b0081a38c84701412cc90e; >= c61e2775873f603148e8e99…
Fixed in: Linux 6f28c7f67af4ef9bca580ab67ae2d4511797af56, Linux 1079df6acf56f99d86b0081a38c84701412cc90e, Linux 470a77989037c3ab2b08bf2d026d2c0ddc35ff5b, Linux 3991d98a8a07b71c02f3a39f77d6d9a7f575a5c4, Linux 88c6e0995c04b170563b5c894c50a3b2152e18c2, Linux 725a521a18734f65de05b8d353b5bd0d3ca4c37a

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-50520 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= c61e2775873f603148e8e998a938721b7d222d24, \< 6f28c7f67af4ef9bca580ab67ae2d4511797af56; \>= c61e2775873f603148e8e998a938721b7d222d24, \< e738f82e5b1311e8fb3d1409491a6fcce6418fbe; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 1079df6acf56f99d86b0081a38c84701412cc90e; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 470a77989037c3ab2b08bf2d026d2c0ddc35ff5b; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 3991d98a8a07b71c02f3a39f77d6d9a7f575a5c4; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 88c6e0995c04b170563b5c894c50a3b2152e18c2; \>= c61e2775873f603148e8e998a938721b7d222d24, \< b9decada8749b606fd8b4f04a3d6c74f7983d7bc; \>= c61e2775873f603148e8e998a938721b7d222d24, \< a6cffe54064a5f6c2162a85af3c16c6b453eac4e; \>= c61e2775873f603148e8e998a938721b7d222d24, \< 725a521a18734f65de05b8d353b5bd0d3ca4c37a; 61ebf0a926149cc161131470cf848cb70b3d6fe6; …; Linux 3.6.

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

Yes. Fixed in Linux 6f28c7f67af4ef9bca580ab67ae2d4511797af56, Linux 1079df6acf56f99d86b0081a38c84701412cc90e, Linux 470a77989037c3ab2b08bf2d026d2c0ddc35ff5b, Linux 3991d98a8a07b71c02f3a39f77d6d9a7f575a5c4, Linux 88c6e0995c04b170563b5c894c50a3b2152e18c2, Linux 725a521a18734f65de05b8d353b5bd0d3ca4c37a. No fix listed yet: follow the vendor advisory.

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

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

- patch: <https://git.kernel.org/stable/c/6f28c7f67af4ef9bca580ab67ae2d4511797af56>
- patch: <https://git.kernel.org/stable/c/e738f82e5b1311e8fb3d1409491a6fcce6418fbe>
- patch: <https://git.kernel.org/stable/c/1079df6acf56f99d86b0081a38c84701412cc90e>
- patch: <https://git.kernel.org/stable/c/470a77989037c3ab2b08bf2d026d2c0ddc35ff5b>
- patch: <https://git.kernel.org/stable/c/3991d98a8a07b71c02f3a39f77d6d9a7f575a5c4>
- patch: <https://git.kernel.org/stable/c/88c6e0995c04b170563b5c894c50a3b2152e18c2>
- patch: <https://git.kernel.org/stable/c/b9decada8749b606fd8b4f04a3d6c74f7983d7bc>
- patch: <https://git.kernel.org/stable/c/a6cffe54064a5f6c2162a85af3c16c6b453eac4e>
- patch: <https://git.kernel.org/stable/c/725a521a18734f65de05b8d353b5bd0d3ca4c37a>

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

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