# CVE-2025-38622: net: drop UFO packets in udp\_rcv\_segment()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-08-22T16:00:31.343Z
- **Modified:** 2026-11-05T22:17:20.853Z

## Who should check

- Anyone running Linux \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 72f97d3cb791e26492236b2be7fd70d2c6222555; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< df6ad849d59256dcc0e2234844ef9f0daf885f5c; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 4c1022220b1b6fea802175e80444923a3bbf93a5; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 791f32c5eab33ca3a153f8f6f763aa0df1ddc320; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 0d45954034f8edd6d4052e0190d3d6335c37e4de; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< c0ec2e47f1e92d69b42b17a4a1e543256778393e; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< fc45b3f9599b657d4a64bcf423d2a977b3e13a49; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 0c639c6479ec4480372901a5fc566f7588cf5522; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< d46e51f1c78b9ab9323610feb14238d06d46d519
- Anyone running Linux 5.0

## Description

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

net: drop UFO packets in udp\_rcv\_segment()

When sending a packet with virtio\_net\_hdr to tun device, if the gso\_type
in virtio\_net\_hdr is SKB\_GSO\_UDP and the gso\_size is less than udphdr
size, below crash may happen.

  ------------\[ cut here \]------------
  kernel BUG at net/core/skbuff.c:4572!
  Oops: invalid opcode: 0000 \[\#1\] SMP NOPTI
  CPU: 0 UID: 0 PID: 62 Comm: mytest Not tainted 6.16.0-rc7 \#203 PREEMPT(voluntary)
  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
  RIP: 0010:skb\_pull\_rcsum+0x8e/0xa0
  Code: 00 00 5b c3 cc cc cc cc 8b 93 88 00 00 00 f7 da e8 37 44 38 00 f7 d8 89 83 88 00 00 00 48 8b 83 c8 00 00 00 5b c3 cc cc cc cc \<0f\> 0b 0f 0b 66 66 2e 0f 1f 84 00 000
  RSP: 0018:ffffc900001fba38 EFLAGS: 00000297
  RAX: 0000000000000004 RBX: ffff8880040c1000 RCX: ffffc900001fb948
  RDX: ffff888003e6d700 RSI: 0000000000000008 RDI: ffff88800411a062
  RBP: ffff8880040c1000 R08: 0000000000000000 R09: 0000000000000001
  R10: ffff888003606c00 R11: 0000000000000001 R12: 0000000000000000
  R13: ffff888004060900 R14: ffff888004050000 R15: ffff888004060900
  FS:  000000002406d3c0(0000) GS:ffff888084a19000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 0000000020000040 CR3: 0000000004007000 CR4: 00000000000006f0
  Call Trace:
   \<TASK\>
   udp\_queue\_rcv\_one\_skb+0x176/0x4b0 net/ipv4/udp.c:2445
   udp\_queue\_rcv\_skb+0x155/0x1f0 net/ipv4/udp.c:2475
   udp\_unicast\_rcv\_skb+0x71/0x90 net/ipv4/udp.c:2626
   \_\_udp4\_lib\_rcv+0x433/0xb00 net/ipv4/udp.c:2690
   ip\_protocol\_deliver\_rcu+0xa6/0x160 net/ipv4/ip\_input.c:205
   ip\_local\_deliver\_finish+0x72/0x90 net/ipv4/ip\_input.c:233
   ip\_sublist\_rcv\_finish+0x5f/0x70 net/ipv4/ip\_input.c:579
   ip\_sublist\_rcv+0x122/0x1b0 net/ipv4/ip\_input.c:636
   ip\_list\_rcv+0xf7/0x130 net/ipv4/ip\_input.c:670
   \_\_netif\_receive\_skb\_list\_core+0x21d/0x240 net/core/dev.c:6067
   netif\_receive\_skb\_list\_internal+0x186/0x2b0 net/core/dev.c:6210
   napi\_complete\_done+0x78/0x180 net/core/dev.c:6580
   tun\_get\_user+0xa63/0x1120 drivers/net/tun.c:1909
   tun\_chr\_write\_iter+0x65/0xb0 drivers/net/tun.c:1984
   vfs\_write+0x300/0x420 fs/read\_write.c:593
   ksys\_write+0x60/0xd0 fs/read\_write.c:686
   do\_syscall\_64+0x50/0x1c0 arch/x86/entry/syscall\_64.c:63
   \</TASK\>

To trigger gso segment in udp\_queue\_rcv\_skb(), we should also set option
UDP\_ENCAP\_ESPINUDP to enable udp\_sk(sk)-\>encap\_rcv. When the encap\_rcv
hook return 1 in udp\_queue\_rcv\_one\_skb(), udp\_csum\_pull\_header() will try
to pull udphdr, but the skb size has been segmented to gso size, which
leads to this crash.

Previous commit cf329aa42b66 ("udp: cope with UDP GRO packet misdirection")
introduces segmentation in UDP receive path only for GRO, which was never
intended to be used for UFO, so drop UFO packets in udp\_rcv\_segment().

## Affected and fixed versions

- Linux: \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 72f97d3cb791e26492236b2be7fd70d2c6222555; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< df6ad849d59256dcc0e2234844ef9f0daf885f5c; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 4c1022220b1b6fea802175e80444923a3bbf93a5; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 791f32c5eab33ca3a153f8f6f763aa0df1ddc320; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 0d45954034f8edd6d4052e0190d3d6335c37e4de; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< c0ec2e47f1e92d69b42b17a4a1e543256778393e; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< fc45b3f9599b657d4a64bcf423d2a977b3e13a49; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 0c639c6479ec4480372901a5fc566f7588cf5522; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< d46e51f1c78b9ab9323610feb14238d06d46d519 (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38622.md
Affected: Linux >= cf329aa42b6659204fee865bbce0ea20462552eb, < 72f97d3cb791e26492236b2be7fd70d2c6222555; >= cf329aa42b6659204fee865bbce0ea20462552eb, < df6ad849d59256dcc0e2234844ef9f0daf885f5c; >= cf329aa42b6659204fee865bbce0ea20462552eb, < 4c1022220b1b6fea802175e80444923a3bbf93a5; >= cf329aa42b6659204fee865…
Fixed in: Linux 72f97d3cb791e26492236b2be7fd70d2c6222555, Linux 4c1022220b1b6fea802175e80444923a3bbf93a5, Linux 791f32c5eab33ca3a153f8f6f763aa0df1ddc320, Linux 0d45954034f8edd6d4052e0190d3d6335c37e4de, Linux 0c639c6479ec4480372901a5fc566f7588cf5522

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-2025-38622 being exploited?

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

### How serious is CVE-2025-38622?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38622?

Linux \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 72f97d3cb791e26492236b2be7fd70d2c6222555; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< df6ad849d59256dcc0e2234844ef9f0daf885f5c; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 4c1022220b1b6fea802175e80444923a3bbf93a5; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 791f32c5eab33ca3a153f8f6f763aa0df1ddc320; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 0d45954034f8edd6d4052e0190d3d6335c37e4de; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< c0ec2e47f1e92d69b42b17a4a1e543256778393e; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< fc45b3f9599b657d4a64bcf423d2a977b3e13a49; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< 0c639c6479ec4480372901a5fc566f7588cf5522; \>= cf329aa42b6659204fee865bbce0ea20462552eb, \< d46e51f1c78b9ab9323610feb14238d06d46d519; Linux 5.0.

### Is there a fix for CVE-2025-38622?

Yes. Fixed in Linux 72f97d3cb791e26492236b2be7fd70d2c6222555, Linux 4c1022220b1b6fea802175e80444923a3bbf93a5, Linux 791f32c5eab33ca3a153f8f6f763aa0df1ddc320, Linux 0d45954034f8edd6d4052e0190d3d6335c37e4de, Linux 0c639c6479ec4480372901a5fc566f7588cf5522. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38622?

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/72f97d3cb791e26492236b2be7fd70d2c6222555>
- patch: <https://git.kernel.org/stable/c/df6ad849d59256dcc0e2234844ef9f0daf885f5c>
- patch: <https://git.kernel.org/stable/c/4c1022220b1b6fea802175e80444923a3bbf93a5>
- patch: <https://git.kernel.org/stable/c/791f32c5eab33ca3a153f8f6f763aa0df1ddc320>
- patch: <https://git.kernel.org/stable/c/0d45954034f8edd6d4052e0190d3d6335c37e4de>
- patch: <https://git.kernel.org/stable/c/c0ec2e47f1e92d69b42b17a4a1e543256778393e>
- patch: <https://git.kernel.org/stable/c/fc45b3f9599b657d4a64bcf423d2a977b3e13a49>
- patch: <https://git.kernel.org/stable/c/0c639c6479ec4480372901a5fc566f7588cf5522>
- patch: <https://git.kernel.org/stable/c/d46e51f1c78b9ab9323610feb14238d06d46d519>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.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-2025-38622>

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