В ядре Linux устранена следующая уязвимость:
ASoC: fsl_xcvr: вернуть исправление отсутствующей блокировки в fsl_xcvr_mode_put(). Это отменяет фиксацию f51424872760 («ASoC: fsl_xcvr: исправить отсутствующую блокировку в fsl_xcvr_mode_put()»). Исходный патч пытался получить блокировку card->controls_rwsem.
fsl_xcvr_mode_put().
Однако эта функция вызывается из верхнего уровня ALSA.
базовая функция snd_ctl_elem_write(), которая уже удерживает блокировку записи
control_rwsem для всей операции put. Поэтому нет необходимости просто
снова удерживайте блокировку для fsl_xcvr_activate_ctl(). Получение блокировки чтения при сохранении блокировки записи в том же потоке
приводит к тупику и зависанию задачи, как сообщил Александр Штейн.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ASoC: fsl_xcvr: Revert fix missing lock in fsl_xcvr_mode_put() This reverts commit f51424872760 ("ASoC: fsl_xcvr: fix missing lock in fsl_xcvr_mode_put()"). The original patch attempted to acquire the card->controls_rwsem lock in fsl_xcvr_mode_put(). However, this function is called from the upper ALSA core function snd_ctl_elem_write(), which already holds the write lock on controls_rwsem for the whole put operation. So there is no need to simply hold the lock for fsl_xcvr_activate_ctl() again. Acquiring the read lock while holding the write lock in the same thread results in a deadlock and a hung task, as reported by Alexander Stein.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19.1
|
6.19.4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.15.201:*:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1.164:*:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.6.127:*:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.12.74:*:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.18.13:*:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:-:*:*:*:*:*:*
|
— | — |