ALSA: usx2y: Use snd_card_free_when_closed() at disconnection
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 230cd5e24853ed4dd960461989b8ed0986d37a99 · < e869642a77a9b3b98b0ab2c8fec7af4385140909| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usx2y: 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.
From the CVE record · Linux
The ALSA usx2y USB disconnect callback waits for open file descriptors to close, potentially blocking USB ioctls and triggering a soft lockup. A local user with an open device file descriptor could encounter this when the device disconnects; no network access is described.
Engineers running the Linux kernel with ALSA usx2y support should check their kernel; affected versions are not specified.