Linux
ALSA: timer: Forcibly close timer instances at closing
In the Linux kernel, the following vulnerability has been resolved: ALSA: timer: Forcibly close timer instances at closing When snd_timer object is freed via snd_timer_free() and still pending snd_timer_instance objects are assigned to the timer object, it tries to unlink all instances and just set NULL to each ti->timer, then releases the resources immediately. The problem is, however, when there are slave timer instances that are associated with a master instance linked to this timer: namely, those slave instances still point to the freed timer object although the master instance is unlinked, which may lead to user-after-free. The bug can be easily triggered particularly when a new userspace-driven timers (CONFIG_SND_UTIMER) is involved, since it can create and delete the timer object via a simple file open/close, while the other applications may keep accessing to that timer. This patch is an attempt to paper over the problem above: now instead of just unlinking, call snd_timer_close[_locked]() forcibly for each pending timer instance, so that all assigned slave timer instances are properly detached, too. Since snd_timer_close() might be called later by the driver that created that instance, the check of SNDRV_TIMER_IFLG_DEAD is added at the beginning, too.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 586b219a22b1032b28b8bd356b963276c5e5bf53
- >= 37745918e0e7575bc40f38da93a99b9fa6406224, < f46093dd22969037beb1fce2e043f3236be41c92
- >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 60e73ab87b84bbd6bd7ddd1d16019a3a3705ab8f
- >= 37745918e0e7575bc40f38da93a99b9fa6406224, < da3039e91d1f835874ed6e9a33ea19ee80c2cb92
Fixed in 586b219a22b1032b28b8bd356b963276c5e5bf53, f46093dd22969037beb1fce2e043f3236be41c92, 60e73ab87b84bbd6bd7ddd1d16019a3a3705ab8f, da3039e91d1f835874ed6e9a33ea19ee80c2cb92
- 6.12
Fixed in 0, 6.12.94, 6.18.36, 7.0.13, 7.1
Mitigation
Upgrade Linux to 586b219a22b1032b28b8bd356b963276c5e5bf53 or f46093dd22969037beb1fce2e043f3236be41c92 or 60e73ab87b84bbd6bd7ddd1d16019a3a3705ab8f or da3039e91d1f835874ed6e9a33ea19ee80c2cb92 or later.
Upgrade Linux to 0 or 6.12.94 or 6.18.36 or 7.0.13 or 7.1 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.