CVE-2022-50505 (GCVE-0-2022-50505)

Vulnerability from cvelistv5 – Published: 2025-10-04 15:43 – Updated: 2025-10-04 15:43
VLAI?
Title
iommu/amd: Fix pci device refcount leak in ppr_notifier()
Summary
In the Linux kernel, the following vulnerability has been resolved: iommu/amd: Fix pci device refcount leak in ppr_notifier() 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 call it before returning from ppr_notifier() to avoid refcount leak.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: daae2d25a4779b272a66ddd01f5810bcee822b9e , < bdb2113dd8f17a3cc84a2b4be4968a849f69ec72 (git)
Affected: daae2d25a4779b272a66ddd01f5810bcee822b9e , < efd50c65fd1cdef63eb58825f3fe72496443764c (git)
Affected: daae2d25a4779b272a66ddd01f5810bcee822b9e , < 8581ec1feb895ff596fe3d326d9ba320083290aa (git)
Affected: daae2d25a4779b272a66ddd01f5810bcee822b9e , < 03f51c72997559e73b327608f0cccfded715c9a0 (git)
Affected: daae2d25a4779b272a66ddd01f5810bcee822b9e , < 6e501b3fd7a2e1c4372d72bc70717aaca2beb8a5 (git)
Affected: daae2d25a4779b272a66ddd01f5810bcee822b9e , < 902cc2507091a81643502d8ceb0e2f105e902518 (git)
Affected: daae2d25a4779b272a66ddd01f5810bcee822b9e , < b0637f4bd426925f5c3a15e8f8e36190fe06bac5 (git)
Affected: daae2d25a4779b272a66ddd01f5810bcee822b9e , < 6cf0981c2233f97d56938d9d61845383d6eb227c (git)
Create a notification for this product.
    Linux Linux Affected: 4.14
Unaffected: 0 , < 4.14 (semver)
Unaffected: 4.14.303 , ≤ 4.14.* (semver)
Unaffected: 4.19.270 , ≤ 4.19.* (semver)
Unaffected: 5.4.229 , ≤ 5.4.* (semver)
Unaffected: 5.10.163 , ≤ 5.10.* (semver)
Unaffected: 5.15.86 , ≤ 5.15.* (semver)
Unaffected: 6.0.16 , ≤ 6.0.* (semver)
Unaffected: 6.1.2 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/iommu/amd/iommu_v2.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "bdb2113dd8f17a3cc84a2b4be4968a849f69ec72",
              "status": "affected",
              "version": "daae2d25a4779b272a66ddd01f5810bcee822b9e",
              "versionType": "git"
            },
            {
              "lessThan": "efd50c65fd1cdef63eb58825f3fe72496443764c",
              "status": "affected",
              "version": "daae2d25a4779b272a66ddd01f5810bcee822b9e",
              "versionType": "git"
            },
            {
              "lessThan": "8581ec1feb895ff596fe3d326d9ba320083290aa",
              "status": "affected",
              "version": "daae2d25a4779b272a66ddd01f5810bcee822b9e",
              "versionType": "git"
            },
            {
              "lessThan": "03f51c72997559e73b327608f0cccfded715c9a0",
              "status": "affected",
              "version": "daae2d25a4779b272a66ddd01f5810bcee822b9e",
              "versionType": "git"
            },
            {
              "lessThan": "6e501b3fd7a2e1c4372d72bc70717aaca2beb8a5",
              "status": "affected",
              "version": "daae2d25a4779b272a66ddd01f5810bcee822b9e",
              "versionType": "git"
            },
            {
              "lessThan": "902cc2507091a81643502d8ceb0e2f105e902518",
              "status": "affected",
              "version": "daae2d25a4779b272a66ddd01f5810bcee822b9e",
              "versionType": "git"
            },
            {
              "lessThan": "b0637f4bd426925f5c3a15e8f8e36190fe06bac5",
              "status": "affected",
              "version": "daae2d25a4779b272a66ddd01f5810bcee822b9e",
              "versionType": "git"
            },
            {
              "lessThan": "6cf0981c2233f97d56938d9d61845383d6eb227c",
              "status": "affected",
              "version": "daae2d25a4779b272a66ddd01f5810bcee822b9e",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/iommu/amd/iommu_v2.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.14"
            },
            {
              "lessThan": "4.14",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.303",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.229",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.86",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.303",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\niommu/amd: Fix pci device refcount leak in ppr_notifier()\n\nAs comment of pci_get_domain_bus_and_slot() says, it returns\na pci device with refcount increment, when finish using it,\nthe caller must decrement the reference count by calling\npci_dev_put(). So call it before returning from ppr_notifier()\nto avoid refcount leak."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-10-04T15:43:54.265Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/bdb2113dd8f17a3cc84a2b4be4968a849f69ec72"
        },
        {
          "url": "https://git.kernel.org/stable/c/efd50c65fd1cdef63eb58825f3fe72496443764c"
        },
        {
          "url": "https://git.kernel.org/stable/c/8581ec1feb895ff596fe3d326d9ba320083290aa"
        },
        {
          "url": "https://git.kernel.org/stable/c/03f51c72997559e73b327608f0cccfded715c9a0"
        },
        {
          "url": "https://git.kernel.org/stable/c/6e501b3fd7a2e1c4372d72bc70717aaca2beb8a5"
        },
        {
          "url": "https://git.kernel.org/stable/c/902cc2507091a81643502d8ceb0e2f105e902518"
        },
        {
          "url": "https://git.kernel.org/stable/c/b0637f4bd426925f5c3a15e8f8e36190fe06bac5"
        },
        {
          "url": "https://git.kernel.org/stable/c/6cf0981c2233f97d56938d9d61845383d6eb227c"
        }
      ],
      "title": "iommu/amd: Fix pci device refcount leak in ppr_notifier()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50505",
    "datePublished": "2025-10-04T15:43:54.265Z",
    "dateReserved": "2025-10-04T15:39:19.465Z",
    "dateUpdated": "2025-10-04T15:43:54.265Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…