# CVE-2024-56531: ALSA: caiaq: Use snd\_card\_free\_when\_closed() at disconnection

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-12-27T14:11:14.161Z
- **Modified:** 2026-08-05T11:44:54.186Z

## Who should check

- Anyone running Linux \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< 3993edf44d3df7b6e8c753eac6ac8783473fcbab; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< ebad462eec93b0f701dfe4de98990e7355283801; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< 4dd821dcbfcecf7af6a08370b0b217cde2818acf; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< cadf1d8e9ddcd74584ec961aeac14ac549b261d8; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< 237f3faf0177bdde728fa3106d730d806436aa4d; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< 4507a8b9b30344c5ddd8219945f446d47e966a6d; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< dd0de8cb708951cebf727aa045e8242ba651bb52; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< a3f9314752dbb6f6aa1f0f2b4c58243bda800738; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< b04dcbb7f7b1908806b7dc22671cdbe78ff2b82c
- Anyone running Linux 2.6.22

## 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.

## Affected and fixed versions

- Linux: \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< 3993edf44d3df7b6e8c753eac6ac8783473fcbab; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< ebad462eec93b0f701dfe4de98990e7355283801; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< 4dd821dcbfcecf7af6a08370b0b217cde2818acf; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< cadf1d8e9ddcd74584ec961aeac14ac549b261d8; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< 237f3faf0177bdde728fa3106d730d806436aa4d; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< 4507a8b9b30344c5ddd8219945f446d47e966a6d; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< dd0de8cb708951cebf727aa045e8242ba651bb52; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< a3f9314752dbb6f6aa1f0f2b4c58243bda800738; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< b04dcbb7f7b1908806b7dc22671cdbe78ff2b82c (cvelist)
- Linux: 2.6.22 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56531. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56531.md
Affected: Linux >= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, < 3993edf44d3df7b6e8c753eac6ac8783473fcbab; >= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, < ebad462eec93b0f701dfe4de98990e7355283801; >= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, < 4dd821dcbfcecf7af6a08370b0b217cde2818acf; >= 523f1dce37434a9a6623bf4…
Fixed in: Linux 3993edf44d3df7b6e8c753eac6ac8783473fcbab, Linux 4dd821dcbfcecf7af6a08370b0b217cde2818acf, Linux 237f3faf0177bdde728fa3106d730d806436aa4d, Linux 4507a8b9b30344c5ddd8219945f446d47e966a6d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56531 being exploited?

There is no confirmed exploitation: CVE-2024-56531 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-56531?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-56531?

Linux \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< 3993edf44d3df7b6e8c753eac6ac8783473fcbab; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< ebad462eec93b0f701dfe4de98990e7355283801; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< 4dd821dcbfcecf7af6a08370b0b217cde2818acf; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< cadf1d8e9ddcd74584ec961aeac14ac549b261d8; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< 237f3faf0177bdde728fa3106d730d806436aa4d; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< 4507a8b9b30344c5ddd8219945f446d47e966a6d; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< dd0de8cb708951cebf727aa045e8242ba651bb52; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< a3f9314752dbb6f6aa1f0f2b4c58243bda800738; \>= 523f1dce37434a9a6623bf46e7893e2b4b10ac3c, \< b04dcbb7f7b1908806b7dc22671cdbe78ff2b82c; Linux 2.6.22.

### Is there a fix for CVE-2024-56531?

Yes. Fixed in Linux 3993edf44d3df7b6e8c753eac6ac8783473fcbab, Linux 4dd821dcbfcecf7af6a08370b0b217cde2818acf, Linux 237f3faf0177bdde728fa3106d730d806436aa4d, Linux 4507a8b9b30344c5ddd8219945f446d47e966a6d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-56531?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3993edf44d3df7b6e8c753eac6ac8783473fcbab>
- patch: <https://git.kernel.org/stable/c/ebad462eec93b0f701dfe4de98990e7355283801>
- patch: <https://git.kernel.org/stable/c/4dd821dcbfcecf7af6a08370b0b217cde2818acf>
- patch: <https://git.kernel.org/stable/c/cadf1d8e9ddcd74584ec961aeac14ac549b261d8>
- patch: <https://git.kernel.org/stable/c/237f3faf0177bdde728fa3106d730d806436aa4d>
- patch: <https://git.kernel.org/stable/c/4507a8b9b30344c5ddd8219945f446d47e966a6d>
- patch: <https://git.kernel.org/stable/c/dd0de8cb708951cebf727aa045e8242ba651bb52>
- patch: <https://git.kernel.org/stable/c/a3f9314752dbb6f6aa1f0f2b4c58243bda800738>
- patch: <https://git.kernel.org/stable/c/b04dcbb7f7b1908806b7dc22671cdbe78ff2b82c>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56531>

HTML: <https://flawdb.com/CVE-2024-56531> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56531>
