Bug 2334487 (CVE-2024-56532) - CVE-2024-56532 kernel: ALSA: us122l: Use snd_card_free_when_closed() at disconnection
Summary: CVE-2024-56532 kernel: ALSA: us122l: Use snd_card_free_when_closed() at disco...
Keywords:
Status: NEW
Alias: CVE-2024-56532
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-27 15:05 UTC by OSIDB Bzimport
Modified: 2025-03-04 06:28 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-27 15:05:14 UTC
In the Linux kernel, the following vulnerability has been resolved:

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

The loop of us122l->mmap_count check is dropped as well.  The check is
useless for the asynchronous operation with *_when_closed().

Comment 1 Avinash Hanwate 2024-12-28 06:00:39 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122724-CVE-2024-56532-6931@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.