CVE-2022-50311 (GCVE-0-2022-50311)
Vulnerability from cvelistv5
Published
2025-09-15 14:46
Modified
2025-09-15 14:46
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: cxl: Fix refcount leak in cxl_calc_capp_routing of_get_next_parent() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. This function only calls of_node_put() in normal path, missing it in the error path. Add missing of_node_put() to avoid refcount leak.
Impacted products
Vendor Product Version
Linux Linux Version: f24be42aab37c6d07c05126673138e06223a6399
Version: f24be42aab37c6d07c05126673138e06223a6399
Version: f24be42aab37c6d07c05126673138e06223a6399
Version: f24be42aab37c6d07c05126673138e06223a6399
Version: f24be42aab37c6d07c05126673138e06223a6399
Version: f24be42aab37c6d07c05126673138e06223a6399
Version: f24be42aab37c6d07c05126673138e06223a6399
Version: f24be42aab37c6d07c05126673138e06223a6399
Create a notification for this product.
   Linux Linux Version: 4.12
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/misc/cxl/pci.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "c9bebc503881c1391f6c4f820134884adecf1519",
              "status": "affected",
              "version": "f24be42aab37c6d07c05126673138e06223a6399",
              "versionType": "git"
            },
            {
              "lessThan": "ee870f72465015327ad96204b0e92450d04870cd",
              "status": "affected",
              "version": "f24be42aab37c6d07c05126673138e06223a6399",
              "versionType": "git"
            },
            {
              "lessThan": "f2d60f6ba173cded65081cee690b67802395a479",
              "status": "affected",
              "version": "f24be42aab37c6d07c05126673138e06223a6399",
              "versionType": "git"
            },
            {
              "lessThan": "81c8bbf5b2b5f0c8030fff1716c00849cda8571a",
              "status": "affected",
              "version": "f24be42aab37c6d07c05126673138e06223a6399",
              "versionType": "git"
            },
            {
              "lessThan": "6a310e8db5409676b4b3e6c1f54dff174e4fd04d",
              "status": "affected",
              "version": "f24be42aab37c6d07c05126673138e06223a6399",
              "versionType": "git"
            },
            {
              "lessThan": "651e8bc9d0418c20a1989b7c078c64c2a6346fa3",
              "status": "affected",
              "version": "f24be42aab37c6d07c05126673138e06223a6399",
              "versionType": "git"
            },
            {
              "lessThan": "2d7b6580384e6d65419933ddc525bd176095da54",
              "status": "affected",
              "version": "f24be42aab37c6d07c05126673138e06223a6399",
              "versionType": "git"
            },
            {
              "lessThan": "1d09697ff22908ae487fc8c4fbde1811732be523",
              "status": "affected",
              "version": "f24be42aab37c6d07c05126673138e06223a6399",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/misc/cxl/pci.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.12"
            },
            {
              "lessThan": "4.12",
              "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.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncxl: Fix refcount leak in cxl_calc_capp_routing\n\nof_get_next_parent() returns a node pointer with refcount incremented,\nwe should use of_node_put() on it when not need anymore.\nThis function only calls of_node_put() in normal path,\nmissing it in the error path.\nAdd missing of_node_put() to avoid refcount leak."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-15T14:46:06.504Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/c9bebc503881c1391f6c4f820134884adecf1519"
        },
        {
          "url": "https://git.kernel.org/stable/c/ee870f72465015327ad96204b0e92450d04870cd"
        },
        {
          "url": "https://git.kernel.org/stable/c/f2d60f6ba173cded65081cee690b67802395a479"
        },
        {
          "url": "https://git.kernel.org/stable/c/81c8bbf5b2b5f0c8030fff1716c00849cda8571a"
        },
        {
          "url": "https://git.kernel.org/stable/c/6a310e8db5409676b4b3e6c1f54dff174e4fd04d"
        },
        {
          "url": "https://git.kernel.org/stable/c/651e8bc9d0418c20a1989b7c078c64c2a6346fa3"
        },
        {
          "url": "https://git.kernel.org/stable/c/2d7b6580384e6d65419933ddc525bd176095da54"
        },
        {
          "url": "https://git.kernel.org/stable/c/1d09697ff22908ae487fc8c4fbde1811732be523"
        }
      ],
      "title": "cxl: Fix refcount leak in cxl_calc_capp_routing",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50311",
    "datePublished": "2025-09-15T14:46:06.504Z",
    "dateReserved": "2025-09-15T14:18:36.813Z",
    "dateUpdated": "2025-09-15T14:46:06.504Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50311\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-15T15:15:42.860\",\"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\\ncxl: Fix refcount leak in cxl_calc_capp_routing\\n\\nof_get_next_parent() returns a node pointer with refcount incremented,\\nwe should use of_node_put() on it when not need anymore.\\nThis function only calls of_node_put() in normal path,\\nmissing it in the error path.\\nAdd missing of_node_put() to avoid refcount leak.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1d09697ff22908ae487fc8c4fbde1811732be523\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/2d7b6580384e6d65419933ddc525bd176095da54\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/651e8bc9d0418c20a1989b7c078c64c2a6346fa3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/6a310e8db5409676b4b3e6c1f54dff174e4fd04d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/81c8bbf5b2b5f0c8030fff1716c00849cda8571a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c9bebc503881c1391f6c4f820134884adecf1519\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ee870f72465015327ad96204b0e92450d04870cd\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f2d60f6ba173cded65081cee690b67802395a479\",\"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…