CVE-2024-56531: ALSA: caiaq: Use snd_card_free_when_closed() at disconnection

Published Dec 27, 2024
·
Updated

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

ALSA: caiaq: Use sndcardfreewhenclosed() at disconnection

The USB disconnect callback is supposed to be short and not too-long waiting. OTOH, the current code uses sndcardfree() 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 sndcardfree() with sndcardfreewhenclosed(). 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.

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

11 affected componentsFixes available
Linux Kernel
debian/linux<=5.10.223-1
5.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1
Linux Linux kernel>=2.6.22<4.19.325
Linux Linux kernel>=4.20<5.4.287
Linux Linux kernel>=5.5<5.10.231
Linux Linux kernel>=5.11<5.15.174
Linux Linux kernel>=5.16<6.1.120
Linux Linux kernel>=6.2<6.6.64
Linux Linux kernel>=6.7<6.11.11
Linux Linux kernel>=6.12<6.12.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade debian/linux-6.1 to a version that resolves this vulnerability.

    Fixed in 6.1.129-1~deb11u1
  3. Configuration

    At USB disconnect, replace snd_card_free() with snd_card_free_when_closed() so the disconnect callback returns immediately and does not wait for close of all used fds (avoids blocking upper-layer USB ioctls/soft lockup).

    ALSA caiaq (Linux kernel driver) snd_card_free() usage = Replace snd_card_free() with snd_card_free_when_closed()

Event History

Dec 27, 2024
CVE Published
via MITRE·02:11 PM
Data Sourced
via MITRE·02:11 PM
DescriptionSeverity
Data Sourced
via NVD·02:15 PM
Description
Data Sourced
via NVD·02:15 PM
RemedySeverityWeaknessAffected Software
Mar 28, 2025
Data Sourced
via Launchpad·01:04 AM
Description
May 11, 2025
Data Sourced
via Ubuntu·01:14 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-56531?

CVE-2024-56531 is classified as a moderate severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-56531?

To fix CVE-2024-56531, update to one of the following Linux kernel versions: 6.1.123-1, 6.1.128-1, 6.12.12-1, or 6.12.15-1.

3

Which Linux kernel versions are affected by CVE-2024-56531?

CVE-2024-56531 affects Linux kernel versions up to and including 5.10.226-1.

4

What components does CVE-2024-56531 affect?

CVE-2024-56531 affects the ALSA driver component in the Linux kernel, particularly related to USB disconnect handling.

5

Is there a workaround for CVE-2024-56531?

There is no official workaround for CVE-2024-56531; the recommended approach is to apply the available updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203