CVE-2024-56531

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-56531
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56531.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-56531
Downstream
Related
Published
2024-12-27T14:11:14.161Z
Modified
2025-11-28T02:34:20.367697Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
ALSA: caiaq: Use snd_card_free_when_closed() at disconnection
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56531.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
523f1dce37434a9a6623bf46e7893e2b4b10ac3c
Fixed
3993edf44d3df7b6e8c753eac6ac8783473fcbab
Fixed
ebad462eec93b0f701dfe4de98990e7355283801
Fixed
4dd821dcbfcecf7af6a08370b0b217cde2818acf
Fixed
cadf1d8e9ddcd74584ec961aeac14ac549b261d8
Fixed
237f3faf0177bdde728fa3106d730d806436aa4d
Fixed
4507a8b9b30344c5ddd8219945f446d47e966a6d
Fixed
dd0de8cb708951cebf727aa045e8242ba651bb52
Fixed
a3f9314752dbb6f6aa1f0f2b4c58243bda800738
Fixed
b04dcbb7f7b1908806b7dc22671cdbe78ff2b82c

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.22
Fixed
4.19.325
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.287
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.231
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.174
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.120
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.64
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.11.11
Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.2