В ядре Linux устранена следующая уязвимость:
netfilter: перепроверить порты моста
ebt_redirect_tg() разыменовывает возврат br_port_get_rcu() без
NULL-проверка, вызывающая панику ядра, когда порт моста был
удален между исходным вызовом перехватчика и NFQUEUE
повторно ввести. Однако простой проверки NULL недостаточно. Как сашико обзор
указывает, что пользовательское пространство может не только удалить порт с моста,
он также может поместить устройство в другое виртуальное устройство, например.
Маквлан. Если это произойдет, мы должны отбросить пакет, у нас нет возможности повторно введите его в путь моста. Переключитесь на _upper API, структура портов моста нам не нужна.
Кроме того, это исправление сохраняет еще одну ошибку:
И nfnetlink_log, и nfnetlink_queue используют CONFIG_BRIDGE_NETFILTER.
слишком агрессивный, что мешает определенным функциям журналирования при стоянии в очереди
в семействе мостов: NETFILTER_FAMILY_BRIDGE можно включить, пока старый
CONFIG_BRIDGE_NETFILTER крафт отключен. Тег Fixes является общим предком, он всегда был нарушен.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: netfilter: revalidate bridge ports ebt_redirect_tg() dereferences br_port_get_rcu() return without a NULL check, causing a kernel panic when the bridge port has been removed between the original hook invocation and an NFQUEUE reinject. A mere NULL check isn't sufficient, however. As sashiko review points out userspace can not only remove the port from the bridge, it could also place the device in a different virtual device, e.g. macvlan. If this happens, we must drop the packet, there is no way for us to reinject it into the bridge path. Switch to _upper API, we don't need the bridge port structure. Also, this fix keeps another bug intact: Both nfnetlink_log and nfnetlink_queue use CONFIG_BRIDGE_NETFILTER too aggressive, which prevents certain logging features when queueing in bridge family: NETFILTER_FAMILY_BRIDGE can be enabled while the old CONFIG_BRIDGE_NETFILTER cruft is off. Fixes tag is a common ancestor, this was always broken.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 10
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.36
|
6.12.94
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.36
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.13
|
|
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:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc7:*:*:*:*:*:*
|
— | — |