AZL-117001: CVE-2026-139273 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ALSA: aloop: Keep shared timer callbacks alive through close
The shared sound-timer callback must finish using the selected PCM runtimes before a close can detach them. loopbacksndtimerperiodelapsed() saves the active substreams under cable->lock, then drops the lock before calling sndpcmperiodelapsed() or sndpcmstopxrun(). The sound-timer backend has no per-stream close drain, and freecable() keeps the timer open when the paired endpoint remains attached.
With both directions running on a shared sound timer, playback can be dropped and closed while a notification is pending. Capture keeps the timer alive, allowing this order:
Timer callback Playback owner -------------- -------------- select playback under cable->lock unlock; delay notification DROP; HWFREE -> OPEN close: sndpcmdrop(); unlock freecable(); peer stays alive sndpcmperiodelapsed() lock stream; cache runtime sndpcmdetachsubstream() free runtime and its fasync read runtime->fasync
The stream lock taken by sndpcmdrop() cannot protect a notification that starts after it returns, and detach does not take it. The callback can therefore read runtime->fasync after the runtime has been freed, and an escaped notification can also reach a replacement runtime if the same substream slot is reopened before the notification resumes.
Take the existing cable->stopcount reference under cable->lock when selecting the targets and release it after the PCM callbacks finish, including the XRUN path. freecable() already removes the closing endpoint under that lock and waits for stopcount before returning, so runtime detach and slot reuse cannot overtake the notification.
Affected Software
Event History
Frequently Asked Questions
Which systems are potentially exposed to this issue?
Systems using the Azure Linux kernel package version 6.6.161.1-1 are identified as affected. The vulnerable path involves the ALSA loopback driver and its shared sound timer.
What runtime conditions are needed to trigger the race?
Both loopback directions must be running on a shared sound timer. A playback stream must be dropped and closed while a timer notification is pending, while the paired capture endpoint remains attached and keeps the timer alive.
Why does keeping the paired endpoint open matter?
The paired capture endpoint can keep the shared timer active after playback has been closed. This allows a delayed timer callback to access the playback runtime after the runtime has been detached and freed.