CVE-2026-139284

ALSA: pcm: Protect the unregister notifier traversal

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

In the ALSA subsystem of the Linux kernel, the snd_pcm_free routine walks a notifier list while the register mutex is released, because the notifier list is normally protected only during registration. If a PCM card is torn down while a notifier is being unregistered or the module providing the notifier is unloaded, the traversal can read freed module data or execute code from the unloaded module. This race can cause a kernel crash or potentially allow privilege escalation if an attacker can force the unload of malicious modules.

Affected Systems

Linux kernel servers or workstations that have not yet incorporated the commit that serialises the unregister traversal and its callbacks with the register_mutex. The vulnerability exists in the ALSA PCM code path before the patch that protects the notifier traversal is applied. Any kernel release prior to the inclusion of the fix is potentially affected.

Risk and Exploitability

No EPSS score is available and the vulnerability is not listed in CISA’s KEV catalog. The CVSS score is not provided, but the use‑after‑free of kernel metadata that can lead to a crash renders the issue severe. Exploitability requires privileged access to load or unload kernel modules, and the attacker would need to trigger the race condition during PCM teardown by unloading the snd‑dummy module or similar. Once triggered, the system would experience denial of service or may fall into a malicious state if the attacker can control the unloaded module’s code.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the patch protecting the notifier traversal in snd_pcm_free
  • If an upgrade is not possible, avoid unloading ALSA modules such as snd‑dummy while PCM devices are active; coordinate module unloads with PCM teardown sequences
  • Apply any forthcoming kernel releases that address the race condition, and monitor kernel logs for unexpected unregister callbacks to detect potential exploitation

Generated by OpenCVE AI on November 30, 2026 at 21:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
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.
Title ALSA: pcm: Protect the unregister notifier traversal
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM