CVE-2025-40142: ALSA: pcm: Disable bottom softirqs as part of spin_lock_irq() on PREEMPT_RT

Published Nov 12, 2025
·
Updated

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

ALSA: pcm: Disable bottom softirqs as part of spinlockirq() on PREEMPTRT

sndpcmgrouplockirq() acquires a spinlockt and disables interrupts via spinlockirq(). This also implicitly disables the handling of softirqs such as TIMERSOFTIRQ. On PREEMPTRT softirqs are preemptible and spinlockirq() does not disable them. That means a timer can be invoked during spinlockirq() on the same CPU. Due to synchronisations reasons localbhdisable() has a per-CPU lock named softirqctrl.lock which synchronizes individual softirq against each other. syz-bot managed to trigger a lockdep report where softirqctrl.lock is acquired in hrtimercancel() in addition to hrtimerrunsoftirq(). This is a possible deadlock.

The softirqctrl.lock can not be made part of spinlockirq() as this would lead to too much synchronisation against individual threads on the system. To avoid the possible deadlock, softirqs must be manually disabled before the lock is acquired.

Disable softirqs before the lock is acquired on PREEMPTRT.

Affected Software

1 affected component
Linux Linux kernel (ALSA pcm)

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    On PREEMPT_RT, manually disable softirqs before acquiring the lock in snd_pcm_group_lock_irq() to prevent softirqs such as TIMER_SOFTIRQ from running during spin_lock_irq() and avoid the deadlock.

Event History

Nov 12, 2025
CVE Published
via MITRE·10:23 AM
Data Sourced
via MITRE·10:23 AM
Description
Data Sourced
via NVD·11:15 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2025-40142?

CVE-2025-40142 has been categorized with a medium severity due to its impact on the proper functioning of ALSA in the Linux kernel.

2

How do I fix CVE-2025-40142?

To fix CVE-2025-40142, update to the latest version of the Linux kernel that contains the patch for this vulnerability.

3

Which versions of the Linux kernel are affected by CVE-2025-40142?

CVE-2025-40142 affects multiple versions of the Linux kernel prior to the release that includes the mitigation.

4

What components of the Linux kernel are impacted by CVE-2025-40142?

CVE-2025-40142 impacts the ALSA PCM subsystem related to softirqs and spinlocks.

5

Is CVE-2025-40142 exploited in the wild?

As of now, there are no public reports indicating that CVE-2025-40142 is actively exploited in the wild.

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