В ядре Linux устранена следующая уязвимость:
трассировка/зонды: исправлена обработка лимита MAX_TRACE_ARGS. При создании Trace_probe мы бы установили nr_args перед усечением
аргументы для MAX_TRACE_ARGS. Однако мы будем инициализировать только аргументы
до предела.
Это приводило к недопустимому доступу к памяти при попытке настроить зонды с помощью
более 128 запросов. ОШИБКА: разыменование нулевого указателя ядра, адрес: 0000000000000020
#PF: доступ супервизора на чтение в режиме ядра
#PF: код_ошибки(0x0000) — страница отсутствует
ПГД 0 П4Д 0
Упс: Упс: 0000 [#1] PREEMPT SMP PTI
ЦП: 0 UID: 0 PID: 1769 Связь: cat Не испорчен 6.11.0-rc7+ #8
Название оборудования: QEMU Standard PC (i440FX + PIIX, 1996 г.), BIOS 1.16.3-1.fc39 01.04.2014
RIP: 0010:__set_print_fmt+0x134/0x330
Решите проблему, применив ограничение MAX_TRACE_ARGS ранее. Возврат
ошибка, когда аргументов слишком много, а не молча
усечение.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: tracing/probes: Fix MAX_TRACE_ARGS limit handling When creating a trace_probe we would set nr_args prior to truncating the arguments to MAX_TRACE_ARGS. However, we would only initialize arguments up to the limit. This caused invalid memory access when attempting to set up probes with more than 128 fetchargs. BUG: kernel NULL pointer dereference, address: 0000000000000020 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: Oops: 0000 [#1] PREEMPT SMP PTI CPU: 0 UID: 0 PID: 1769 Comm: cat Not tainted 6.11.0-rc7+ #8 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-1.fc39 04/01/2014 RIP: 0010:__set_print_fmt+0x134/0x330 Resolve the issue by applying the MAX_TRACE_ARGS limit earlier. Return an error when there are too many arguments instead of silently truncating.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.9
|
6.11.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:*
|
— | — |