# CVE-2025-21865: gtp: Suppress list corruption splat in gtp\_net\_exit\_batch\_rtnl().

> 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, CNA) `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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-03-12T09:42:21.901Z
- **Modified:** 2026-10-15T02:17:40.350Z

## Who should check

- Anyone running Linux \>= c986380c1d5274c4d5e935addc807d6791cc23eb, \< 7f86fb07db65a470d0c11f79da551bd9466357dc; \>= 5f1678346109ff3a6d229d33437fcba3cce9209d, \< 33eb925c0c26e86ca540a08254806512bf911f22; \>= 036f8d814a2cd11ee8ef62b8f3e7ce5dec0ee4f3, \< cb15bb1bde0ba97cbbed9508e45210dcafec3657; \>= efec287cbac92ac6ee8312a89221854760e13b34, \< b70fa591b066d52b141fc430ffdee35b6cc87a66; \>= bb11f992f5a475bc68ef959f17a55306f0328495, \< 9d03e7e37187ae140e716377599493987fb20c5b; \>= 86f73d4ab2f27deeff22ba9336ad103d94f12ac7, \< ff81b14010362f6188ca26fec22ff05e4da45595; \>= eb28fd76c0a08a47b470677c6cef9dd1c60e92d1, \< 37e7644b961600ef0beb01d3970c3034a62913af; \>= eb28fd76c0a08a47b470677c6cef9dd1c60e92d1, \< 4ccacf86491d33d2486b62d4d44864d7101b299d; \>= 5.4.290, \< 5.4.291; \>= 5.10.234, \< 5.10.235; …
- Anyone running Linux 6.13

## Description

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

gtp: Suppress list corruption splat in gtp\_net\_exit\_batch\_rtnl().

Brad Spengler reported the list\_del() corruption splat in
gtp\_net\_exit\_batch\_rtnl(). \[0\]

Commit eb28fd76c0a0 ("gtp: Destroy device along with udp socket's netns
dismantle.") added the for\_each\_netdev() loop in gtp\_net\_exit\_batch\_rtnl()
to destroy devices in each netns as done in geneve and ip tunnels.

However, this could trigger -\>dellink() twice for the same device during
-\>exit\_batch\_rtnl().

Say we have two netns A & B and gtp device B that resides in netns B but
whose UDP socket is in netns A.

  1. cleanup\_net() processes netns A and then B.

  2. gtp\_net\_exit\_batch\_rtnl() finds the device B while iterating
     netns A's gn-\>gtp\_dev\_list and calls -\>dellink().

  \[ device B is not yet unlinked from netns B
    as unregister\_netdevice\_many() has not been called. \]

  3. gtp\_net\_exit\_batch\_rtnl() finds the device B while iterating
     netns B's for\_each\_netdev() and calls -\>dellink().

gtp\_dellink() cleans up the device's hash table, unlinks the dev from
gn-\>gtp\_dev\_list, and calls unregister\_netdevice\_queue().

Basically, calling gtp\_dellink() multiple times is fine unless
CONFIG\_DEBUG\_LIST is enabled.

Let's remove for\_each\_netdev() in gtp\_net\_exit\_batch\_rtnl() and
delegate the destruction to default\_device\_exit\_batch() as done
in bareudp.

\[0\]:
list\_del corruption, ffff8880aaa62c00-\>next (autoslab\_size\_M\_dev\_P\_net\_core\_dev\_11127\_8\_1328\_8\_S\_4096\_A\_64\_n\_139+0xc00/0x1000 \[slab object\]) is LIST\_POISON1 (ffffffffffffff02) (prev is 0xffffffffffffff04)
kernel BUG at lib/list\_debug.c:58!
Oops: invalid opcode: 0000 \[\#1\] PREEMPT SMP KASAN
CPU: 1 UID: 0 PID: 1804 Comm: kworker/u8:7 Tainted: G                T   6.12.13-grsec-full-20250211091339 \#1
Tainted: \[T\]=RANDSTRUCT
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
Workqueue: netns cleanup\_net
RIP: 0010:\[\<ffffffff84947381\>\] \_\_list\_del\_entry\_valid\_or\_report+0x141/0x200 lib/list\_debug.c:58
Code: c2 76 91 31 c0 e8 9f b1 f7 fc 0f 0b 4d 89 f0 48 c7 c1 02 ff ff ff 48 89 ea 48 89 ee 48 c7 c7 e0 c2 76 91 31 c0 e8 7f b1 f7 fc \<0f\> 0b 4d 89 e8 48 c7 c1 04 ff ff ff 48 89 ea 48 89 ee 48 c7 c7 60
RSP: 0018:fffffe8040b4fbd0 EFLAGS: 00010283
RAX: 00000000000000cc RBX: dffffc0000000000 RCX: ffffffff818c4054
RDX: ffffffff84947381 RSI: ffffffff818d1512 RDI: 0000000000000000
RBP: ffff8880aaa62c00 R08: 0000000000000001 R09: fffffbd008169f32
R10: fffffe8040b4f997 R11: 0000000000000001 R12: a1988d84f24943e4
R13: ffffffffffffff02 R14: ffffffffffffff04 R15: ffff8880aaa62c08
RBX: kasan shadow of 0x0
RCX: \_\_wake\_up\_klogd.part.0+0x74/0xe0 kernel/printk/printk.c:4554
RDX: \_\_list\_del\_entry\_valid\_or\_report+0x141/0x200 lib/list\_debug.c:58
RSI: vprintk+0x72/0x100 kernel/printk/printk\_safe.c:71
RBP: autoslab\_size\_M\_dev\_P\_net\_core\_dev\_11127\_8\_1328\_8\_S\_4096\_A\_64\_n\_139+0xc00/0x1000 \[slab object\]
RSP: process kstack fffffe8040b4fbd0+0x7bd0/0x8000 \[kworker/u8:7+netns 1804 \]
R09: kasan shadow of process kstack fffffe8040b4f990+0x7990/0x8000 \[kworker/u8:7+netns 1804 \]
R10: process kstack fffffe8040b4f997+0x7997/0x8000 \[kworker/u8:7+netns 1804 \]
R15: autoslab\_size\_M\_dev\_P\_net\_core\_dev\_11127\_8\_1328\_8\_S\_4096\_A\_64\_n\_139+0xc08/0x1000 \[slab object\]
FS:  0000000000000000(0000) GS:ffff888116000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000748f5372c000 CR3: 0000000015408000 CR4: 00000000003406f0 shadow CR4: 00000000003406f0
Stack:
 0000000000000000 ffffffff8a0c35e7 ffffffff8a0c3603 ffff8880aaa62c00
 ffff8880aaa62c00 0000000000000004 ffff88811145311c 0000000000000005
 0000000000000001 ffff8880aaa62000 fffffe8040b4fd40 ffffffff8a0c360d
Call Trace:
 \<TASK\>
 \[\<ffffffff8a0c360d\>\] \_\_list\_del\_entry\_valid include/linux/list.h:131 \[inline\] fffffe8040b4fc28
 \[\<ffffffff8a0c360d\>\] \_\_list\_del\_entry include/linux/list.h:248 \[inline\] fffffe8040b4fc28
 \[\<ffffffff8a0c360d\>\] list\_del include/linux/list.h:262 \[inl
---truncated---

## Affected and fixed versions

- Linux: \>= c986380c1d5274c4d5e935addc807d6791cc23eb, \< 7f86fb07db65a470d0c11f79da551bd9466357dc; \>= 5f1678346109ff3a6d229d33437fcba3cce9209d, \< 33eb925c0c26e86ca540a08254806512bf911f22; \>= 036f8d814a2cd11ee8ef62b8f3e7ce5dec0ee4f3, \< cb15bb1bde0ba97cbbed9508e45210dcafec3657; \>= efec287cbac92ac6ee8312a89221854760e13b34, \< b70fa591b066d52b141fc430ffdee35b6cc87a66; \>= bb11f992f5a475bc68ef959f17a55306f0328495, \< 9d03e7e37187ae140e716377599493987fb20c5b; \>= 86f73d4ab2f27deeff22ba9336ad103d94f12ac7, \< ff81b14010362f6188ca26fec22ff05e4da45595; \>= eb28fd76c0a08a47b470677c6cef9dd1c60e92d1, \< 37e7644b961600ef0beb01d3970c3034a62913af; \>= eb28fd76c0a08a47b470677c6cef9dd1c60e92d1, \< 4ccacf86491d33d2486b62d4d44864d7101b299d; \>= 5.4.290, \< 5.4.291; \>= 5.10.234, \< 5.10.235; … (cvelist)
- Linux: 6.13 (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-21865. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21865.md
Affected: Linux >= c986380c1d5274c4d5e935addc807d6791cc23eb, < 7f86fb07db65a470d0c11f79da551bd9466357dc; >= 5f1678346109ff3a6d229d33437fcba3cce9209d, < 33eb925c0c26e86ca540a08254806512bf911f22; >= 036f8d814a2cd11ee8ef62b8f3e7ce5dec0ee4f3, < cb15bb1bde0ba97cbbed9508e45210dcafec3657; >= efec287cbac92ac6ee8312a…
Fixed in: Linux 7f86fb07db65a470d0c11f79da551bd9466357dc, Linux 33eb925c0c26e86ca540a08254806512bf911f22, Linux 9d03e7e37187ae140e716377599493987fb20c5b, Linux 37e7644b961600ef0beb01d3970c3034a62913af, Linux 4ccacf86491d33d2486b62d4d44864d7101b299d, Linux 5.4.291, Linux 5.10.235

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-21865 being exploited?

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

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

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

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

Linux \>= c986380c1d5274c4d5e935addc807d6791cc23eb, \< 7f86fb07db65a470d0c11f79da551bd9466357dc; \>= 5f1678346109ff3a6d229d33437fcba3cce9209d, \< 33eb925c0c26e86ca540a08254806512bf911f22; \>= 036f8d814a2cd11ee8ef62b8f3e7ce5dec0ee4f3, \< cb15bb1bde0ba97cbbed9508e45210dcafec3657; \>= efec287cbac92ac6ee8312a89221854760e13b34, \< b70fa591b066d52b141fc430ffdee35b6cc87a66; \>= bb11f992f5a475bc68ef959f17a55306f0328495, \< 9d03e7e37187ae140e716377599493987fb20c5b; \>= 86f73d4ab2f27deeff22ba9336ad103d94f12ac7, \< ff81b14010362f6188ca26fec22ff05e4da45595; \>= eb28fd76c0a08a47b470677c6cef9dd1c60e92d1, \< 37e7644b961600ef0beb01d3970c3034a62913af; \>= eb28fd76c0a08a47b470677c6cef9dd1c60e92d1, \< 4ccacf86491d33d2486b62d4d44864d7101b299d; \>= 5.4.290, \< 5.4.291; \>= 5.10.234, \< 5.10.235; …; Linux 6.13.

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

Yes. Fixed in Linux 7f86fb07db65a470d0c11f79da551bd9466357dc, Linux 33eb925c0c26e86ca540a08254806512bf911f22, Linux 9d03e7e37187ae140e716377599493987fb20c5b, Linux 37e7644b961600ef0beb01d3970c3034a62913af, Linux 4ccacf86491d33d2486b62d4d44864d7101b299d, Linux 5.4.291, Linux 5.10.235. No fix listed yet: follow the vendor advisory.

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

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/7f86fb07db65a470d0c11f79da551bd9466357dc>
- patch: <https://git.kernel.org/stable/c/33eb925c0c26e86ca540a08254806512bf911f22>
- patch: <https://git.kernel.org/stable/c/cb15bb1bde0ba97cbbed9508e45210dcafec3657>
- patch: <https://git.kernel.org/stable/c/b70fa591b066d52b141fc430ffdee35b6cc87a66>
- patch: <https://git.kernel.org/stable/c/9d03e7e37187ae140e716377599493987fb20c5b>
- patch: <https://git.kernel.org/stable/c/ff81b14010362f6188ca26fec22ff05e4da45595>
- patch: <https://git.kernel.org/stable/c/37e7644b961600ef0beb01d3970c3034a62913af>
- patch: <https://git.kernel.org/stable/c/4ccacf86491d33d2486b62d4d44864d7101b299d>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.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-21865>

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