CVE-2022-50318 (GCVE-0-2022-50318)

Vulnerability from cvelistv5 – Published: 2025-09-15 14:48 – Updated: 2025-09-15 14:48
VLAI?
Title
perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()
Summary
In the Linux kernel, the following vulnerability has been resolved: perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox() pci_get_device() will increase the reference count for the returned 'dev'. We need to call pci_dev_put() to decrease the reference count. Since 'dev' is only used in pci_read_config_dword(), let's add pci_dev_put() right after it.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: a8e87042482fd2d31c5cee62875b2ae75759ae8b , < 5a96c10a56037db006ba6769307a9731cf6073be (git)
Affected: 319a06e58ed7f1443f7133c05513de470f90628d , < e293263248f25c6b8aa1caf7c1103d40aa03311e (git)
Affected: 6f8315e5d9511ed1cf28ee2afbc9f89ff693de7b , < c0539d5d474ee6fa4ebc41f927a0f98f81244f25 (git)
Affected: 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5 , < 3485f197518061371568f842405159aa9e4df551 (git)
Affected: 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5 , < 48f32b9a74e2ac8e854bb87bfefdbc745125a123 (git)
Affected: 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5 , < bd66877c0b3b42eed0ecee0bd2a2a505c1e54177 (git)
Affected: 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5 , < 1ff9dd6e7071a561f803135c1d684b13c7a7d01d (git)
Affected: d2c79105a90323a2a93484c85f9ac419ae9b183d (git)
Create a notification for this product.
    Linux Linux Affected: 5.12
Unaffected: 0 , < 5.12 (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": [
            "arch/x86/events/intel/uncore_snbep.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5a96c10a56037db006ba6769307a9731cf6073be",
              "status": "affected",
              "version": "a8e87042482fd2d31c5cee62875b2ae75759ae8b",
              "versionType": "git"
            },
            {
              "lessThan": "e293263248f25c6b8aa1caf7c1103d40aa03311e",
              "status": "affected",
              "version": "319a06e58ed7f1443f7133c05513de470f90628d",
              "versionType": "git"
            },
            {
              "lessThan": "c0539d5d474ee6fa4ebc41f927a0f98f81244f25",
              "status": "affected",
              "version": "6f8315e5d9511ed1cf28ee2afbc9f89ff693de7b",
              "versionType": "git"
            },
            {
              "lessThan": "3485f197518061371568f842405159aa9e4df551",
              "status": "affected",
              "version": "9d480158ee86ad606d3a8baaf81e6b71acbfd7d5",
              "versionType": "git"
            },
            {
              "lessThan": "48f32b9a74e2ac8e854bb87bfefdbc745125a123",
              "status": "affected",
              "version": "9d480158ee86ad606d3a8baaf81e6b71acbfd7d5",
              "versionType": "git"
            },
            {
              "lessThan": "bd66877c0b3b42eed0ecee0bd2a2a505c1e54177",
              "status": "affected",
              "version": "9d480158ee86ad606d3a8baaf81e6b71acbfd7d5",
              "versionType": "git"
            },
            {
              "lessThan": "1ff9dd6e7071a561f803135c1d684b13c7a7d01d",
              "status": "affected",
              "version": "9d480158ee86ad606d3a8baaf81e6b71acbfd7d5",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "d2c79105a90323a2a93484c85f9ac419ae9b183d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/x86/events/intel/uncore_snbep.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.12"
            },
            {
              "lessThan": "5.12",
              "status": "unaffected",
              "version": "0",
              "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.19.270",
                  "versionStartIncluding": "4.19.189",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "5.4.115",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "5.10.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.11.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nperf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()\n\npci_get_device() will increase the reference count for the returned\n\u0027dev\u0027. We need to call pci_dev_put() to decrease the reference count.\nSince \u0027dev\u0027 is only used in pci_read_config_dword(), let\u0027s add\npci_dev_put() right after it."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-15T14:48:51.035Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/5a96c10a56037db006ba6769307a9731cf6073be"
        },
        {
          "url": "https://git.kernel.org/stable/c/e293263248f25c6b8aa1caf7c1103d40aa03311e"
        },
        {
          "url": "https://git.kernel.org/stable/c/c0539d5d474ee6fa4ebc41f927a0f98f81244f25"
        },
        {
          "url": "https://git.kernel.org/stable/c/3485f197518061371568f842405159aa9e4df551"
        },
        {
          "url": "https://git.kernel.org/stable/c/48f32b9a74e2ac8e854bb87bfefdbc745125a123"
        },
        {
          "url": "https://git.kernel.org/stable/c/bd66877c0b3b42eed0ecee0bd2a2a505c1e54177"
        },
        {
          "url": "https://git.kernel.org/stable/c/1ff9dd6e7071a561f803135c1d684b13c7a7d01d"
        }
      ],
      "title": "perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50318",
    "datePublished": "2025-09-15T14:48:51.035Z",
    "dateReserved": "2025-09-15T14:18:36.814Z",
    "dateUpdated": "2025-09-15T14:48:51.035Z",
    "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…