{"id":"CVE-2022-50760","aliases":["CVE-2022-50760"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()\n\nAs comment of pci_get_class() says, it returns a pci_device with its\nrefcount increased and decreased the refcount for the input parameter\n@from if it is not NULL.\n\nIf we break the loop in amdgpu_atrm_get_bios() with 'pdev' not NULL, we\nneed to call pci_dev_put() to decrease the refcount. Add the missing\npci_dev_put() to avoid refcount leak.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()\n\nAs comment of pci_get_class() says, it returns a pci_device with its\nrefcount increased and decreased the refcount for the input parameter\n@from if it is not NULL.\n\nIf we break the loop in amdgpu_atrm_get_bios() with 'pdev' not NULL, we\nneed to call pci_dev_put() to decrease the refcount. Add the missing\npci_dev_put() to avoid refcount leak.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm/amdgpu: Corrección de la fuga del contador de referencias del dispositivo PCI en amdgpu_atrm_get_bios()\n\nComo 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.\n\nSi 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.","source":"nvd"}],"published":"2025-12-24T13:05:52.582Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"da7c78ea9e62bb65273d3ff19a3866ec205bfe18","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"3360125d721c91d697c71201f18f042ff743e936","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"981024abf5fe605c94d4f906f65d1b3408d628be","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"8f2d2badf8ca5e7e7c30d88840b695c8af7286f3","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"9d4057d0452243917e12eb19f1599c96f2f05b14","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"a8b54ad7106c0604c4adc4933138b3557739bce0","status":"affected"},{"type":"git","introduced":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","fixed":"ca54639c7752edf1304d92ff4d0c049d4efc9ba0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.2","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/6611feef35c0c8c4d297b28a7fc6ab3a2c47eca7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da7c78ea9e62bb65273d3ff19a3866ec205bfe18","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3360125d721c91d697c71201f18f042ff743e936","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/981024abf5fe605c94d4f906f65d1b3408d628be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c1ddf7c664b5bc91f14b1bdeaa45520ef1760e4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8f2d2badf8ca5e7e7c30d88840b695c8af7286f3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9d4057d0452243917e12eb19f1599c96f2f05b14","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a8b54ad7106c0604c4adc4933138b3557739bce0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ca54639c7752edf1304d92ff4d0c049d4efc9ba0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50760","url":"https://www.cve.org/CVERecord?id=CVE-2022-50760","licence":"CVE Terms of Use","modified":"2026-05-11T19:24:59.375Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50760","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50760","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.350Z","epss":{"score":0.00322,"percentile":0.27273,"date":"2026-12-01T12:00:22.000Z"}}