CVE-2025-40142
Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
12/11/2025
Última modificación:
12/11/2025
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
ALSA: pcm: Disable bottom softirqs as part of spin_lock_irq() on PREEMPT_RT<br />
<br />
snd_pcm_group_lock_irq() acquires a spinlock_t and disables interrupts<br />
via spin_lock_irq(). This also implicitly disables the handling of<br />
softirqs such as TIMER_SOFTIRQ.<br />
On PREEMPT_RT softirqs are preemptible and spin_lock_irq() does not<br />
disable them. That means a timer can be invoked during spin_lock_irq()<br />
on the same CPU. Due to synchronisations reasons local_bh_disable() has<br />
a per-CPU lock named softirq_ctrl.lock which synchronizes individual<br />
softirq against each other.<br />
syz-bot managed to trigger a lockdep report where softirq_ctrl.lock is<br />
acquired in hrtimer_cancel() in addition to hrtimer_run_softirq(). This<br />
is a possible deadlock.<br />
<br />
The softirq_ctrl.lock can not be made part of spin_lock_irq() as this<br />
would lead to too much synchronisation against individual threads on the<br />
system. To avoid the possible deadlock, softirqs must be manually<br />
disabled before the lock is acquired.<br />
<br />
Disable softirqs before the lock is acquired on PREEMPT_RT.



