CVE-2024-56532

In the Linux kernel, the following vulnerability has been resolved: ALSA: us122l: Use snd_card_free_when_closed() at disconnection The USB disconnect callback is supposed to be short and not too-long waiting. OTOH, the current code uses snd_card_free() at disconnection, but this waits for the close of all used fds, hence it can take long. It eventually blocks the upper layer USB ioctls, which may trigger a soft lockup. An easy workaround is to replace snd_card_free() with snd_card_free_when_closed(). This variant returns immediately while the release of resources is done asynchronously by the card device release at the last close. The loop of us122l->mmap_count check is dropped as well. The check is useless for the asynchronous operation with *_when_closed().
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

19 Sep 2025, 16:18

Type Values Removed Values Added
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ALSA: us122l: Usar snd_card_free_when_closed() en la desconexión Se supone que la devolución de llamada de desconexión USB es corta y no requiere una espera demasiado larga. Por otro lado, el código actual usa snd_card_free() en la desconexión, pero esto espera el cierre de todos los fds usados, por lo tanto, puede tomar mucho tiempo. Eventualmente bloquea los ioctl USB de la capa superior, lo que puede desencadenar un bloqueo suave. Una solución fácil es reemplazar snd_card_free() con snd_card_free_when_closed(). Esta variante regresa inmediatamente mientras que la liberación de recursos se realiza de forma asincrónica por la liberación del dispositivo de la tarjeta en el último cierre. El bucle de comprobación us122l->mmap_count también se elimina. La comprobación es inútil para la operación asincrónica con *_when_closed().
First Time Linux linux Kernel
Linux
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
References () https://git.kernel.org/stable/c/020cbc4d7414f0962004213e2b7bc5cc607e9ec7 - () https://git.kernel.org/stable/c/020cbc4d7414f0962004213e2b7bc5cc607e9ec7 - Patch
References () https://git.kernel.org/stable/c/2938dd2648522336133c151dd67bb9bf01cbd390 - () https://git.kernel.org/stable/c/2938dd2648522336133c151dd67bb9bf01cbd390 - Patch
References () https://git.kernel.org/stable/c/75f418b249d84021865eaa59515d3ed9b75ce4d6 - () https://git.kernel.org/stable/c/75f418b249d84021865eaa59515d3ed9b75ce4d6 - Patch
References () https://git.kernel.org/stable/c/9a48bd2184b142c92a4e17eac074c61fcf975bc9 - () https://git.kernel.org/stable/c/9a48bd2184b142c92a4e17eac074c61fcf975bc9 - Patch
References () https://git.kernel.org/stable/c/9b27924dc8d7f8a8c35e521287d4ccb9a006e597 - () https://git.kernel.org/stable/c/9b27924dc8d7f8a8c35e521287d4ccb9a006e597 - Patch
References () https://git.kernel.org/stable/c/9d5c530e4d70f64b1114f2cc29ac690ba7ac4a38 - () https://git.kernel.org/stable/c/9d5c530e4d70f64b1114f2cc29ac690ba7ac4a38 - Patch
References () https://git.kernel.org/stable/c/b7df09bb348016943f56b09dcaafe221e3f73947 - () https://git.kernel.org/stable/c/b7df09bb348016943f56b09dcaafe221e3f73947 - Patch
References () https://git.kernel.org/stable/c/bc778ad3e495333eebda36fe91d5b2c93109cc16 - () https://git.kernel.org/stable/c/bc778ad3e495333eebda36fe91d5b2c93109cc16 - Patch
References () https://git.kernel.org/stable/c/bf0aa35a7cb8602cccf2387712114e836f65c154 - () https://git.kernel.org/stable/c/bf0aa35a7cb8602cccf2387712114e836f65c154 - Patch
CWE CWE-667

27 Dec 2024, 14:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-12-27 14:15

Updated : 2025-10-01 20:17


NVD link : CVE-2024-56532

Mitre link : CVE-2024-56532

CVE.ORG link : CVE-2024-56532


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-667

Improper Locking