# CVE-2022-50484: ALSA: usb-audio: Fix potential memory leaks

- 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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-04T15:16:42.385Z
- Modified: 2026-06-17T05:23:38.840Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ALSA: usb-audio: Fix potential memory leaks

When the driver hits -ENOMEM at allocating a URB or a buffer, it
aborts and goes to the error path that releases the all previously
allocated resources.  However, when -ENOMEM hits at the middle of the
sync EP URB allocation loop, the partially allocated URBs might be
left without released, because ep->nurbs is still zero at that point.

Fix it by setting ep->nurbs at first, so that the error handler loops
over the full URB list.

(As written by CVE List.)

## Affected

- Linux Linux: from 8fdff6a319e7dac757c558bd283dc4577e68cde7 before 0604e5e5537af099ea2f6dfd892afe5c92db8a80; from 8fdff6a319e7dac757c558bd283dc4577e68cde7 before 28d8d267af5d73f91d7640cbdb4024703256e36c; from 8fdff6a319e7dac757c558bd283dc4577e68cde7 before 46f0aed47673e275d682af60ed26dcc28add8eae; from 8fdff6a319e7dac757c558bd283dc4577e68cde7 before 988ec0cd0a2643c25c1658f7c33de2e15a5a2e31; from 8fdff6a319e7dac757c558bd283dc4577e68cde7 before bc1d16d282bca421c6fc31de4b8fd412010f01bd; from 8fdff6a319e7dac757c558bd283dc4577e68cde7 before 0672215994e2347a9b4f145e2bc1709b1e01cee3; from 8fdff6a319e7dac757c558bd283dc4577e68cde7 before faa8c1ed77d0169955b9b3516b714cc5fb512f27; from 8fdff6a319e7dac757c558bd283dc4577e68cde7 before e4442410f76d66b9f7e854010bce04853f665324; from 8fdff6a319e7dac757c558bd283dc4577e68cde7 before 6382da0828995af87aa8b8bef28cc61aceb4aff3; 3.5 (not affected: before 3.5; 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 3.5 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/0604e5e5537af099ea2f6dfd892afe5c92db8a80> (patch)
- <https://git.kernel.org/stable/c/28d8d267af5d73f91d7640cbdb4024703256e36c> (patch)
- <https://git.kernel.org/stable/c/46f0aed47673e275d682af60ed26dcc28add8eae> (patch)
- <https://git.kernel.org/stable/c/988ec0cd0a2643c25c1658f7c33de2e15a5a2e31> (patch)
- <https://git.kernel.org/stable/c/bc1d16d282bca421c6fc31de4b8fd412010f01bd> (patch)
- <https://git.kernel.org/stable/c/0672215994e2347a9b4f145e2bc1709b1e01cee3> (patch)
- <https://git.kernel.org/stable/c/faa8c1ed77d0169955b9b3516b714cc5fb512f27> (patch)
- <https://git.kernel.org/stable/c/e4442410f76d66b9f7e854010bce04853f665324> (patch)
- <https://git.kernel.org/stable/c/6382da0828995af87aa8b8bef28cc61aceb4aff3> (patch)

## Sources

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

---

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