CVE-2026-139478

ALSA: core: Add missing barriers for power_ref vs card->shutdown

Published Nov 30, 2026 CVSS 3.1 · 4.7 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ALSA: core: Add missing barriers for power_ref vs card->shutdown

snd_power_ref_and_wait() increments card->power_ref and then reads
card->shutdown (and the power state) locklessly, while
snd_card_disconnect() sets card->shutdown and then waits for
power_ref to drop to zero via snd_power_sync_ref(). Due to the
missing barrier on both sides, the caller proceeds with shutdown still
seen as false, while the disconnect side sees a zero refcount and
continues tearing down incorrectly.

For addressing the potential race, add smp_mb__after_atomic() after
the refcount increment and smp_mb() before snd_power_sync_ref() in
snd_card_disconnect().

Analysis

AI-generated

Technical impact

The Linux kernel's ALSA subsystem contains a race between power reference updates and card shutdown handling. snd_power_ref_and_wait() increments a power reference count without a memory barrier, then reads the card shutdown flag. Meanwhile snd_card_disconnect() sets the shutdown flag and waits for the reference count to drop to zero. Because no synchronizing barriers are present on either side, a thread may observe an inconsistent view, allowing shutdown to proceed while the disconnect routine believes the reference count is zero, leading to an improper teardown. The resulting race can produce kernel instability or a crash, effectively a denial of service.

Affected Systems

All Linux kernel implementations that include the ALSA core module are impacted. No specific version numbers are listed, meaning that every kernel build containing the vulnerable ALSA code prior to the fix is susceptible. Systems running recent standard Linux distributions should review their kernel package for the applied ALSA patch.

Risk and Exploitability

No EPSS data is available and the vulnerability is not listed in KEV, so current exploitation probability is unknown. The flaw requires a local attacker with access to audio device drivers or the ability to trigger ALSA disconnect events, which is typically limited to privileged users or processes. The missing synchronization could, however, allow a privileged attacker to force the kernel to crash or experience a denial of service, compromising system availability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a kernel version containing the ALSA power_ref barrier fix that adds memory barriers on both sides of the critical code paths.
  • If an immediate kernel update is not possible, disable unused ALSA sound drivers on systems where audio is not required to reduce the attack surface.
  • Monitor system logs for abnormal ALSA disconnection or driver unload events and verify system stability after any related updates.

Generated by OpenCVE AI on December 1, 2026 at 12:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-821
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ALSA: core: Add missing barriers for power_ref vs card->shutdown snd_power_ref_and_wait() increments card->power_ref and then reads card->shutdown (and the power state) locklessly, while snd_card_disconnect() sets card->shutdown and then waits for power_ref to drop to zero via snd_power_sync_ref(). Due to the missing barrier on both sides, the caller proceeds with shutdown still seen as false, while the disconnect side sees a zero refcount and continues tearing down incorrectly. For addressing the potential race, add smp_mb__after_atomic() after the refcount increment and smp_mb() before snd_power_sync_ref() in snd_card_disconnect().
Title ALSA: core: Add missing barriers for power_ref vs card->shutdown
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-821

    Incorrect Synchronization

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:35 PM