В ядре Linux устранена следующая уязвимость:
Ice: отклонить ptype, выходящий за пределы диапазона, в Ice_parser_profile_init
set_bit(rslt->ptype, prof->ptypes) работает с DECLARE_BITMAP
ICE_FLOW_PTYPE_MAX (1024) бит. Ничто не мешает злонамеренному VF
предоставление ptype >= 1024 через VIRTCHNL, что приводит к записи в прошлом
конец растрового изображения и ошибка страницы ядра.
Воспроизводится с помощью специального модуля ядра, внедряющего созданный
VIRTCHNL_OP_ADD_RSS_CFG на E810-C QSFP (8086:1592),
Прошивка 4.91 0x800214af 1.3909.0, ICE COMMS DDP 1.3.53.0,
ядро 7.1.0-rc1.
краш_парсер: Ice_parser_profile_init @ ffffffffc0d61b60
сбой_парсер: установка ptype=0xffff (максимум допустимо=1023)
crash_parser: вызов Ice_parser_profile_init — ожидайте внепланового сбоя!
ОШИБКА: разыменование нулевого указателя ядра, адрес: 0000000000000000
Упс: Упс: 0002 [#1] SMP NOPTI
ЦП: 56 UID: 0 PID: 165011 Связь: insmod Kdump: загружено Испорчено: G S U OE 7.1.0-rc1 #1
Имя оборудования: Intel Corporation S2600BPB/S2600BPB
RIP: 0010:ice_parser_profile_init+0x2d/0x1d0 [лед]
Отслеживание вызова:
<ЗАДАЧА>
? __pfx_ice_parser_profile_init+0x10/0x10 [лед]
сбой_инит+0x127/0xff0 [crash_parser]
do_one_initcall+0x45/0x310
do_init_module+0x64/0x270
init_module_from_file+0xcc/0xf0
idempotent_init_module+0x17b/0x280
__x64_sys_finit_module+0x6e/0xe0
Выйдите из строя раньше, используя -EINVAL, когда ptype выходит за пределы допустимого диапазона.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ice: reject out-of-range ptype in ice_parser_profile_init set_bit(rslt->ptype, prof->ptypes) operates on a DECLARE_BITMAP of ICE_FLOW_PTYPE_MAX (1024) bits. Nothing prevents a malicious VF from providing ptype >= 1024 through VIRTCHNL, resulting in a write past the end of the bitmap and a kernel page fault. Reproduced with a custom kernel module injecting a crafted VIRTCHNL_OP_ADD_RSS_CFG on E810-C QSFP (8086:1592), FW 4.91 0x800214af 1.3909.0, ICE COMMS DDP 1.3.53.0, kernel 7.1.0-rc1. crash_parser: ice_parser_profile_init @ ffffffffc0d61b60 crash_parser: setting ptype=0xffff (max valid=1023) crash_parser: calling ice_parser_profile_init -- expect OOB crash! BUG: kernel NULL pointer dereference, address: 0000000000000000 Oops: Oops: 0002 [#1] SMP NOPTI CPU: 56 UID: 0 PID: 165011 Comm: insmod Kdump: loaded Tainted: G S U OE 7.1.0-rc1 #1 Hardware name: Intel Corporation S2600BPB/S2600BPB RIP: 0010:ice_parser_profile_init+0x2d/0x1d0 [ice] Call Trace: <TASK> ? __pfx_ice_parser_profile_init+0x10/0x10 [ice] crash_init+0x127/0xff0 [crash_parser] do_one_initcall+0x45/0x310 do_init_module+0x64/0x270 init_module_from_file+0xcc/0xf0 idempotent_init_module+0x17b/0x280 __x64_sys_finit_module+0x6e/0xe0 Bail out early with -EINVAL when ptype is out of range.
Характеристики атаки
Последствия
Строка CVSS v3.1