В ядре Linux устранена следующая уязвимость: bpf: защита от переполнения int для размера доступа к стеку. Этот патч вновь вводит защиту от размера доступа к стеку. память негативная; в результате размер доступа может оказаться отрицательным переполнения своего подписанного представления int. Это не должно на самом деле произойти, поскольку на этом пути есть и другие меры защиты, но мы должны в любом случае защититься от этого.
В одном пути кода отсутствовала такая защита.
(исправлено в предыдущем патче серии), приводящее к выходу за пределы массива
доступ в check_stack_range_initialized(). Этот патч вызывает
проверка программы с таким бессмысленным размером доступа не удалась. Раньше эта проверка существовала более косвенным образом, но была случайно
удален в a833a17aeac7.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: bpf: Protect against int overflow for stack access size This patch re-introduces protection against the size of access to stack memory being negative; the access size can appear negative as a result of overflowing its signed int representation. This should not actually happen, as there are other protections along the way, but we should protect against it anyway. One code path was missing such protections (fixed in the previous patch in the series), causing out-of-bounds array accesses in check_stack_range_initialized(). This patch causes the verification of a program with such a non-sensical access size to fail. This check used to exist in a more indirect way, but was inadvertendly removed in a833a17aeac7.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.10.209
|
5.10.215
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.15.148
|
5.15.154
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.1.75
|
6.1.85
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.6.14
|
6.6.26
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7.2
|
6.8.5
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
|
— | — |
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
|
— | — |