ALSA: pcm: Protect the unregister notifier traversal
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
ALSA: pcm: Protect the unregister notifier traversal
snd_pcm_free() traverses snd_pcm_notify_list and calls n_unregister without register_mutex, although snd_pcm_notify() takes that mutex to add and remove notifiers. PCM disconnect releases the mutex before the free callback runs, so it does not protect this later traversal.
With no open OSS file, normal snd-pcm-oss removal can overlap PCM card teardown, for example when unbinding snd-dummy:
PCM card teardown snd-pcm-oss unload ----------------- ------------------ snd_pcm_dev_disconnect() remove PCM under register_mutex unlock register_mutex snd_pcm_free() fetch notifier snd_pcm_notify(..., 1) unlink notifier under mutex free module storage read notifier->n_unregister invoke callback
The free path can then read the notifier from released module storage or call its unloaded code.
Hold register_mutex across the unregister traversal and its callbacks. Notifier removal must wait until both have finished. This also protects the traversal if a callback releases the last module reference: module exit cannot unlink its notifier until the free path releases the mutex. Drop the mutex before private_free and the remaining stream cleanup.
| Product | Versions |
|---|---|
| Linux Linux | c461482c8072bb073e6146db320d3da85cdc89ad to before 318fc5607b5292b4f992a918a738024af036b8aa Affectedc461482c8072bb073e6146db320d3da85cdc89ad to before 004b92595e5cd2ff4b7d338807faaead22684ce8 Affectedc461482c8072bb073e6146db320d3da85cdc89ad to before 3f93e4a7e66077b95bd26902d636feadf0feaa05 Affectedc461482c8072bb073e6146db320d3da85cdc89ad to before 1e6431d4d9bc8b85636673dfe3a118ef0142b9d5 Affectedc461482c8072bb073e6146db320d3da85cdc89ad to before 707420fcb2cc6b759bc425c1da62a1cfdc5345f3 Affectedc461482c8072bb073e6146db320d3da85cdc89ad to before c4149fef114f2f88d31a903b67525cf9c07c5e22 Affectedc461482c8072bb073e6146db320d3da85cdc89ad to before 680be9f82d4977d3410c513d3bfe912d100f64fc Affected |
| Linux Linux | 2.6.19 Affectedbefore 2.6.19 Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
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
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.