CVE-2026-139277: ALSA: pcm: Remove channel-map controls before freeing substreams

Published Nov 30, 2026
·
Updated

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

ALSA: pcm: Remove channel-map controls before freeing substreams

A late HDA codec bind on an already registered card builds new PCMs before registering them. addstdchmaps() publishes generic channel-map controls during this BUILD stage. If an earlier chmap succeeds and a later allocation fails, probe cleanup frees the BUILD PCM while the card's control device remains accessible.

These generic controls are added directly by sndpcmaddchmapctls(); sndhdactlsclear() only removes codec-tracked mixer controls. BUILD devices also skip devdisconnect. sndpcmfreestream() then frees the substreams before freechmap() withdraws their generic control:

Late HDA codec bind / rollback Control GET on the live card ------------------------------ ---------------------------- hdacodecdriverprobe() sndhdacodecbuildpcms() PCM is BUILD sndhdacodecbuildcontrols() addstdchmaps() publish an earlier chmap later allocation: -ENOMEM sndhdacodeccleanupforunbind() sndhdactlsclear() generic chmap remains codecreleasepcms() snddevicefree() BUILD: skip devdisconnect sndpcmfreestream() kfree(substream) sndctlelemread() downread(controlsrwsem) pcmchmapctlget() walk freed substream freechmap() sndctlremove() wait for GET upread(controlsrwsem)

The control read lock cannot protect a substream already freed before control removal starts. The failure above occurs before sndcardregister(), so the PCM has not transitioned out of BUILD.

Move freechmap() before the substream free loop. Its sndctlremove() withdraws the control and drains readers under controlsrwsem before any substream is released. Normal registered-device disconnect already removes the control, so the later call remains harmless on that path.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In snd_pcm_free_stream(), call free_chmap() before the loop that frees substreams, so generic channel-map controls are withdrawn before their substreams are released.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:33 PM
Data Sourced
via MITRE·01:33 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203