Skip to content
Heist/ feed
Back to feed
UnratedFix available

drm/amdgpu: fix pci device refcount leak

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.163, 5.15.86, 6.0.16, 6.1.2
CVEs
CVE-2022-50718
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:18 UTC · Revision 1

Source evidence

drm/amdgpu: fix pci device refcount leak

core-osv · Original source

Published 24 Dec 2025, 12:22 UTC

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.

osv:CVE-2022-50718

Kernel

Fixed versions: 5.10.163, 5.15.86, 6.0.16, 6.1.2

Complete source record
{
  "id": "7069508b859c700512f069cd1839969b4ee4ebfd2accc2a02442cc8b1b11228f",
  "url": "https://osv.dev/vulnerability/CVE-2022-50718",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "drm/amdgpu: fix pci device refcount leak",
    "summary": "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.",
    "evidence": "osv:CVE-2022-50718",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.163",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.86",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.16",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-50718",
      "aliases": [
        "CVE-2022-50718"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3f12acc8d6d4b2e62fab8f652d7075a859d80b42"
                },
                {
                  "fixed": "3725a8f26bdbc38dfdf545836117f1e069277c91"
                },
                {
                  "fixed": "02105f0b3021ee5853b2fa50853c42f35fc01cfd"
                },
                {
                  "fixed": "f13661b72a61708cecb06562f8acff068a4f31f7"
                },
                {
                  "fixed": "d7352b410471cbebf6350b2990bae82bb0d59a76"
                },
                {
                  "fixed": "b85e285e3d6352b02947fc1b72303673dfacb0aa"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50718.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.8.0"
                },
                {
                  "fixed": "5.10.163"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.86"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.0.16"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.1.0"
                },
                {
                  "fixed": "6.1.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50718.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.167976778Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/02105f0b3021ee5853b2fa50853c42f35fc01cfd",
        "https://git.kernel.org/stable/c/3725a8f26bdbc38dfdf545836117f1e069277c91",
        "https://git.kernel.org/stable/c/b85e285e3d6352b02947fc1b72303673dfacb0aa",
        "https://git.kernel.org/stable/c/d7352b410471cbebf6350b2990bae82bb0d59a76",
        "https://git.kernel.org/stable/c/f13661b72a61708cecb06562f8acff068a4f31f7",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50718.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50718",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50718.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50718",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 497258,
  "published_at": "2025-12-24T12:22:41.971+00:00"
}