В ядре Linux устранена следующая уязвимость: debugfs: исправлена обработка ожидания/отмены во время удаления. Бен Грир также сообщает о тупиках во время одновременной отладки. удалить во время доступа к файлам, даже если код в вопрос теперь использует отмену debugfs. Оказывается, несмотря на весь обзор по замкам мы совершенно упустили из виду, что логика неверна: если счетчик ссылок достигнет нуля, мы сможем закончить (и не нужно ждать завершения), но если этого не произойдет, у нас есть чтобы вызвать все отмены.
Как написано, мы не сможем _никогда_ войти в цикл, вызывающий отмены. Исправьте это и объясните это лучше, пока занимаетесь этим.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: debugfs: fix wait/cancellation handling during remove Ben Greear further reports deadlocks during concurrent debugfs remove while files are being accessed, even though the code in question now uses debugfs cancellations. Turns out that despite all the review on the locking, we missed completely that the logic is wrong: if the refcount hits zero we can finish (and need not wait for the completion), but if it doesn't we have to trigger all the cancellations. As written, we can _never_ get into the loop triggering the cancellations. Fix this, and explain it better while at it.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 8
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7.1
|
6.7.12
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.8
|
6.8.3
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.7:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.7:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.7:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.7:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.7:rc7:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.7:rc8:*:*:*:*:*:*
|
— | — |