{"id":"CVE-2026-139284","state":"PUBLISHED","title":"ALSA: pcm: Protect the unregister notifier traversal","description":"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.","publishedAt":"2026-11-30T13:33:19.882Z","updatedAt":"2026-11-30T13:33:19.882Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"318fc5607b5292b4f992a918a738024af036b8aa","versionType":"git"},{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"004b92595e5cd2ff4b7d338807faaead22684ce8","versionType":"git"},{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"3f93e4a7e66077b95bd26902d636feadf0feaa05","versionType":"git"},{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"1e6431d4d9bc8b85636673dfe3a118ef0142b9d5","versionType":"git"},{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"707420fcb2cc6b759bc425c1da62a1cfdc5345f3","versionType":"git"},{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"c4149fef114f2f88d31a903b67525cf9c07c5e22","versionType":"git"},{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"680be9f82d4977d3410c513d3bfe912d100f64fc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/core/pcm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/core/pcm.c"]}],"references":["https://git.kernel.org/stable/c/318fc5607b5292b4f992a918a738024af036b8aa","https://git.kernel.org/stable/c/004b92595e5cd2ff4b7d338807faaead22684ce8","https://git.kernel.org/stable/c/3f93e4a7e66077b95bd26902d636feadf0feaa05","https://git.kernel.org/stable/c/1e6431d4d9bc8b85636673dfe3a118ef0142b9d5","https://git.kernel.org/stable/c/707420fcb2cc6b759bc425c1da62a1cfdc5345f3","https://git.kernel.org/stable/c/c4149fef114f2f88d31a903b67525cf9c07c5e22","https://git.kernel.org/stable/c/680be9f82d4977d3410c513d3bfe912d100f64fc"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139284.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139284","state":"PUBLISHED","datePublished":"2026-11-30T13:33:19.882Z","dateUpdated":"2026-11-30T13:33:19.882Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.924Z"},"containers":{"cna":{"title":"ALSA: pcm: Protect the unregister notifier traversal","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"318fc5607b5292b4f992a918a738024af036b8aa","versionType":"git"},{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"004b92595e5cd2ff4b7d338807faaead22684ce8","versionType":"git"},{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"3f93e4a7e66077b95bd26902d636feadf0feaa05","versionType":"git"},{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"1e6431d4d9bc8b85636673dfe3a118ef0142b9d5","versionType":"git"},{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"707420fcb2cc6b759bc425c1da62a1cfdc5345f3","versionType":"git"},{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"c4149fef114f2f88d31a903b67525cf9c07c5e22","versionType":"git"},{"version":"c461482c8072bb073e6146db320d3da85cdc89ad","status":"affected","lessThan":"680be9f82d4977d3410c513d3bfe912d100f64fc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/core/pcm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/core/pcm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/318fc5607b5292b4f992a918a738024af036b8aa"},{"url":"https://git.kernel.org/stable/c/004b92595e5cd2ff4b7d338807faaead22684ce8"},{"url":"https://git.kernel.org/stable/c/3f93e4a7e66077b95bd26902d636feadf0feaa05"},{"url":"https://git.kernel.org/stable/c/1e6431d4d9bc8b85636673dfe3a118ef0142b9d5"},{"url":"https://git.kernel.org/stable/c/707420fcb2cc6b759bc425c1da62a1cfdc5345f3"},{"url":"https://git.kernel.org/stable/c/c4149fef114f2f88d31a903b67525cf9c07c5e22"},{"url":"https://git.kernel.org/stable/c/680be9f82d4977d3410c513d3bfe912d100f64fc"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:19.882Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}