# CVE-2024-35884: udp: do not accept non-tunnel GSO skbs landing in a tunnel

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.98% (percentile 61, 2026-11-26)
- **CWE:** CWE-617
- **Published:** 2024-05-19T08:34:40.948Z
- **Modified:** 2026-10-15T01:17:49.557Z

## Who should check

- Anyone running Linux \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< 3391b157780bbedf8ef9f202cbf10ee90bf6b0f8; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< d49ae15a5767d4e9ef8bbb79e42df1bfebc94670; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< d12245080cb259d82b34699f6cd4ec11bdb688bd; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< 3001e7aa43d6691db2a878b0745b854bf12ddd19; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< 35fe0e0b5c00bef7dde74842a2564c43856fbce4; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< 3d010c8031e39f5fa1e8b13ada77e0321091011f
- Anyone running Linux 5.6

## Description

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

udp: do not accept non-tunnel GSO skbs landing in a tunnel

When rx-udp-gro-forwarding is enabled UDP packets might be GROed when
being forwarded. If such packets might land in a tunnel this can cause
various issues and udp\_gro\_receive makes sure this isn't the case by
looking for a matching socket. This is performed in
udp4/6\_gro\_lookup\_skb but only in the current netns. This is an issue
with tunneled packets when the endpoint is in another netns. In such
cases the packets will be GROed at the UDP level, which leads to various
issues later on. The same thing can happen with rx-gro-list.

We saw this with geneve packets being GROed at the UDP level. In such
case gso\_size is set; later the packet goes through the geneve rx path,
the geneve header is pulled, the offset are adjusted and frag\_list skbs
are not adjusted with regard to geneve. When those skbs hit
skb\_fragment, it will misbehave. Different outcomes are possible
depending on what the GROed skbs look like; from corrupted packets to
kernel crashes.

One example is a BUG\_ON\[1\] triggered in skb\_segment while processing the
frag\_list. Because gso\_size is wrong (geneve header was pulled)
skb\_segment thinks there is "geneve header size" of data in frag\_list,
although it's in fact the next packet. The BUG\_ON itself has nothing to
do with the issue. This is only one of the potential issues.

Looking up for a matching socket in udp\_gro\_receive is fragile: the
lookup could be extended to all netns (not speaking about performances)
but nothing prevents those packets from being modified in between and we
could still not find a matching socket. It's OK to keep the current
logic there as it should cover most cases but we also need to make sure
we handle tunnel packets being GROed too early.

This is done by extending the checks in udp\_unexpected\_gso: GSO packets
lacking the SKB\_GSO\_UDP\_TUNNEL/\_CSUM bits and landing in a tunnel must
be segmented.

\[1\] kernel BUG at net/core/skbuff.c:4408!
    RIP: 0010:skb\_segment+0xd2a/0xf70
    \_\_udp\_gso\_segment+0xaa/0x560

## Affected and fixed versions

- Linux: \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< 3391b157780bbedf8ef9f202cbf10ee90bf6b0f8; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< d49ae15a5767d4e9ef8bbb79e42df1bfebc94670; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< d12245080cb259d82b34699f6cd4ec11bdb688bd; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< 3001e7aa43d6691db2a878b0745b854bf12ddd19; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< 35fe0e0b5c00bef7dde74842a2564c43856fbce4; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< 3d010c8031e39f5fa1e8b13ada77e0321091011f (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- Upgrade Linux to 3d010c8031e39f5fa1e8b13ada77e0321091011f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35884. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35884.md
Affected: Linux >= 9fd1ff5d2ac7181844735806b0a703c942365291, < 3391b157780bbedf8ef9f202cbf10ee90bf6b0f8; >= 9fd1ff5d2ac7181844735806b0a703c942365291, < d49ae15a5767d4e9ef8bbb79e42df1bfebc94670; >= 9fd1ff5d2ac7181844735806b0a703c942365291, < d12245080cb259d82b34699f6cd4ec11bdb688bd; >= 9fd1ff5d2ac718184473580…
Fixed in: Linux 3391b157780bbedf8ef9f202cbf10ee90bf6b0f8, Linux 3001e7aa43d6691db2a878b0745b854bf12ddd19, Linux 35fe0e0b5c00bef7dde74842a2564c43856fbce4, Linux 3d010c8031e39f5fa1e8b13ada77e0321091011f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35884 being exploited?

There is no confirmed exploitation: CVE-2024-35884 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.98% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35884?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-35884?

Linux \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< 3391b157780bbedf8ef9f202cbf10ee90bf6b0f8; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< d49ae15a5767d4e9ef8bbb79e42df1bfebc94670; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< d12245080cb259d82b34699f6cd4ec11bdb688bd; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< 3001e7aa43d6691db2a878b0745b854bf12ddd19; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< 35fe0e0b5c00bef7dde74842a2564c43856fbce4; \>= 9fd1ff5d2ac7181844735806b0a703c942365291, \< 3d010c8031e39f5fa1e8b13ada77e0321091011f; Linux 5.6.

### Is there a fix for CVE-2024-35884?

Yes. Fixed in Linux 3391b157780bbedf8ef9f202cbf10ee90bf6b0f8, Linux 3001e7aa43d6691db2a878b0745b854bf12ddd19, Linux 35fe0e0b5c00bef7dde74842a2564c43856fbce4, Linux 3d010c8031e39f5fa1e8b13ada77e0321091011f. Upgrade Linux to 3d010c8031e39f5fa1e8b13ada77e0321091011f or later.

### How do I check if I'm affected by CVE-2024-35884?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3391b157780bbedf8ef9f202cbf10ee90bf6b0f8>
- patch: <https://git.kernel.org/stable/c/d49ae15a5767d4e9ef8bbb79e42df1bfebc94670>
- patch: <https://git.kernel.org/stable/c/d12245080cb259d82b34699f6cd4ec11bdb688bd>
- patch: <https://git.kernel.org/stable/c/3001e7aa43d6691db2a878b0745b854bf12ddd19>
- patch: <https://git.kernel.org/stable/c/35fe0e0b5c00bef7dde74842a2564c43856fbce4>
- patch: <https://git.kernel.org/stable/c/3d010c8031e39f5fa1e8b13ada77e0321091011f>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35884>

HTML: <https://flawdb.com/CVE-2024-35884> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35884>
