Technical impact
The bug occurs in the ALSA mpu401 driver when there is no usable IRQ for an MPU401 interface. The driver polls raw‑MIDI input and output with a timer and, during teardown, the timer callback may still be running while snd_mpu401_uart_remove_timer() clears mode bits and invokes timer_delete(). The timer_delete() API does not wait for executing callbacks, and free_irq() does not provide synchronization. As a result, the driver can free the MPU structure while the timer callback continues to reference it, creating an explicit use‑after‑free condition that could lead to memory corruption.
Affected Systems
The vulnerability exists in the default Linux kernel as shipped in any version that includes the ALSA mpu401 driver before the patch. No specific kernel versions are listed, but the issue applies to all kernels affected until the commit that removes the timer before freeing the MPU is applied.
Risk and Exploitability
A use‑after‑free can be exploited to corrupt memory, potentially allowing privilege escalation or a denial‑of‑service crash. No EPSS score or KEV designation is currently available, and the CVSS score is not disclosed; however, the nature of the flaw and the lack of synchronization suggest a high risk if an attacker can trigger the timer while the device is being removed. The likely attack vector involves an attacker interacting with or timing the removal of a raw‑MIDI device.