Menu

Star on GitHub · 3.2k

CVE-2025-38271

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: net: prevent a NULL deref in rtnl_create_link() At the time rtnl_create_link() is running, dev->netdev_ops is NULL, we must not…

Published Jul 10, 2025CWE-476EPSS 0.16%

Overview

CVE-2025-38271 is a medium-severity vulnerability. It was published on July 10, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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:

net: prevent a NULL deref in rtnl_create_link()

At the time rtnl_create_link() is running, dev->netdev_ops is NULL,

we must not use netdev_lock_ops() or risk a NULL deref if

CONFIG_NET_SHAPER is defined.

Use netif_set_group() instead of dev_set_group().

RIP: 0010:netdev_need_ops_lock include/net/netdev_lock.h:33 [inline]

RIP: 0010:netdev_lock_ops include/net/netdev_lock.h:41 [inline]

RIP: 0010:dev_set_group+0xc0/0x230 net/core/dev_api.c:82

Call Trace:

<TASK>

rtnl_create_link+0x748/0xd10 net/core/rtnetlink.c:3674

rtnl_newlink_create+0x25c/0xb00 net/core/rtnetlink.c:3813

__rtnl_newlink net/core/rtnetlink.c:3940 [inline]

rtnl_newlink+0x16d6/0x1c70 net/core/rtnetlink.c:4055

rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6944

netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2534

netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline]

netlink_unicast+0x75b/0x8d0 net/netlink/af_netlink.c:

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-38271?

CVE-2025-38271 is a medium-severity vulnerability. It was published on July 10, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2025-38271?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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-38271?

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-38271?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-38271 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 MEDIUM CVEs from 2025

View all