CVE-2022-50760
drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()
Mitigation
- No fix listed yet: follow the vendor advisory.
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
Vulnerability facts
- Affected
- Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < da7c78ea9e62bb65273d3ff19a3866ec205bfe18; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 3360125d721c91d697c71201f18f042ff743e936; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 981024abf5fe605c94d4f906f65d1b3408d628be; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 8f2d2badf8ca5e7e7c30d88840b695c8af7286f3; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 9d4057d0452243917e12eb19f1599c96f2f05b14; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < a8b54ad7106c0604c4adc4933138b3557739bce0; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < ca54639c7752edf1304d92ff4d0c049d4efc9ba0; Linux 4.2
- Fixed in
- Linux 6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7, Linux 3360125d721c91d697c71201f18f042ff743e936, Linux 981024abf5fe605c94d4f906f65d1b3408d628be, Linux 7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4, Linux 8f2d2badf8ca5e7e7c30d88840b695c8af7286f3, Linux 9d4057d0452243917e12eb19f1599c96f2f05b14
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.32% chance of exploitation in 30 days (percentile 18, 2026-11-26)
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < da7c78ea9e62bb65273d3ff19a3866ec205bfe18; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 3360125d721c91d697c71201f18f042ff743e936; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 981024abf5fe605c94d4f906f65d1b3408d628be; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 8f2d2badf8ca5e7e7c30d88840b695c8af7286f3; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 9d4057d0452243917e12eb19f1599c96f2f05b14; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < a8b54ad7106c0604c4adc4933138b3557739bce0; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < ca54639c7752edf1304d92ff4d0c049d4efc9ba0 | — | cvelist |
| Linux | 4.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Other
- https://git.kernel.org/stable/c/6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7
- https://git.kernel.org/stable/c/da7c78ea9e62bb65273d3ff19a3866ec205bfe18
- https://git.kernel.org/stable/c/3360125d721c91d697c71201f18f042ff743e936
- https://git.kernel.org/stable/c/981024abf5fe605c94d4f906f65d1b3408d628be
- https://git.kernel.org/stable/c/7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4
- https://git.kernel.org/stable/c/8f2d2badf8ca5e7e7c30d88840b695c8af7286f3
- https://git.kernel.org/stable/c/9d4057d0452243917e12eb19f1599c96f2f05b14
- https://git.kernel.org/stable/c/a8b54ad7106c0604c4adc4933138b3557739bce0
- https://git.kernel.org/stable/c/ca54639c7752edf1304d92ff4d0c049d4efc9ba0
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.