CVE-2024-56531

ALSA: caiaq: Use snd_card_free_when_closed() at disconnection

State
Published
Severity
7.8 High
Published
Dec 27, 2024
Updated
Aug 5, 2026
Reserved
Dec 27, 2024

Read the record on cve.org

Description

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

ALSA: caiaq: 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.

This patch also splits the code to the disconnect and the free phases; the former is called immediately at the USB disconnect callback while the latter is called from the card destructor.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 523f1dce37434a9a6623bf46e7893e2b4b10ac3c to before 3993edf44d3df7b6e8c753eac6ac8783473fcbabAffected
  • 523f1dce37434a9a6623bf46e7893e2b4b10ac3c to before ebad462eec93b0f701dfe4de98990e7355283801Affected
  • 523f1dce37434a9a6623bf46e7893e2b4b10ac3c to before 4dd821dcbfcecf7af6a08370b0b217cde2818acfAffected
  • 523f1dce37434a9a6623bf46e7893e2b4b10ac3c to before cadf1d8e9ddcd74584ec961aeac14ac549b261d8Affected
  • 523f1dce37434a9a6623bf46e7893e2b4b10ac3c to before 237f3faf0177bdde728fa3106d730d806436aa4dAffected
  • 523f1dce37434a9a6623bf46e7893e2b4b10ac3c to before 4507a8b9b30344c5ddd8219945f446d47e966a6dAffected
  • 523f1dce37434a9a6623bf46e7893e2b4b10ac3c to before dd0de8cb708951cebf727aa045e8242ba651bb52Affected
  • 523f1dce37434a9a6623bf46e7893e2b4b10ac3c to before a3f9314752dbb6f6aa1f0f2b4c58243bda800738Affected
  • 523f1dce37434a9a6623bf46e7893e2b4b10ac3c to before b04dcbb7f7b1908806b7dc22671cdbe78ff2b82cAffected
LinuxLinux
  • 2.6.22Affected
  • before 2.6.22Not affected
  • 4.19.325 through 4.19.*Not affected
  • 5.4.287 through 5.4.*Not affected
  • 5.10.231 through 5.10.*Not affected
  • 5.15.174 through 5.15.*Not affected
  • 6.1.120 through 6.1.*Not affected
  • 6.6.64 through 6.6.*Not affected
  • 6.11.11 through 6.11.*Not affected
  • 6.12.2 through 6.12.*Not affected
  • 6.13 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.