Not scored
drm/amdgpu: fix pci device refcount leak
- Severity
- Not scored
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix pci device refcount leak As comment of pci_get_domain_bus_and_slot() says, it returns a pci device with refcount increment, when finish using it, the caller must decrement the reference count by calling pci_dev_put(). So before returning from amdgpu_device_resume|suspend_display_audio(), pci_dev_put() is called to avoid refcount leak.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 3f12acc8d6d4b2e62fab8f652d7075a859d80b42 before 3725a8f26bdbc38dfdf545836117f1e069277c91, from 3f12acc8d6d4b2e62fab8f652d7075a859d80b42 before 02105f0b3021ee5853b2fa50853c42f35fc01cfd, from 3f12acc8d6d4b2e62fab8f652d7075a859d80b42 before f13661b72a61708cecb06562f8acff068a4f31f7, from 3f12acc8d6d4b2e62fab8f652d7075a859d80b42 before d7352b410471cbebf6350b2990bae82bb0d59a76, from 3f12acc8d6d4b2e62fab8f652d7075a859d80b42 before b85e285e3d6352b02947fc1b72303673dfacb0aa, 5.8 Not affected: before 5.8, from 5.10.163 up to 5.10.*, from 5.15.86 up to 5.15.*, from 6.0.16 up to 6.0.*, from 6.1.2 up to 6.1.*, from 6.2 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix pci device refcount leak As comment of pci_get_domain_bus_and_slot() says, it returns a pci device with refcount increment, when finish using it, the caller must decrement the reference count by calling pci_dev_put(). So before returning from amdgpu_device_resume|suspend_display_audio(), pci_dev_put() is called to avoid refcount leak.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: drm/amdgpu: corregir fuga de contador de referencias de dispositivo PCI Como dice el comentario de pci_get_domain_bus_and_slot(), devuelve un dispositivo PCI con el contador de referencias incrementado; cuando se termina de usar, el llamador debe decrementar el contador de referencias llamando a pci_dev_put(). Así que antes de regresar de amdgpu_device_resume|suspend_display_audio(), se llama a pci_dev_put() para evitar la fuga del contador de referencias.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50718 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-50718 changed 2026-11-10 | Public domain |