В ядре Linux была устранена следующая уязвимость: rv: Использование строк в следящих точках da мониторов Using DA мониторов с включенным KASAN вызывает следующее предупреждение: BUG: KASAN: global-out-of-bounds в do_trace_event_raw_event_event_da_monitor+0xd6/0x1a0 Read размера 32 в addr ffffffffaada8980 по заданию ... Вызов Trace: <TASK> [...] do_trace_event_raw_event_event_da_monitor+0xd6/0x1a0 ? __pfx_do_trace_event_raw_event_event_da_monitor+0x10/0x10 ? trace_event_sncid+0x83/0x200 trace_event_sncid+0x163/0x200 [...] Адрес багги принадлежит переменной: automaton_snep+0x4e0/0x5e0 This вызывается точками трассировки, читающими 32 байта __array вместо __string из определения автомата. Такие строки являются литералами, и чтение 32 байтов заканчивается выходом из ограниченного доступа к памяти (например, данные следующего автомата в этом случае).
Ошибка безвредна, так как при печати строки мы останавливаемся на нулевом терминаторе, но он все равно должен быть исправлен. Используйте средства __string при определении точек трассировки, чтобы избежать чтения из связанной памяти.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: rv: Use strings in da monitors tracepoints Using DA monitors tracepoints with KASAN enabled triggers the following warning: BUG: KASAN: global-out-of-bounds in do_trace_event_raw_event_event_da_monitor+0xd6/0x1a0 Read of size 32 at addr ffffffffaada8980 by task ... Call Trace: <TASK> [...] do_trace_event_raw_event_event_da_monitor+0xd6/0x1a0 ? __pfx_do_trace_event_raw_event_event_da_monitor+0x10/0x10 ? trace_event_sncid+0x83/0x200 trace_event_sncid+0x163/0x200 [...] The buggy address belongs to the variable: automaton_snep+0x4e0/0x5e0 This is caused by the tracepoints reading 32 bytes __array instead of __string from the automata definition. Such strings are literals and reading 32 bytes ends up in out of bound memory accesses (e.g. the next automaton's data in this case). The error is harmless as, while printing the string, we stop at the null terminator, but it should still be fixed. Use the __string facilities while defining the tracepoints to avoid reading out of bound memory.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.0
|
6.16.1
|