EnvMap GitHub

CVE-2026-143435

ALSA: pcm: Protect channel-map reads against runtime detach

Not scored yetReceived

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: pcm: Protect channel-map reads against runtime detach Channel-map controls remain accessible between PCM opens. In-tree HDA code publishes the generic controls through add_std_chmaps(), so a SNDRV_CTL_IOCTL_ELEM_READ can overlap the final close of the same PCM substream. pcm_chmap_ctl_get() checks substream->runtime and later reads its channel count. Final close clears and frees that runtime under pcm->open_mutex, while the control callback holds only controls_rwsem: Control GET Final PCM close ----------- --------------- snd_ctl_elem_read() down_read(controls_rwsem) pcm_chmap_ctl_get() check substream->runtime lock(pcm->open_mutex) snd_pcm_release_substream() snd_pcm_detach_substream() substream->runtime = NULL kfree(runtime) unlock(pcm->open_mutex) substream->runtime->channels NULL or freed-pointer access up_read(controls_rwsem) Reloading the cleared field can fault through NULL, while retaining the old pointer can access freed storage. controls_rwsem keeps the control alive, but does not serialize the matching PCM close. Copy the channel count under open_mutex and use that scalar for the map lookup. Use trylock with -EBUSY because snd_pcm_dev_disconnect() takes open_mutex before removing controls under controls_rwsem; blocking in the reverse order from GET could deadlock.

In the words of the organisation that published it (Linux).

Affected

  • Linux: from 2d3391ec0ecca37efb6bc995906292f47522b471 before f65e2c6c159b8d8a3235b7573d4; from 2d3391ec0ecca37efb6bc995906292f47522b471 before 69518e80c154952ce30b19c57c9; from 2d3391ec0ecca37efb6bc995906292f47522b471 before 9b06541e4c36ee67cf909965e40; from 2d3391ec0ecca37efb6bc995906292f47522b471 before 639fa18439ad62566c5f34230a9; 3.7

as the publisher (Linux) lists them.

References

Record

Published03:19 UTC, 5 December 2026
Last changed03:19 UTC, 5 December 2026
NVD statusReceived
Published byLinux

CVE-2026-143435 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.