{"id":"CVE-2026-139284","aliases":["CVE-2026-139284"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: pcm: Protect the unregister notifier traversal","summary":"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->n_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->n_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.","source":"cvelist"}],"published":"2026-11-30T13:33:19.882Z","modified":"2026-11-30T14:18:51.937Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c461482c8072bb073e6146db320d3da85cdc89ad","fixed":"318fc5607b5292b4f992a918a738024af036b8aa","status":"affected"},{"type":"git","introduced":"c461482c8072bb073e6146db320d3da85cdc89ad","fixed":"004b92595e5cd2ff4b7d338807faaead22684ce8","status":"affected"},{"type":"git","introduced":"c461482c8072bb073e6146db320d3da85cdc89ad","fixed":"3f93e4a7e66077b95bd26902d636feadf0feaa05","status":"affected"},{"type":"git","introduced":"c461482c8072bb073e6146db320d3da85cdc89ad","fixed":"1e6431d4d9bc8b85636673dfe3a118ef0142b9d5","status":"affected"},{"type":"git","introduced":"c461482c8072bb073e6146db320d3da85cdc89ad","fixed":"707420fcb2cc6b759bc425c1da62a1cfdc5345f3","status":"affected"},{"type":"git","introduced":"c461482c8072bb073e6146db320d3da85cdc89ad","fixed":"c4149fef114f2f88d31a903b67525cf9c07c5e22","status":"affected"},{"type":"git","introduced":"c461482c8072bb073e6146db320d3da85cdc89ad","fixed":"680be9f82d4977d3410c513d3bfe912d100f64fc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.19","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/318fc5607b5292b4f992a918a738024af036b8aa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/004b92595e5cd2ff4b7d338807faaead22684ce8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f93e4a7e66077b95bd26902d636feadf0feaa05","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1e6431d4d9bc8b85636673dfe3a118ef0142b9d5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/707420fcb2cc6b759bc425c1da62a1cfdc5345f3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c4149fef114f2f88d31a903b67525cf9c07c5e22","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/680be9f82d4977d3410c513d3bfe912d100f64fc","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139284","url":"https://www.cve.org/CVERecord?id=CVE-2026-139284","licence":"CVE Terms of Use","modified":"2026-11-30T13:33:19.882Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139284","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139284","licence":"Public domain","modified":"2026-11-30T14:18:51.937Z"}],"updatedAt":"2026-11-30T14:33:05.050Z","epss":{"score":0.00206,"percentile":0.1128,"date":"2026-12-01T12:00:22.000Z"}}