В ядре Linux устранена следующая уязвимость:
Octeontx2-af: проверка тела pcifunc в rvu_mbox_handler_rep_event_notify
rvu_mbox_handler_rep_event_notify() в драйверах/net/ethernet/marvell/
Octeontx2/af/rvu_rep.c ставит в очередь REP_EVENT_NOTIFY, управляемый отправителем
тело запроса дословно, а затем rvu_rep_up_notify() пересылает
event->pcifunc (вложенное поле тела, отличное от поля
AF-нормализованный заголовок pcifunc) в rvu_get_pfvf(), rvu_get_pf() и
индекс устройства почтового ящика AF->PF без какой-либо проверки границ. VF, подключенный к PF, который был помещен в переключатель.
режим представителя достигает этого пути: обработчик почтового ящика VF
otx2_pfvf_mbox_handler() пересылает каждый идентификатор сообщения, включая
MBOX_MSG_REP_EVENT_NOTIFY в AF без белого списка, и AF
диспетчер перезаписывает только msg->pcifunc, оставляя структуру
Rep_event::pcifunc контролируется злоумышленником. Брат и сестра
rvu_mbox_handler_esw_cfg() отклоняет запросы, заголовок которых pcifunc
это не rvu->rep_pcifunc; этот обработчик не имеет эквивалентного вентиля.
Тело pcifunc вне диапазона выбирает &rvu->pf[]/&rvu->hwvf[]
элемент за выделенным массивом и для RVU_EVENT_MAC_ADDR_CHANGE,
превращается в выбранную злоумышленником шестибайтовую цель OOB ether_addr_copy()
внутри работника в очереди; KASAN сообщает о записи за пределами поля
в rvu_rep_wq_handler. Отклонять некорректные запросы на входе обработчика, отключив
is_pf_func_valid(), который уже является канонической проверкой диапазона PF/VF
в этом драйвере; выставьте его через rvu.h, чтобы вызывающие абоненты в rvu_rep.c могли использовать
это вместо открытого кодирования той же арифметики диапазона.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: octeontx2-af: validate body pcifunc in rvu_mbox_handler_rep_event_notify rvu_mbox_handler_rep_event_notify() in drivers/net/ethernet/marvell/ octeontx2/af/rvu_rep.c queues a sender-controlled REP_EVENT_NOTIFY request body verbatim, and rvu_rep_up_notify() then forwards event->pcifunc (the nested body field, distinct from the AF-normalised header pcifunc) into rvu_get_pfvf(), rvu_get_pf() and the AF->PF mailbox device index without any bounds check. A VF attached to a PF that has been put into switchdev representor mode reaches this path: the VF mailbox handler otx2_pfvf_mbox_handler() forwards every message id including MBOX_MSG_REP_EVENT_NOTIFY to AF without an allowlist, and the AF dispatcher rewrites only msg->pcifunc, leaving struct rep_event::pcifunc attacker-controlled. The sibling rvu_mbox_handler_esw_cfg() refuses requests whose header pcifunc is not rvu->rep_pcifunc; this handler has no equivalent gate. An out-of-range body pcifunc selects an &rvu->pf[]/&rvu->hwvf[] element past the allocated array and, for RVU_EVENT_MAC_ADDR_CHANGE, turns into a six-byte attacker-chosen OOB ether_addr_copy() target inside the queued worker; KASAN reports a slab-out-of-bounds write in rvu_rep_wq_handler. Reject malformed requests at the handler entry by gating on is_pf_func_valid(), which is already the canonical PF/VF range check in this driver; expose it via rvu.h so callers in rvu_rep.c can use it instead of open-coding the same range arithmetic.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.42
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.12
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*
|
— | — |