# CVE-2021-47036: udp: skip L4 aggregation for UDP tunnel packets

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2024-02-28T08:13:44.034Z
- Modified: 2026-08-05T08:45:39.890Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from 9fd1ff5d2ac7181844735806b0a703c942365291 before 450687386cd16d081b58cd7a342acff370a96078; from 9fd1ff5d2ac7181844735806b0a703c942365291 before 18f25dc399901426dff61e676ba603ff52c666f7; 5.6 (not affected: before 5.6; from 5.12.4 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.6 before 5.12.4

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/450687386cd16d081b58cd7a342acff370a96078> (patch)
- <https://git.kernel.org/stable/c/18f25dc399901426dff61e676ba603ff52c666f7> (patch)

## Sources

- CVE List: [CVE-2021-47036](https://www.cve.org/CVERecord?id=CVE-2021-47036), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47036](https://nvd.nist.gov/vuln/detail/CVE-2021-47036), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47036 · Whole record: https://cve.day/CVE-2021-47036.json · Rebuilt by cve.day 2026-11-25T22:58:08.626Z
