ALSA: virtio: reset device before deleting virtqueues
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ de3a9980d8c34b2479173e809afa820473db676a · < f070cce7cb361d5389b18f3ff6bd3d25a7596369| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: virtio: reset device before deleting virtqueues
virtsnd_remove() and virtsnd_freeze() delete the virtqueues before resetting the device. del_vqs() frees the vring backing, but does not provide a generic device quiesce operation. In particular, modern virtio-pci keeps enabled queues active until the device is reset.
Reset the device before deleting the virtqueues so it can no longer access the vring memory when that memory is released. This also covers probe failures after DRIVER_OK, which unwind through virtsnd_remove().
From the CVE record · Linux
The ALSA virtio driver can delete virtqueues before resetting the device, allowing the device to access released vring memory. This can occur during device removal, freezing, or a probe failure after DRIVER_OK. The input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the ALSA virtio driver should check their kernel version against the vendor advisory; affected versions are not specified.