{"id":"CVE-2026-143435","summary":"ALSA: pcm: Protect channel-map reads against runtime detach","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: Protect channel-map reads against runtime detach\n\nChannel-map controls remain accessible between PCM opens. In-tree HDA\ncode publishes the generic controls through add_std_chmaps(), so a\nSNDRV_CTL_IOCTL_ELEM_READ can overlap the final close of the same PCM\nsubstream.\n\npcm_chmap_ctl_get() checks substream-\u003eruntime and later reads its channel\ncount. Final close clears and frees that runtime under pcm-\u003eopen_mutex,\nwhile the control callback holds only controls_rwsem:\n\n  Control GET                         Final PCM close\n  -----------                         ---------------\n  snd_ctl_elem_read()\n    down_read(controls_rwsem)\n    pcm_chmap_ctl_get()\n      check substream-\u003eruntime\n                                      lock(pcm-\u003eopen_mutex)\n                                      snd_pcm_release_substream()\n                                        snd_pcm_detach_substream()\n                                          substream-\u003eruntime = NULL\n                                          kfree(runtime)\n                                      unlock(pcm-\u003eopen_mutex)\n      substream-\u003eruntime-\u003echannels\n        NULL or freed-pointer access\n    up_read(controls_rwsem)\n\nReloading the cleared field can fault through NULL, while retaining the\nold pointer can access freed storage. controls_rwsem keeps the control\nalive, but does not serialize the matching PCM close.\n\nCopy the channel count under open_mutex and use that scalar for the map\nlookup. Use trylock with -EBUSY because snd_pcm_dev_disconnect() takes\nopen_mutex before removing controls under controls_rwsem; blocking in\nthe reverse order from GET could deadlock.","modified":"2026-12-05T03:01:06.325300409Z","published":"2026-12-05T01:41:15.317Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143435.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2762cb36378cf162521cb6fcd073d1c39b3ffecd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/639fa18439ad62566c5f34230a91c4802b1fa26f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/69518e80c154952ce30b19c57c9a89754c4eee6a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b06541e4c36ee67cf909965e40ed654fd8d7ddf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bb4834d5242c4829c0d8467ee68eb25a9bafc38d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f65e2c6c159b8d8a3235b7573d4bc176e5ee0d18"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143435.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143435"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2d3391ec0ecca37efb6bc995906292f47522b471"},{"fixed":"f65e2c6c159b8d8a3235b7573d4bc176e5ee0d18"},{"fixed":"69518e80c154952ce30b19c57c9a89754c4eee6a"},{"fixed":"9b06541e4c36ee67cf909965e40ed654fd8d7ddf"},{"fixed":"639fa18439ad62566c5f34230a91c4802b1fa26f"},{"fixed":"2762cb36378cf162521cb6fcd073d1c39b3ffecd"},{"fixed":"bb4834d5242c4829c0d8467ee68eb25a9bafc38d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143435.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.7.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143435.json"}}],"schema_version":"1.9.2"}