Описание
In the Linux kernel, the following vulnerability has been resolved: net: gro: properly validate BIG TCP aggregation criteria When GRO attempts to aggregate packets beyond GRO_LEGACY_MAX_SIZE (64KB), BIG TCP should only be permitted for plain IPv4 TCP and plain IPv6 TCP (with sufficient MAC header room to insert the temporary HBH jumbo header). However, commit b1a78b9b9886 ("net: add support for ipv4 big tcp") loosened the check in skb_gro_receive(), leading to several issues:
- skb_gro_receive() checked skb_headroom(p) instead of the actual space before the MAC header (p->mac_header). Because skb_headroom(p) includes mac_len, crafted frames (e.g. injected via AF_PACKET) can pass the check with p->mac_header < 8 bytes. When ipv6_gro_complete() inserts the temporary HBH jumbo header, the memmove() starts before skb->head, causing an out-of-bounds write and wrapping skb->mac_header.
- It allowed non-IP protocols such as software VLAN (ETH_P_8021Q / ETH_P_8021AD) to aggregate beyond 64KB because p->protocol != ETH_P_IPV6 was true.
- It checked p->encapsulation instead of NAPI_GRO_CB(skb)->encap_mark, allowing encapsulated flows (e.g. SIT / IPv6-in-IPv4) to aggregate beyond 64KB. Fix skb_gro_receive() to strictly enforce:
- NAPI_GRO_CB(skb)->proto == IPPROTO_TCP
- Not encapsulated (!NAPI_GRO_CB(skb)->encap_mark && !p->encapsulation)
- Protocol must be either ETH_P_IP or ETH_P_IPV6
- If ETH_P_IPV6, p->mac_header must be at least
sizeof(struct hop_jumbo_hdr)
Returning -E2BIG from skb_gro_receive() ensures that packets which cannot
become BIG TCP are cleanly flushed at <= 64KB and delivered intact without
dropping.
This issue does not exist in mainline (7.0+) because the subsystem was
rewritten in commit 81be30c1f5f2 ("net/ipv6: Drop HBH for BIG TCP on RX
side"), making this fix relevant only for older stable branches like
6.18.y.
A flaw was found in the Linux kernel’s Generic Receive Offload (GRO) component, which handles network packet aggregation. Improper validation of BIG TCP aggregation criteria allows a remote attacker to send specially crafted network frames. This can lead to an out-of-bounds write when processing IPv6 packets, potentially causing a system crash (denial of service) or other unpredictable behavior.
Отчет
BIG TCP GRO aggregation can incorrectly accept IPv6 aggregates above the legacy 64 KB GRO limit without fully validating the protocol, encapsulation state, and actual space available before the MAC header. In the affected code, skb_gro_receive() checks skb_headroom(p) rather than the position of p->mac_header. Because skb_headroom() also includes the MAC header length, the check can succeed even when less than the required space is available before the MAC header.
When such an IPv6 TCP aggregate is completed, ipv6_gro_complete() may attempt to insert the temporary Hop-by-Hop jumbo header used by the affected BIG TCP receive implementation. If p->mac_header is smaller than the required jumbo-header size, the associated memmove() can start before skb->head, resulting in a kernel out-of-bounds write and corruption of skb metadata. The affected GRO logic also did not correctly reject some encapsulated traffic because it relied on p->encapsulation without checking the receive-side encap_mark.
The vulnerable path is specific to BIG TCP receive aggregation. Ordinary GRO operation within the legacy 64 KB limit does not by itself reach this condition. In practice, the receiving interface must permit GRO aggregates larger than 64 KB, such as through a gro_max_size value above 65536. BIG TCP is a specialized high-throughput networking optimization and is normally not enabled by default, substantially limiting practical exposure compared with ordinary GRO-enabled systems. Disabling BIG TCP or limiting GRO aggregation to 64 KB or less prevents the affected oversized-aggregation path from being reached.
Crafted frame injection through mechanisms such as AF_PACKET provides a reliable way to control the packet layout and trigger the vulnerable condition locally. However, on an affected system with BIG TCP receive aggregation enabled, the vulnerable code also lies on the network receive GRO path. A remote or network-adjacent sender may therefore be able to cause an IPv6 TCP flow to be aggregated beyond 64 KB without requiring a local account. For the paranoid CVSS assessment, PR:N reflects this network-receive exposure. Practical exploitability nevertheless depends on the BIG TCP configuration and on reaching the specific skb layout that allows the invalid jumbo-header insertion.
The confirmed primitive is a kernel out-of-bounds write rather than a NULL-pointer dereference, resource exhaustion, or simple packet-processing failure. The directly supported impact is at least denial of service through kernel memory corruption and a possible kernel crash. Because the write occurs outside the valid skb allocation boundary, corruption of adjacent kernel memory may potentially have integrity or confidentiality consequences under favorable memory-layout conditions.
Меры по смягчению последствий
Disable Generic Receive Offload (GRO) on network interfaces to prevent aggregation of incoming frames beyond legacy size limits. To disable GRO immediately on a network interface:
ethtool -K gro off
Caveats: Disabling GRO can reduce TCP receive throughput and increase CPU load under high network traffic. This change takes effect immediately without restarting network services, but it does not persist across system reboots unless added to interface configuration scripts.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Affected | ||
| Red Hat Enterprise Linux 6 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | ||
| Red Hat Enterprise Linux 9 | kernel | Affected | ||
| Red Hat Enterprise Linux 9 | kernel-rt | Affected | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Not affected | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-9 | Affected |
Показывать по
Дополнительная информация
Статус:
EPSS
8.6 High
CVSS3
Связанные уязвимости
In the Linux kernel, the following vulnerability has been resolved: net: gro: properly validate BIG TCP aggregation criteria When GRO attempts to aggregate packets beyond GRO_LEGACY_MAX_SIZE (64KB), BIG TCP should only be permitted for plain IPv4 TCP and plain IPv6 TCP (with sufficient MAC header room to insert the temporary HBH jumbo header). However, commit b1a78b9b9886 ("net: add support for ipv4 big tcp") loosened the check in skb_gro_receive(), leading to several issues: 1. skb_gro_receive() checked skb_headroom(p) instead of the actual space before the MAC header (p->mac_header). Because skb_headroom(p) includes mac_len, crafted frames (e.g. injected via AF_PACKET) can pass the check with p->mac_header < 8 bytes. When ipv6_gro_complete() inserts the temporary HBH jumbo header, the memmove() starts before skb->head, causing an out-of-bounds write and wrapping skb->mac_header. 2. It allowed non-IP protocols such as software VLAN (ETH_P_8021Q / ETH_P_8021AD) to aggregate beyond 6...
In the Linux kernel, the following vulnerability has been resolved: net: gro: properly validate BIG TCP aggregation criteria When GRO attempts to aggregate packets beyond GRO_LEGACY_MAX_SIZE (64KB), BIG TCP should only be permitted for plain IPv4 TCP and plain IPv6 TCP (with sufficient MAC header room to insert the temporary HBH jumbo header). However, commit b1a78b9b9886 ("net: add support for ipv4 big tcp") loosened the check in skb_gro_receive(), leading to several issues: 1. skb_gro_receive() checked skb_headroom(p) instead of the actual space before the MAC header (p->mac_header). Because skb_headroom(p) includes mac_len, crafted frames (e.g. injected via AF_PACKET) can pass the check with p->mac_header < 8 bytes. When ipv6_gro_complete() inserts the temporary HBH jumbo header, the memmove() starts before skb->head, causing an out-of-bounds write and wrapping skb->mac_header. 2. It allowed non-IP protocols such as software VLAN (ETH_P_8021Q / ETH_P_8021AD) to
In the Linux kernel, the following vulnerability has been resolved: n ...
In the Linux kernel, the following vulnerability has been resolved: net: gro: properly validate BIG TCP aggregation criteria When GRO attempts to aggregate packets beyond GRO_LEGACY_MAX_SIZE (64KB), BIG TCP should only be permitted for plain IPv4 TCP and plain IPv6 TCP (with sufficient MAC header room to insert the temporary HBH jumbo header). However, commit b1a78b9b9886 ("net: add support for ipv4 big tcp") loosened the check in skb_gro_receive(), leading to several issues: 1. skb_gro_receive() checked skb_headroom(p) instead of the actual space before the MAC header (p->mac_header). Because skb_headroom(p) includes mac_len, crafted frames (e.g. injected via AF_PACKET) can pass the check with p->mac_header < 8 bytes. When ipv6_gro_complete() inserts the temporary HBH jumbo header, the memmove() starts before skb->head, causing an out-of-bounds write and wrapping skb->mac_header. 2. It allowed non-IP protocols such as software VLAN (ETH_P_8021Q / ETH_P_8021AD)...
Уязвимость ядра операционной системы Linux, связанная с записью за границами буфера, позволяющая нарушителю вызвать отказ в обслуживании
EPSS
8.6 High
CVSS3