CVE-2026-138967: ALSA: mpu401: shut down timer before freeing MPU
In the Linux kernel, the following vulnerability has been resolved:
ALSA: mpu401: shut down timer before freeing MPU
When an MPU401 interface has no usable IRQ, the driver polls raw-MIDI input and output with a timer. During raw-MIDI teardown, the timer callback can already be running when sndmpu401uartremovetimer() clears the last mode bit and calls timerdelete(). That API neither waits for a running callback nor prevents it from rearming the timer, and freeirq() does not synchronize timer callbacks. sndmpu401uartfree() can therefore release mpu while the timer callback still uses it.
Initialize the timer once when the MPU object is created and only rearm it while a timer mode is active. Shut it down synchronously after freeing the IRQ so an in-flight callback completes before mpu and its resources are released.