В ядре Linux устранена следующая уязвимость:
net: добавьте pskb_may_pull() в skb_gro_receive_list()
skb_gro_receive_list() вызывает skb_pull(skb, skb_gro_offset(skb)) без
сначала убедитесь, что данные находятся в линейной области с помощью pskb_may_pull(). Когда
skb поступает через napi_gro_frags(), skb_headlen может быть равен 0 (все данные в
фрагменты страницы), в то время как skb_gro_offset не равен нулю (после заголовка IP+TCP
разбор). Затем skb_pull() уменьшает skb->len на skb_gro_offset.
но skb->data_len остается неизменным, нажимая BUG_ON(skb->len <skb->data_len)
в __skb_pull().
Путь GRO к Fraglist UDP уже содержит этот предохранитель по адресу
udp_offload.c:749. Добавление его в сам skb_gro_receive_list() обеспечивает
централизованная защита для всех вызывающих абонентов (TCP, UDP и любые будущие
протоколы) и обеспечивает выполнение предварительного условия skb_pull().
прежде чем его вызовут. В случае сбоя pskb_may_pull() установите NAPI_GRO_CB(skb)->flush = 1, чтобы
скб не является новым руководителем ОГР, а вместо этого передается через
обычный путь получения, соответствующий обработке UDP.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net: add pskb_may_pull() to skb_gro_receive_list() skb_gro_receive_list() calls skb_pull(skb, skb_gro_offset(skb)) without first ensuring the data is in the linear area via pskb_may_pull(). When the skb arrives via napi_gro_frags(), skb_headlen can be 0 (all data in page fragments) while skb_gro_offset is non-zero (after IP+TCP header parsing). The skb_pull() then decrements skb->len by skb_gro_offset but skb->data_len stays unchanged, hitting BUG_ON(skb->len < skb->data_len) in __skb_pull(). The UDP fraglist GRO path already contains this guard at udp_offload.c:749. Adding it to skb_gro_receive_list() itself provides centralized protection for all callers (TCP, UDP, and any future protocols), and ensures the precondition of skb_pull() is satisfied before it is called. On pskb_may_pull() failure, set NAPI_GRO_CB(skb)->flush = 1 so the skb is not held as a new GRO head and is instead delivered through the normal receive path, matching the UDP handling.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 10
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.10
|
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:*:*:*:*:*:*
|
— | — |