ALSA: mpu401: shut down timer before freeing MPU
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
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 snd_mpu401_uart_remove_timer() clears the last mode bit and calls timer_delete(). That API neither waits for a running callback nor prevents it from rearming the timer, and free_irq() does not synchronize timer callbacks. snd_mpu401_uart_free() 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.
| Product | Versions |
|---|---|
| Linux Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 79b4553a51b688f44acdb01eb0f29cbc32f27f8c Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8493740754194ad53d4f636bcb50336bcb1a8d8f Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 61fe436a8c4f5a99a7b005f414fe7376e87c4e65 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before a86fb8659476d19743df6c62e4ec950930949d49 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c603b2366ce7682ccb21cbcb19fdfffb0f053d4c Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before ef6d993762b2198a098f2a82a0da7c29418aad5b Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 80d81ab3f0195763831c6507affac77ea2835f16 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 9332af5220d42341bb1446a62c545c0518e990ef Affected |
| Linux Linux | 2.6.12 Affectedbefore 2.6.12 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/79b4553a51b688f44acdb01eb0f29cbc32f27f8c
- https://git.kernel.org/stable/c/8493740754194ad53d4f636bcb50336bcb1a8d8f
- https://git.kernel.org/stable/c/61fe436a8c4f5a99a7b005f414fe7376e87c4e65
- https://git.kernel.org/stable/c/a86fb8659476d19743df6c62e4ec950930949d49
- https://git.kernel.org/stable/c/c603b2366ce7682ccb21cbcb19fdfffb0f053d4c
- https://git.kernel.org/stable/c/ef6d993762b2198a098f2a82a0da7c29418aad5b
- https://git.kernel.org/stable/c/80d81ab3f0195763831c6507affac77ea2835f16
- https://git.kernel.org/stable/c/9332af5220d42341bb1446a62c545c0518e990ef
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.