Skip to content
OpenAdvisories
High · 7.8 CVE-2021-47099 EUVD-2021-33747GHSA-7xc6-rqxq-w4qm

veth: ensure skb entering GRO are not cloned.

Published Mar 4, 2024 · Updated Aug 5, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.8 Package: linux-aws-6.2 Package: linux-azure Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.8 Package: linux-azure-6.2 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.2 Package: linux-gcp Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.8 Package: linux-gcp-6.2 Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.19 Package: linux-hwe-5.8 Package: linux-hwe-6.2 Package: linux-hwe-edge Package: linux-intel-5.13 Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.2 Package: linux-nvidia-6.2 Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.3 Package: linux-oracle-5.8 Package: linux-raspi2 Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Platform: Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

In the Linux kernel, the following vulnerability has been resolved:

veth: ensure skb entering GRO are not cloned.

After commit d3256efd8e8b ("veth: allow enabling NAPI even without XDP"),
if GRO is enabled on a veth device and TSO is disabled on the peer
device, TCP skbs will go through the NAPI callback. If there is no XDP
program attached, the veth code does not perform any share check, and
shared/cloned skbs could enter the GRO engine.

Ignat reported a BUG triggered later-on due to the above condition:

[ 53.970529][ C1] kernel BUG at net/core/skbuff.c:3574!
[ 53.981755][ C1] invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
[ 53.982634][ C1] CPU: 1 PID: 19 Comm: ksoftirqd/1 Not tainted 5.16.0-rc5+ #25
[ 53.982634][ C1] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
[ 53.982634][ C1] RIP: 0010:skb_shift+0x13ef/0x23b0
[ 53.982634][ C1] Code: ea 03 0f b6 04 02 48 89 fa 83 e2 07 38 d0
7f 08 84 c0 0f 85 41 0c 00 00 41 80 7f 02 00 4d 8d b5 d0 00 00 00 0f
85 74 f5 ff ff <0f> 0b 4d 8d 77 20 be 04 00 00 00 4c 89 44 24 78 4c 89
f7 4c 89 8c
[ 53.982634][ C1] RSP: 0018:ffff8881008f7008 EFLAGS: 00010246
[ 53.982634][ C1] RAX: 0000000000000000 RBX: ffff8881180b4c80 RCX: 0000000000000000
[ 53.982634][ C1] RDX: 0000000000000002 RSI: ffff8881180b4d3c RDI: ffff88810bc9cac2
[ 53.982634][ C1] RBP: ffff8881008f70b8 R08: ffff8881180b4cf4 R09: ffff8881180b4cf0
[ 53.982634][ C1] R10: ffffed1022999e5c R11: 0000000000000002 R12: 0000000000000590
[ 53.982634][ C1] R13: ffff88810f940c80 R14: ffff88810f940d50 R15: ffff88810bc9cac0
[ 53.982634][ C1] FS: 0000000000000000(0000) GS:ffff888235880000(0000) knlGS:0000000000000000
[ 53.982634][ C1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 53.982634][ C1] CR2: 00007ff5f9b86680 CR3: 0000000108ce8004 CR4: 0000000000170ee0
[ 53.982634][ C1] Call Trace:
[ 53.982634][ C1] <TASK>
[ 53.982634][ C1] tcp_sacktag_walk+0xaba/0x18e0
[ 53.982634][ C1] tcp_sacktag_write_queue+0xe7b/0x3460
[ 53.982634][ C1] tcp_ack+0x2666/0x54b0
[ 53.982634][ C1] tcp_rcv_established+0x4d9/0x20f0
[ 53.982634][ C1] tcp_v4_do_rcv+0x551/0x810
[ 53.982634][ C1] tcp_v4_rcv+0x22ed/0x2ed0
[ 53.982634][ C1] ip_protocol_deliver_rcu+0x96/0xaf0
[ 53.982634][ C1] ip_local_deliver_finish+0x1e0/0x2f0
[ 53.982634][ C1] ip_sublist_rcv_finish+0x211/0x440
[ 53.982634][ C1] ip_list_rcv_finish.constprop.0+0x424/0x660
[ 53.982634][ C1] ip_list_rcv+0x2c8/0x410
[ 53.982634][ C1] __netif_receive_skb_list_core+0x65c/0x910
[ 53.982634][ C1] netif_receive_skb_list_internal+0x5f9/0xcb0
[ 53.982634][ C1] napi_complete_done+0x188/0x6e0
[ 53.982634][ C1] gro_cell_poll+0x10c/0x1d0
[ 53.982634][ C1] __napi_poll+0xa1/0x530
[ 53.982634][ C1] net_rx_action+0x567/0x1270
[ 53.982634][ C1] __do_softirq+0x28a/0x9ba
[ 53.982634][ C1] run_ksoftirqd+0x32/0x60
[ 53.982634][ C1] smpboot_thread_fn+0x559/0x8c0
[ 53.982634][ C1] kthread+0x3b9/0x490
[ 53.982634][ C1] ret_from_fork+0x22/0x30
[ 53.982634][ C1] </TASK>

Address the issue by skipping the GRO stage for shared or cloned skbs.
To reduce the chance of OoO, try to unclone the skbs before giving up.

v1 -> v2:
- use avoid skb_copy and fallback to netif_receive_skb - Eric

Affected products

VendorProductAffectedFixed
Linux Linux 5.13 5.15.12

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 5.15.15-1 —
Debian 13 linux 5.15.15-1 —
Debian 12 linux 5.15.15-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS linux-riscv +20 No fix yet —
Ubuntu 20.04 LTS linux-gke +26 No fix yet —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 kernel-rt +12 5.14.0-162.6.1.rt21.168.el9_1 RHSA-2022:7933
RHEL 9 perf +29 5.14.0-162.6.1.el9_1 RHSA-2022:8267
RHEL 8 kernel-rt +12 4.18.0-425.3.1.rt7.213.el8 RHSA-2022:7444
RHEL 8 perf +26 4.18.0-425.3.1.el8 RHSA-2022:7683
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhev Hypervisor 4 perf +2 4.18.0-372.100.1.el8_6 RHSA-2024:1877
RHEL 8.6 EUS perf +26 4.18.0-372.100.1.el8_6 RHSA-2024:1877
ReleasePackageFixed inAdvisory
SLES 15 SP5 kernel-64kb +6 5.14.21-150500.55.59.1 SUSE-SU-2024:1480-1
SLES 15 SP5 kernel-azure +2 5.14.21-150500.33.48.1 SUSE-SU-2024:1490-1
SLES 15 SP5 kernel-default-base 5.14.21-150500.55.59.1.150500.6.25.7 SUSE-SU-2024:1480-1
SLES 15 SP4 kernel-64kb +6 5.14.21-150400.24.116.1 SUSE-SU-2024:1321-1
SLES 15 SP4 kernel-default-base 5.14.21-150400.24.116.1.150400.24.54.5 SUSE-SU-2024:1321-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP4 kernel-default-base 5.14.21-150400.24.116.1.150400.24.54.5 SUSE-SU-2024:1321-1
SLES for SAP 15 SP4 kernel-docs +4 5.14.21-150400.24.116.1 SUSE-SU-2024:1321-1
SLE Micro 5.5 kernel-default 5.14.21-150500.55.59.1 SUSE-SU-2024:1480-1
SLE Micro 5.5 kernel-default-base 5.14.21-150500.55.59.1.150500.6.25.7 SUSE-SU-2024:1480-1
SLE Micro 5.5 kernel-rt +1 5.14.21-150500.13.47.1 SUSE-SU-2024:1466-1
SLE Micro 5.4 kernel-default 5.14.21-150400.24.116.1 SUSE-SU-2024:1321-1
SLE Micro 5.4 kernel-default-base 5.14.21-150400.24.116.1.150400.24.54.5 SUSE-SU-2024:1321-1
SLE Micro 5.4 kernel-rt +1 5.14.21-150400.15.76.1 SUSE-SU-2024:1320-1
SLE Micro 5.3 kernel-default 5.14.21-150400.24.116.1 SUSE-SU-2024:1321-1
SLE Micro 5.3 kernel-default-base 5.14.21-150400.24.116.1.150400.24.54.5 SUSE-SU-2024:1321-1
SLE Micro 5.3 kernel-rt +1 5.14.21-150400.15.76.1 SUSE-SU-2024:1320-1
SLE Live Patching 15 SP5 kernel-default 5.14.21-150500.55.59.1 SUSE-SU-2024:1480-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5-RT_Update_13 1-150500.11.3.1 SUSE-SU-2024:1466-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_12 1-150500.11.7.1 SUSE-SU-2024:1480-1
SLE Live Patching 15 SP4 kernel-default 5.14.21-150400.24.116.1 SUSE-SU-2024:1321-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_25 1-150400.9.5.1 SUSE-SU-2024:1321-1
SLE HPC 15 SP4 kernel-64kb +5 5.14.21-150400.24.116.1 SUSE-SU-2024:1321-1
SLE HPC 15 SP4 kernel-default-base 5.14.21-150400.24.116.1.150400.24.54.5 SUSE-SU-2024:1321-1
SUSE Real Time Module 15 SP5 kernel-rt +3 5.14.21-150500.13.47.1 SUSE-SU-2024:1466-1
SUSE Manager Server 4.3 kernel-default-base 5.14.21-150400.24.116.1.150400.24.54.5 SUSE-SU-2024:1321-1
SUSE Manager Server 4.3 kernel-syms +3 5.14.21-150400.24.116.1 SUSE-SU-2024:1321-1
SUSE Manager Proxy 4.3 kernel-default-base 5.14.21-150400.24.116.1.150400.24.54.5 SUSE-SU-2024:1321-1
SUSE Manager Proxy 4.3 kernel-syms +2 5.14.21-150400.24.116.1 SUSE-SU-2024:1321-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 dtb-aarch64 +10 5.14.21-150500.55.59.1 SUSE-SU-2024:1480-1
openSUSE Leap 15.5 kernel-azure +2 5.14.21-150500.33.48.1 SUSE-SU-2024:1490-1
openSUSE Leap 15.5 kernel-default-base 5.14.21-150500.55.59.1.150500.6.25.7 SUSE-SU-2024:1480-1
openSUSE Leap 15.5 kernel-rt +3 5.14.21-150500.13.47.1 SUSE-SU-2024:1466-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.4 kernel-default 5.14.21-150400.24.116.1 SUSE-SU-2024:1321-1
openSUSE Leap Micro 5.4 kernel-default-base 5.14.21-150400.24.116.1.150400.24.54.5 SUSE-SU-2024:1321-1
openSUSE Leap Micro 5.4 kernel-rt 5.14.21-150400.15.76.1 SUSE-SU-2024:1320-1
openSUSE Leap Micro 5.3 kernel-default 5.14.21-150400.24.116.1 SUSE-SU-2024:1321-1
openSUSE Leap Micro 5.3 kernel-default-base 5.14.21-150400.24.116.1.150400.24.54.5 SUSE-SU-2024:1321-1
openSUSE Leap Micro 5.3 kernel-rt 5.14.21-150400.15.76.1 SUSE-SU-2024:1320-1

Advisories 11

References