В ядре Linux устранена следующая уязвимость:
gve: Guard XDP xmit NDO при наличии очередей xdp
В GVE выделенные очереди XDP существуют только тогда, когда установлена программа XDP.
и интерфейс работает. Таким образом, обратный вызов NDO XDP XMIT должен
вернитесь раньше, если любое из этих условий ложно. В случае отсутствия загруженной программы XDP, priv->num_xdp_queues=0, что может
вызвать ошибку деления на ноль, а в случае отключения интерфейса
num_xdp_queues остается нетронутым, чтобы сохранить счетчик очереди XDP для следующего
интерфейс включен, но сам указатель TX будет равен NULL.
Обратный вызов XDP xmit также необходимо синхронизировать с устройством.
переход от открытого к закрытому состоянию. Эта синхронизация будет происходить через
бит GVE_PRIV_FLAGS_NAPI_ENABLED вместе с вызовомsync_net(),
который ожидает завершения любых критических разделов RCU во время вызова.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: gve: guard XDP xmit NDO on existence of xdp queues In GVE, dedicated XDP queues only exist when an XDP program is installed and the interface is up. As such, the NDO XDP XMIT callback should return early if either of these conditions are false. In the case of no loaded XDP program, priv->num_xdp_queues=0 which can cause a divide-by-zero error, and in the case of interface down, num_xdp_queues remains untouched to persist XDP queue count for the next interface up, but the TX pointer itself would be NULL. The XDP xmit callback also needs to synchronize with a device transitioning from open to close. This synchronization will happen via the GVE_PRIV_FLAGS_NAPI_ENABLED bit along with a synchronize_net() call, which waits for any RCU critical sections at call-time to complete.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.4
|
6.6.70
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.9
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*
|
— | — |