ALSA: caiaq: Use snd_card_free_when_closed() at disconnection (Linux Linux)

CVE-2024-56531
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 523f1dce37434a9a6623bf46e7893e2b4b10ac3c < 3993edf44d3df7b6e8c753eac6ac8783473fcbab ; affected 523f1dce37434a9a6623bf46e7893e2b4b10ac3c < ebad462eec93b0f701dfe4de98990e7355283801 ; affected 523f1dce37434a9a6623bf46e7893e2b4b10ac3c < 4dd821dcbfcecf7af6a08370b0b217cde2818acf ; affected 523f1dce37434a9a6623bf46e7893e2b4b10ac3c < cadf1d8e9ddcd74584ec961aeac14ac549b261d8 ; affected 523f1dce37434a9a6623bf46e7893e2b4b10ac3c < 237f3faf0177bdde728fa3106d730d806436aa4d ; affected 523f1dce37434a9a6623bf46e7893e2b4b10ac3c < 4507a8b9b30344c5ddd8219945f446d47e966a6d
Linux · Linuxaffected 2.6.22 ; unaffected 0 < 2.6.22 ; unaffected 4.19.325 ≤ 4.19.* ; unaffected 5.4.287 ≤ 5.4.* ; unaffected 5.10.231 ≤ 5.10.* ; unaffected 5.15.174 ≤ 5.15.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD