# CVE-2022-50544: usb: host: xhci: Fix potential memory leak in xhci_alloc_stream_info()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-10-07T15:21:08.629Z
- Modified: 2026-11-05T21:17:04.773Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 8df75f42f8e67e2851cdcf6da91640fb881defd1 before 7fc6bab3413e6a42bb1264ff7c9149808c93a4c7; from 8df75f42f8e67e2851cdcf6da91640fb881defd1 before e702de2f5c893bf2cdb0152191f99a6ad1411823; from 8df75f42f8e67e2851cdcf6da91640fb881defd1 before ddab9fe76296840aad686c66888a9c1dfdbff5ff; from 8df75f42f8e67e2851cdcf6da91640fb881defd1 before 9fa81cbd2dd300aa8fe9bac70e068b9a11cbb144; from 8df75f42f8e67e2851cdcf6da91640fb881defd1 before 91271a3e772e180bbb8afb114c72fd294a02f93d; from 8df75f42f8e67e2851cdcf6da91640fb881defd1 before fcd594da0b5955119d9707e4e0a8d0fb1c969101; from 8df75f42f8e67e2851cdcf6da91640fb881defd1 before a40ad475236022f3432880e3091c380e46e71a71; from 8df75f42f8e67e2851cdcf6da91640fb881defd1 before 782c873f8e7686f5b3c47e8b099f7e08c3dd1fdc; from 8df75f42f8e67e2851cdcf6da91640fb881defd1 before 7e271f42a5cc3768cd2622b929ba66859ae21f97; 2.6.35 (not affected: before 2.6.35; from 4.9.331 up to 4.9.*; from 4.14.296 up to 4.14.*; from 4.19.262 up to 4.19.*; from 5.4.220 up to 5.4.*; from 5.10.150 up to 5.10.*; from 5.15.75 up to 5.15.*; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 2.6.35 before 4.9.331; from 4.10 before 4.14.296; from 4.15 before 4.19.262; from 4.20 before 5.4.220; from 5.5 before 5.10.150; from 5.11 before 5.15.75; from 5.16 before 5.19.17; from 6.0 before 6.0.3

## References

- <https://git.kernel.org/stable/c/7fc6bab3413e6a42bb1264ff7c9149808c93a4c7> (patch)
- <https://git.kernel.org/stable/c/e702de2f5c893bf2cdb0152191f99a6ad1411823> (patch)
- <https://git.kernel.org/stable/c/ddab9fe76296840aad686c66888a9c1dfdbff5ff> (patch)
- <https://git.kernel.org/stable/c/9fa81cbd2dd300aa8fe9bac70e068b9a11cbb144> (patch)
- <https://git.kernel.org/stable/c/91271a3e772e180bbb8afb114c72fd294a02f93d> (patch)
- <https://git.kernel.org/stable/c/fcd594da0b5955119d9707e4e0a8d0fb1c969101> (patch)
- <https://git.kernel.org/stable/c/a40ad475236022f3432880e3091c380e46e71a71> (patch)
- <https://git.kernel.org/stable/c/782c873f8e7686f5b3c47e8b099f7e08c3dd1fdc> (patch)
- <https://git.kernel.org/stable/c/7e271f42a5cc3768cd2622b929ba66859ae21f97> (patch)

## Sources

- CVE List: [CVE-2022-50544](https://www.cve.org/CVERecord?id=CVE-2022-50544), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-50544](https://nvd.nist.gov/vuln/detail/CVE-2022-50544), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-50544 · Whole record: https://cve.day/CVE-2022-50544.json · Rebuilt by cve.day 2026-11-25T22:58:21.265Z
