Linux Kernel ALSA USB-Audio Use-After-Free Vulnerability in snd_usbmidi_free

Vulnerability

A use-after-free vulnerability has been addressed in the Linux kernel's ALSA USB-Audio subsystem, specifically within the snd_usbmidi_free function. This vulnerability arose from a race condition related to the handling of error timers and USB request blocks (URBs). The issue was initially introduced when the error timer was not properly synchronized with the deletion of USB endpoints, allowing for a rare race condition that could be exploited. Furthermore, the absence of proper cleanup for URBs meant that freed memory could be accessed in interrupt context, exacerbating the use-after-free condition. The vulnerability has been resolved by ensuring that the error timer and URBs are properly managed before freeing the associated memory.

Impact

Exploitation of this vulnerability could lead to a use-after-free condition, potentially allowing for arbitrary code execution or memory corruption.

Added: Oct 15, 2025, 8:21 AM
Updated: Oct 15, 2025, 8:21 AM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
3.5
remediation
7.7
relevance
0.7
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.