Menu

Star on GitHub · 3.3k

CVE-2025-21678

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: gtp: Destroy device along with udp socket's netns dismantle.

Published Jan 31, 2025EPSS 0.24%

Overview

CVE-2025-21678 is a high-severity vulnerability. It was published on January 31, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

gtp: Destroy device along with udp socket's netns dismantle.

gtp_newlink() links the device to a list in dev_net(dev) instead of

src_net, where a udp tunnel socket is created.

Even when src_net is removed, the device stays alive on dev_net(dev).

Then, removing src_net triggers the splat below. [0]

In this example, gtp0 is created in ns2, and the udp socket is created

in ns1.

ip netns add ns1

ip netns add ns2

ip -n ns1 link add netns ns2 name gtp0 type gtp role sgsn

ip netns del ns1

Let's link the device to the socket's netns instead.

Now, gtp_net_exit_batch_rtnl() needs another netdev iteration to remove

all gtp devices in the netns.

[0]:

ref_tracker: net notrefcnt@000000003d6e7d05 has 1/2 users at

sk_alloc (./include/net/net_namespace.h:345 net/core/sock.c:2236)

inet_create (net/ipv4/af_inet.c:326 net/ipv4/af_inet.c:252)

__sock_create (net/socket.c:1558)

udp_sock_create4 (net/ipv4/u

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-21678?

CVE-2025-21678 is a high-severity vulnerability. It was published on January 31, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-21678?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-21678?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-21678?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-21678 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2025

View all
LiveWatch live →