CVE-2022-50484

ALSA: usb-audio: Fix potential memory leaks

State
Published
Severity
Not scored
Published
Oct 4, 2025
Updated
May 11, 2026
Reserved
Oct 4, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 8fdff6a319e7dac757c558bd283dc4577e68cde7 to before 0604e5e5537af099ea2f6dfd892afe5c92db8a80Affected
  • 8fdff6a319e7dac757c558bd283dc4577e68cde7 to before 28d8d267af5d73f91d7640cbdb4024703256e36cAffected
  • 8fdff6a319e7dac757c558bd283dc4577e68cde7 to before 46f0aed47673e275d682af60ed26dcc28add8eaeAffected
  • 8fdff6a319e7dac757c558bd283dc4577e68cde7 to before 988ec0cd0a2643c25c1658f7c33de2e15a5a2e31Affected
  • 8fdff6a319e7dac757c558bd283dc4577e68cde7 to before bc1d16d282bca421c6fc31de4b8fd412010f01bdAffected
  • 8fdff6a319e7dac757c558bd283dc4577e68cde7 to before 0672215994e2347a9b4f145e2bc1709b1e01cee3Affected
  • 8fdff6a319e7dac757c558bd283dc4577e68cde7 to before faa8c1ed77d0169955b9b3516b714cc5fb512f27Affected
  • 8fdff6a319e7dac757c558bd283dc4577e68cde7 to before e4442410f76d66b9f7e854010bce04853f665324Affected
  • 8fdff6a319e7dac757c558bd283dc4577e68cde7 to before 6382da0828995af87aa8b8bef28cc61aceb4aff3Affected
LinuxLinux
  • 3.5Affected
  • before 3.5Not affected
  • 4.9.331 through 4.9.*Not affected
  • 4.14.296 through 4.14.*Not affected
  • 4.19.262 through 4.19.*Not affected
  • 5.4.220 through 5.4.*Not affected
  • 5.10.150 through 5.10.*Not affected
  • 5.15.75 through 5.15.*Not affected
  • 5.19.17 through 5.19.*Not affected
  • 6.0.3 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.