CVE-2026-46090 PUBLISHED

ALSA: aloop: Fix peer runtime UAF during format-change stop

Assigner: Linux
Reserved: 13.05.2026 Published: 27.05.2026 Updated: 27.05.2026

In the Linux kernel, the following vulnerability has been resolved:

ALSA: aloop: Fix peer runtime UAF during format-change stop

loopback_check_format() may stop the capture side when playback starts with parameters that no longer match a running capture stream. Commit 826af7fa62e3 ("ALSA: aloop: Fix racy access at PCM trigger") moved the peer lookup under cable->lock, but the actual snd_pcm_stop() still runs after dropping that lock.

A concurrent close can clear the capture entry from cable->streams[] and detach or free its runtime while the playback trigger path still holds a stale peer substream pointer.

Keep a per-cable count of in-flight peer stops before dropping cable->lock, and make free_cable() wait for those stops before detaching the runtime. This preserves the existing behavior while making the peer runtime lifetime explicit.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 597603d615d2b19a9e451d8cfac24372856a522d to 03f52a9c170431e8f10e156b9dc0dae80b3e9198 (excl.)
  • affected from 597603d615d2b19a9e451d8cfac24372856a522d to bdd9503c3d222d2735b56c7a8b4422ccf3de6e5c (excl.)
  • affected from 597603d615d2b19a9e451d8cfac24372856a522d to 5d45e34bf001344e2966dabca1897561bbc9e913 (excl.)
  • affected from 597603d615d2b19a9e451d8cfac24372856a522d to e5c33cdc6f402eab8abd36ecf436b22c9d3a8aff (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 2.6.37 is affected
  • unaffected from 0 to 2.6.37 (excl.)
  • unaffected from 6.12.88 to 6.12.* (incl.)
  • unaffected from 6.18.27 to 6.18.* (incl.)
  • unaffected from 7.0.4 to 7.0.* (incl.)
  • unaffected from 7.1-rc2 to * (incl.)

References