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

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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().

ProductVersions
Linux Linuxe94fdbd7b25d87e64688bb109e2c550217a4c879 to before e5e75bdff6b152b5c9c5f749ab0c9d54d1c2eb53 Affectede94fdbd7b25d87e64688bb109e2c550217a4c879 to before cc27f8fcf2189471008f427df50a2023e874326f Affectede94fdbd7b25d87e64688bb109e2c550217a4c879 to before 4d94838df883a4719b977ad77ff975b1279ebb91 Affectede94fdbd7b25d87e64688bb109e2c550217a4c879 to before 01e055fb891fc8520763fa87d8d07e04efedabb8 Affectede94fdbd7b25d87e64688bb109e2c550217a4c879 to before 08f87d507bbc59e099ac3620c4c73109b9e2b0dc Affectede94fdbd7b25d87e64688bb109e2c550217a4c879 to before a6913835735469751f56473f5212eb291a4805e7 Affected
Linux Linux5.14 Affectedbefore 5.14 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

Weaknesses

The record names no weakness.

References

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.