In the Linux kernel, the following vulnerability has been resolved: serial: protect uart_port_dtr_rts() in uart_shutdown() too Commit af224ca2df29 (serial: core: Prevent unsafe uart port access, part 3) added few uport == NULL checks. Он добавил один в uart_shutdown (), поэтому коммит предполагает, что uport может быть NULL там. Но сразу после этой защиты происходит незащищенный вызов «uart_port_dtr_rts(uport, false»; Это вызывается только в том случае, если установлен HUPCL, поэтому я предполагаю, что это причина, по которой мы не видим много этих отчетов.
Или это не может быть NULL в этот момент вообще по какой-то причине :P. До тех пор, пока не будет исследовано вышеперечисленное, оставайтесь на безопасной стороне и переместите эту отсылку на «если» тоже. Я получил это несоответствие от Coverity под CID 1585130.
Спасибо.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: serial: protect uart_port_dtr_rts() in uart_shutdown() too Commit af224ca2df29 (serial: core: Prevent unsafe uart port access, part 3) added few uport == NULL checks. It added one to uart_shutdown(), so the commit assumes, uport can be NULL in there. But right after that protection, there is an unprotected "uart_port_dtr_rts(uport, false);" call. That is invoked only if HUPCL is set, so I assume that is the reason why we do not see lots of these reports. Or it cannot be NULL at this point at all for some reason :P. Until the above is investigated, stay on the safe side and move this dereference to the if too. I got this inconsistency from Coverity under CID 1585130. Thanks.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
6.6.57
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.11.4
|