CVE-2021-47036
published critical CVSS 3.1 · 9.8udp: skip L4 aggregation for UDP tunnel packets
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux9fd1ff5d2ac7181844735806b0a703c942365291 to < 450687386cd16d081b58cd7a342acff370a96078 · 9fd1ff5d2ac7181844735806b0a703c942365291 to < 18f25dc399901426dff61e676ba603ff52c666f7 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.6 (affected) · 0 to < 5.6 (unaffected · semver) · 5.12.4 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: udp: skip L4 aggregation for UDP tunnel packets If NETIF_F_GRO_FRAGLIST or NETIF_F_GRO_UDP_FWD are enabled, and there are UDP tunnels available in the system, udp_gro_receive() could end-up doing L4 aggregation (either SKB_GSO_UDP_L4 or SKB_GSO_FRAGLIST) at the outer UDP tunnel level for packets effectively carrying and UDP tunnel header. That could cause inner protocol corruption. If e.g. the relevant packets carry a vxlan header, different vxlan ids will be ignored/ aggregated to the same GSO packet. Inner headers will be ignored, too, so that e.g. TCP over vxlan push packets will be held in the GRO engine till the next flush, etc. Just skip the SKB_GSO_UDP_L4 and SKB_GSO_FRAGLIST code path if the current packet could land in a UDP tunnel, and let udp_gro_receive() do GRO via udp_sk(sk)->gro_receive. The check implemented in this patch is broader than what is strictly needed, as the existing UDP tunnel could be e.g. configured on top of a different device: we could end-up skipping GRO at-all for some packets. Anyhow, that is a very thin corner case and covering it will add quite a bit of complexity. v1 -> v2: - hopefully clarify the commit message
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The bug is in udp_gro_receive()/udp4_gro_receive on the NAPI GRO receive path for inbound UDP packets, so a remote peer triggers it by sending UDP/VXLAN/Geneve traffic to a host with UDP tunnels; no local syscall is required. AC:L - With rx-gro-list or rx-udp-gro-forwarding enabled (the vulnerable configuration assumed for Base scoring), an attacker can reliably force incorrect L4/fraglist aggregation by sending packets that share the outer UDP flow while differing in inner tunnel headers; no race or uncontrolled memory layout is required. PR:N - Packet processing occurs in the kernel networking stack before any application authentication; sending UDP packets to the tunnel port needs no account or capability on the target. UI:N - Exploitation is fully driven by attacker-sent packets against an already-configured UDP tunnel endpoint; no victim user action is required. S:U - Impact stays within the host kernel network stack and tunnel datapath under the same OS security authority; this is not a VM/IOMMU/sandbox escape. C:H - Incorrect outer-UDP aggregation ignores VXLAN/Geneve identifiers and can merge packets from different tunnel namespaces into one GSO unit, enabling cross-tenant/cross-VNI exposure of encapsulated payloads in multi-tenant overlay deployments. I:H - The fix documents inner protocol corruption: different VXLAN IDs are aggregated, inner headers are ignored, and tunnel/TCP streams are rewritten into incorrect GSO packets, which is attacker-influenced corruption of network data integrity. A:H - Mis-aggregation holds and corrupts tunnel traffic (including TCP-over-VXLAN delayed until GRO flush) and can produce malformed GSO/fraglist skbs on the tunnel receive path, denying overlay service and aligning with the related GRO-into-tunnel crash class.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 9fd1ff5d2ac7181844735806b0a703c942365291 to < 450687386cd16d081b58cd7a342acff370a96078 (affected · git)9fd1ff5d2ac7181844735806b0a703c942365291 to < 18f25dc399901426dff61e676ba603ff52c666f7 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.6 (affected)0 to < 5.6 (unaffected · semver)5.12.4 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
3Linux · cna
udp: skip L4 aggregation for UDP tunnel packets
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 443f0857165bc60e3771451e3c56c8216912e9220a83fb93b8c4f032fb89126d
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record