CVE-2022-50318 (GCVE-0-2022-50318)
Vulnerability from cvelistv5
Published
2025-09-15 14:48
Modified
2025-09-15 14:48
Severity ?
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.
Impacted products
Vendor Product Version
Linux Linux Version: a8e87042482fd2d31c5cee62875b2ae75759ae8b
Version: 319a06e58ed7f1443f7133c05513de470f90628d
Version: 6f8315e5d9511ed1cf28ee2afbc9f89ff693de7b
Version: 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5
Version: 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5
Version: 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5
Version: 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5
Version: d2c79105a90323a2a93484c85f9ac419ae9b183d
Create a notification for this product.
   Linux Linux Version: 5.12
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",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50318\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-15T15:15:43.750\",\"lastModified\":\"2025-09-15T15:22:27.090\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"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.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1ff9dd6e7071a561f803135c1d684b13c7a7d01d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3485f197518061371568f842405159aa9e4df551\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/48f32b9a74e2ac8e854bb87bfefdbc745125a123\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5a96c10a56037db006ba6769307a9731cf6073be\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/bd66877c0b3b42eed0ecee0bd2a2a505c1e54177\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c0539d5d474ee6fa4ebc41f927a0f98f81244f25\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e293263248f25c6b8aa1caf7c1103d40aa03311e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…