{"id":"CVE-2026-139284","summary":"ALSA: pcm: Protect the unregister notifier traversal","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: Protect the unregister notifier traversal\n\nsnd_pcm_free() traverses snd_pcm_notify_list and calls n_unregister\nwithout register_mutex, although snd_pcm_notify() takes that mutex to\nadd and remove notifiers. PCM disconnect releases the mutex before the\nfree callback runs, so it does not protect this later traversal.\n\nWith no open OSS file, normal snd-pcm-oss removal can overlap PCM card\nteardown, for example when unbinding snd-dummy:\n\n  PCM card teardown                     snd-pcm-oss unload\n  -----------------                     ------------------\n  snd_pcm_dev_disconnect()\n    remove PCM under register_mutex\n    unlock register_mutex\n  snd_pcm_free()\n    fetch notifier\n                                        snd_pcm_notify(..., 1)\n                                          unlink notifier under mutex\n                                        free module storage\n    read notifier-\u003en_unregister\n    invoke callback\n\nThe free path can then read the notifier from released module storage\nor call its unloaded code.\n\nHold register_mutex across the unregister traversal and its callbacks.\nNotifier removal must wait until both have finished. This also protects\nthe traversal if a callback releases the last module reference: module\nexit cannot unlink its notifier until the free path releases the mutex.\nDrop the mutex before private_free and the remaining stream cleanup.","modified":"2026-11-30T15:01:17.794138255Z","published":"2026-11-30T13:33:19.882Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139284.json"},"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/004b92595e5cd2ff4b7d338807faaead22684ce8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1e6431d4d9bc8b85636673dfe3a118ef0142b9d5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/318fc5607b5292b4f992a918a738024af036b8aa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3f93e4a7e66077b95bd26902d636feadf0feaa05"},{"type":"WEB","url":"https://git.kernel.org/stable/c/680be9f82d4977d3410c513d3bfe912d100f64fc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/707420fcb2cc6b759bc425c1da62a1cfdc5345f3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c4149fef114f2f88d31a903b67525cf9c07c5e22"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139284.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139284"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c461482c8072bb073e6146db320d3da85cdc89ad"},{"fixed":"318fc5607b5292b4f992a918a738024af036b8aa"},{"fixed":"004b92595e5cd2ff4b7d338807faaead22684ce8"},{"fixed":"3f93e4a7e66077b95bd26902d636feadf0feaa05"},{"fixed":"1e6431d4d9bc8b85636673dfe3a118ef0142b9d5"},{"fixed":"707420fcb2cc6b759bc425c1da62a1cfdc5345f3"},{"fixed":"c4149fef114f2f88d31a903b67525cf9c07c5e22"},{"fixed":"680be9f82d4977d3410c513d3bfe912d100f64fc"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139284.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.19"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.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-139284.json"}}],"schema_version":"1.9.2"}