CVE-2025-40142
BaseFortify
Publication date: 2025-11-12
Last updated on: 2025-11-12
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability involves the Linux kernel's ALSA pcm component where the function snd_pcm_group_lock_irq() uses spin_lock_irq() to acquire a spinlock and disable interrupts. However, on PREEMPT_RT (a real-time kernel variant), softirqs remain preemptible and are not disabled by spin_lock_irq(), allowing timers to run during the lock on the same CPU. This leads to a potential deadlock involving the softirq_ctrl.lock, which synchronizes softirqs. The vulnerability arises because softirq_ctrl.lock can be acquired in conflicting contexts, causing a deadlock. The fix is to manually disable softirqs before acquiring the lock on PREEMPT_RT to prevent this deadlock.
How can this vulnerability impact me? :
This vulnerability can cause a deadlock in the Linux kernel on systems using PREEMPT_RT, potentially leading to system hangs or degraded performance. Such deadlocks can affect system stability and responsiveness, especially in real-time environments relying on PREEMPT_RT patches.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, update the Linux kernel to a version where the ALSA pcm component disables bottom softirqs as part of spin_lock_irq() on PREEMPT_RT. This ensures that softirqs are manually disabled before acquiring the lock, preventing possible deadlocks. Applying the vendor's patch or kernel update that addresses this issue is recommended.