CVE-2026-139351: ALSA: core: Serialize snd_refcount put and sync

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ALSA: core: Serialize sndrefcount put and sync

When a thread tries to sync-and-destroy the resource with sndrefcountsync(), it might lead to a UAF in a very slight time window. Namely, sndrefountput() calls wakeup() after atomicdecandtest(), but waitevent() in sndrefcountsync() checks the condition via atomictest() without serialization, hence the thread that called sndrefcountsync() can continue immediately to release the resource before another thread calls wakeup().

For avoiding the race above, introduce the spinlock and take it at sndrefcountput() and sndrefcountsync() in order to serialize the operations.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Introduce a spinlock and use it in snd_refcount_put() and snd_refcount_sync() to serialize their operations.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:33 PM
Data Sourced
via MITRE·01:33 PM
Description
Data Sourced
via NVD·02:19 PM
Description

Frequently Asked Questions

1

What conditions are required for this race to occur?

The issue requires concurrent activity: one thread must call snd_refcount_sync() to synchronize and destroy a resource while another thread performs snd_refcount_put(). The use-after-free is possible only in the narrow window caused by the lack of serialization between the reference-count check and wake-up.

2

What does the fix change?

The fix adds a spinlock and acquires it in both snd_refcount_put() and snd_refcount_sync(). This serializes the put and sync operations so that a resource cannot be released before the concurrent reference-count operation is properly synchronized.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203