ALSA: aloop: fix trigger/close UAFs
Status from this message: Queued for 6.1, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ALSA: aloop: Fix racy access at PCM triggersound/ | +34 | 0 replies | |
| 2/2 | ALSA: aloop: Fix peer runtime UAF during format-change stopsound/ | +30 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 6.1.y 0/2] ALSA: aloop: fix trigger/close UAFs
Backport the two ordered aloop fixes for the trigger/close peer-runtime races. Both carry Cc: stable and each fixes a separate syzbot-reported UAF, but neither reached this tree.
826af7fa62e3 ("ALSA: aloop: Fix racy access at PCM trigger") covers the peer lookup and state checks with cable->lock. e5c33cdc6f40 ("ALSA:
aloop: Fix peer runtime UAF during format-change stop") pins an in-flight peer stop across snd_pcm_stop(), which still runs after that lock is dropped, so it applies only on top of the first.
The failed-apply report for this branch named only the second fix.
The series applies to v6.1.186 and v6.1.187-rc1. Patch 1 omits access-mode support absent from this tree; patch 2 matches the 6.12.y backport by patch-id. The identical 6.6.y backport is submitted separately. 6.12.y and newer already contain both fixes.
KASAN/QEMU functional A/B tests passed: 4096 captured frames matched byte-for-byte; control notifications, mismatch handling, and 32 open/close iterations passed; no KASAN, Oops, or WARNING was reported. As upstream, a prepared-but-idle capture remains PREPARED when mismatched playback starts instead of being forced to DRAINING.
Cássio Gabriel (1):
ALSA: aloop: Fix peer runtime UAF during format-change stop
Takashi Iwai (1):
ALSA: aloop: Fix racy access at PCM trigger
sound/drivers/aloop.c | 98 +++++++++++++++++++++++++++---------------- 1 file changed, 62 insertions(+), 36 deletions(-)
Signature · 1 line
2.53.0