Linux
ALSA: timer: don't re-enter an instance callback that is still running
In the Linux kernel, the following vulnerability has been resolved: ALSA: timer: don't re-enter an instance callback that is still running The userspace-driven timer (utimer) TRIGGER ioctl calls snd_timer_interrupt() directly with no serialization, so two threads triggering the same utimer can run snd_timer_interrupt() on one snd_timer concurrently. snd_timer_process_callbacks() drops timer->lock around each instance callback and marks the in-flight callback with the single SNDRV_TIMER_IFLG_CALLBACK bit; snd_timer_close_locked() waits on that bit to drain an in-flight callback before freeing the instance. The bit cannot represent two concurrent callbacks: when a second interrupt re-queues an instance whose callback is still running, both run at once, the first to finish clears the bit, and the close-path drain then frees the instance (and its callback_data) while the other callback is still live - a use-after-free reachable by any user able to open /dev/snd/timer, both via a user timer instance and via a sequencer queue timer bound to the utimer. snd_timer_interrupt() sets IFLG_CALLBACK before dropping timer->lock, so a concurrent interrupt already observes it under the lock. Skip re-queuing an instance (and its slaves) to the ack/sack list while its callback is in flight; the accumulated pticks are delivered on the next tick, so no event is lost.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 996c24377eea4d4506b7c3ccbbf1e490440b5e0b
- >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 1395327a96614885552bae5fbb650e6dd182d49b
- >= 37745918e0e7575bc40f38da93a99b9fa6406224, < c1078130a4cd7e738f4b73afe99b3e68cbfbf884
- >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 70d28bfcd6224eed75986b3b987b997e59643fa4
Fixed in 996c24377eea4d4506b7c3ccbbf1e490440b5e0b, 1395327a96614885552bae5fbb650e6dd182d49b, c1078130a4cd7e738f4b73afe99b3e68cbfbf884, 70d28bfcd6224eed75986b3b987b997e59643fa4
- 6.12
Fixed in 0, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to 996c24377eea4d4506b7c3ccbbf1e490440b5e0b or 1395327a96614885552bae5fbb650e6dd182d49b or c1078130a4cd7e738f4b73afe99b3e68cbfbf884 or 70d28bfcd6224eed75986b3b987b997e59643fa4 or later.
Upgrade Linux to 0 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.