CVE-2022-50544 (GCVE-0-2022-50544)

Vulnerability from cvelistv5 – Published: 2025-10-07 15:21 – Updated: 2025-12-23 13:29
VLAI?
Title
usb: host: xhci: Fix potential memory leak in xhci_alloc_stream_info()
Summary
In the Linux kernel, the following vulnerability has been resolved: usb: host: xhci: Fix potential memory leak in xhci_alloc_stream_info() xhci_alloc_stream_info() allocates stream context array for stream_info ->stream_ctx_array with xhci_alloc_stream_ctx(). When some error occurs, stream_info->stream_ctx_array is not released, which will lead to a memory leak. We can fix it by releasing the stream_info->stream_ctx_array with xhci_free_stream_ctx() on the error path to avoid the potential memory leak.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 8df75f42f8e67e2851cdcf6da91640fb881defd1 , < 7fc6bab3413e6a42bb1264ff7c9149808c93a4c7 (git)
Affected: 8df75f42f8e67e2851cdcf6da91640fb881defd1 , < e702de2f5c893bf2cdb0152191f99a6ad1411823 (git)
Affected: 8df75f42f8e67e2851cdcf6da91640fb881defd1 , < ddab9fe76296840aad686c66888a9c1dfdbff5ff (git)
Affected: 8df75f42f8e67e2851cdcf6da91640fb881defd1 , < 9fa81cbd2dd300aa8fe9bac70e068b9a11cbb144 (git)
Affected: 8df75f42f8e67e2851cdcf6da91640fb881defd1 , < 91271a3e772e180bbb8afb114c72fd294a02f93d (git)
Affected: 8df75f42f8e67e2851cdcf6da91640fb881defd1 , < fcd594da0b5955119d9707e4e0a8d0fb1c969101 (git)
Affected: 8df75f42f8e67e2851cdcf6da91640fb881defd1 , < a40ad475236022f3432880e3091c380e46e71a71 (git)
Affected: 8df75f42f8e67e2851cdcf6da91640fb881defd1 , < 782c873f8e7686f5b3c47e8b099f7e08c3dd1fdc (git)
Affected: 8df75f42f8e67e2851cdcf6da91640fb881defd1 , < 7e271f42a5cc3768cd2622b929ba66859ae21f97 (git)
Create a notification for this product.
    Linux Linux Affected: 2.6.35
Unaffected: 0 , < 2.6.35 (semver)
Unaffected: 4.9.331 , ≤ 4.9.* (semver)
Unaffected: 4.14.296 , ≤ 4.14.* (semver)
Unaffected: 4.19.262 , ≤ 4.19.* (semver)
Unaffected: 5.4.220 , ≤ 5.4.* (semver)
Unaffected: 5.10.150 , ≤ 5.10.* (semver)
Unaffected: 5.15.75 , ≤ 5.15.* (semver)
Unaffected: 5.19.17 , ≤ 5.19.* (semver)
Unaffected: 6.0.3 , ≤ 6.0.* (semver)
Unaffected: 6.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/host/xhci-mem.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "7fc6bab3413e6a42bb1264ff7c9149808c93a4c7",
              "status": "affected",
              "version": "8df75f42f8e67e2851cdcf6da91640fb881defd1",
              "versionType": "git"
            },
            {
              "lessThan": "e702de2f5c893bf2cdb0152191f99a6ad1411823",
              "status": "affected",
              "version": "8df75f42f8e67e2851cdcf6da91640fb881defd1",
              "versionType": "git"
            },
            {
              "lessThan": "ddab9fe76296840aad686c66888a9c1dfdbff5ff",
              "status": "affected",
              "version": "8df75f42f8e67e2851cdcf6da91640fb881defd1",
              "versionType": "git"
            },
            {
              "lessThan": "9fa81cbd2dd300aa8fe9bac70e068b9a11cbb144",
              "status": "affected",
              "version": "8df75f42f8e67e2851cdcf6da91640fb881defd1",
              "versionType": "git"
            },
            {
              "lessThan": "91271a3e772e180bbb8afb114c72fd294a02f93d",
              "status": "affected",
              "version": "8df75f42f8e67e2851cdcf6da91640fb881defd1",
              "versionType": "git"
            },
            {
              "lessThan": "fcd594da0b5955119d9707e4e0a8d0fb1c969101",
              "status": "affected",
              "version": "8df75f42f8e67e2851cdcf6da91640fb881defd1",
              "versionType": "git"
            },
            {
              "lessThan": "a40ad475236022f3432880e3091c380e46e71a71",
              "status": "affected",
              "version": "8df75f42f8e67e2851cdcf6da91640fb881defd1",
              "versionType": "git"
            },
            {
              "lessThan": "782c873f8e7686f5b3c47e8b099f7e08c3dd1fdc",
              "status": "affected",
              "version": "8df75f42f8e67e2851cdcf6da91640fb881defd1",
              "versionType": "git"
            },
            {
              "lessThan": "7e271f42a5cc3768cd2622b929ba66859ae21f97",
              "status": "affected",
              "version": "8df75f42f8e67e2851cdcf6da91640fb881defd1",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/host/xhci-mem.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.35"
            },
            {
              "lessThan": "2.6.35",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.331",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.296",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.262",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.220",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.150",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.75",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.17",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.331",
                  "versionStartIncluding": "2.6.35",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.296",
                  "versionStartIncluding": "2.6.35",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.262",
                  "versionStartIncluding": "2.6.35",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.220",
                  "versionStartIncluding": "2.6.35",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.150",
                  "versionStartIncluding": "2.6.35",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.75",
                  "versionStartIncluding": "2.6.35",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.17",
                  "versionStartIncluding": "2.6.35",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.3",
                  "versionStartIncluding": "2.6.35",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "2.6.35",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: host: xhci: Fix potential memory leak in xhci_alloc_stream_info()\n\nxhci_alloc_stream_info() allocates stream context array for stream_info\n-\u003estream_ctx_array with xhci_alloc_stream_ctx(). When some error occurs,\nstream_info-\u003estream_ctx_array is not released, which will lead to a\nmemory leak.\n\nWe can fix it by releasing the stream_info-\u003estream_ctx_array with\nxhci_free_stream_ctx() on the error path to avoid the potential memory\nleak."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-23T13:29:52.195Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/7fc6bab3413e6a42bb1264ff7c9149808c93a4c7"
        },
        {
          "url": "https://git.kernel.org/stable/c/e702de2f5c893bf2cdb0152191f99a6ad1411823"
        },
        {
          "url": "https://git.kernel.org/stable/c/ddab9fe76296840aad686c66888a9c1dfdbff5ff"
        },
        {
          "url": "https://git.kernel.org/stable/c/9fa81cbd2dd300aa8fe9bac70e068b9a11cbb144"
        },
        {
          "url": "https://git.kernel.org/stable/c/91271a3e772e180bbb8afb114c72fd294a02f93d"
        },
        {
          "url": "https://git.kernel.org/stable/c/fcd594da0b5955119d9707e4e0a8d0fb1c969101"
        },
        {
          "url": "https://git.kernel.org/stable/c/a40ad475236022f3432880e3091c380e46e71a71"
        },
        {
          "url": "https://git.kernel.org/stable/c/782c873f8e7686f5b3c47e8b099f7e08c3dd1fdc"
        },
        {
          "url": "https://git.kernel.org/stable/c/7e271f42a5cc3768cd2622b929ba66859ae21f97"
        }
      ],
      "title": "usb: host: xhci: Fix potential memory leak in xhci_alloc_stream_info()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50544",
    "datePublished": "2025-10-07T15:21:08.629Z",
    "dateReserved": "2025-10-07T15:15:38.667Z",
    "dateUpdated": "2025-12-23T13:29:52.195Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


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…