CVE-2021-47036

CVE-2021-47036

Critical · published February 28, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
44.3
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00535 · 44.3th percentile
Published
2024-02-28T14:15Z
Affected products (1)
ProductVersionsFixed in
linux/linux_kernel≥ 5.6, < 5.12.45.12.4
References (4)
EPSS history
Timeline
  • 28 FEB 08:13Z
    udp: skip L4 aggregation for UDP tunnel packets
    cvelistv5