CVE-2022-50760
JSON

Not scored

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

Severity
Not scored
Exploit likelihood
0.32% (higher than 27% 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 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

Product or packageVersionsReported by
Linux Linuxfrom d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before 6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7, from d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before da7c78ea9e62bb65273d3ff19a3866ec205bfe18, from d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before 3360125d721c91d697c71201f18f042ff743e936, from d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before 981024abf5fe605c94d4f906f65d1b3408d628be, from d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before 7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4, from d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before 8f2d2badf8ca5e7e7c30d88840b695c8af7286f3, from d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before 9d4057d0452243917e12eb19f1599c96f2f05b14, from d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before a8b54ad7106c0604c4adc4933138b3557739bce0 and 2 more
Not affected: before 4.2, from 4.9.337 up to 4.9.*, from 4.14.303 up to 4.14.*, from 4.19.270 up to 4.19.*, from 5.4.229 up to 5.4.*, from 5.10.163 up to 5.10.*
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 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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: drm/amdgpu: Corrección de la fuga del contador de referencias del dispositivo PCI en amdgpu_atrm_get_bios() Como dice el comentario de pci_get_class(), devuelve un pci_device con su contador de referencias incrementado y disminuye el contador de referencias para el parámetro de entrada @from si no es NULL. Si rompemos el bucle en amdgpu_atrm_get_bios() con ’pdev’ no NULL, necesitamos llamar a pci_dev_put() para disminuir el contador de referencias. Añadir el pci_dev_put() que falta para evitar la fuga del contador de referencias.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-50760 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-50760 changed 2026-11-10Public domain