# CVE-2025-38271: net: prevent a NULL deref in rtnl\_create\_link()

> 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-07-10T07:41:53.126Z
- **Modified:** 2026-06-17T09:16:31.407Z

## Who should check

- Anyone running Linux \>= 7e4d784f5810bba76c4593791028e13cce4af547, \< 8a29ae8428a5c26f0b4471c2057d9e9415c53109; \>= 7e4d784f5810bba76c4593791028e13cce4af547, \< feafc73f3e6ae73371777a037d41d2e31c929636
- Anyone running Linux 6.15

## 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:1339
  netlink\_sendmsg+0x805/0xb30 net/netlink/af\_netlink.c:1883
  sock\_sendmsg\_nosec net/socket.c:712 \[inline\]

## Affected and fixed versions

- Linux: \>= 7e4d784f5810bba76c4593791028e13cce4af547, \< 8a29ae8428a5c26f0b4471c2057d9e9415c53109; \>= 7e4d784f5810bba76c4593791028e13cce4af547, \< feafc73f3e6ae73371777a037d41d2e31c929636 (cvelist)
- Linux: 6.15 (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-38271. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38271.md
Affected: Linux >= 7e4d784f5810bba76c4593791028e13cce4af547, < 8a29ae8428a5c26f0b4471c2057d9e9415c53109; >= 7e4d784f5810bba76c4593791028e13cce4af547, < feafc73f3e6ae73371777a037d41d2e31c929636; Linux 6.15
Fixed in: Linux 8a29ae8428a5c26f0b4471c2057d9e9415c53109

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

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

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

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

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

Linux \>= 7e4d784f5810bba76c4593791028e13cce4af547, \< 8a29ae8428a5c26f0b4471c2057d9e9415c53109; \>= 7e4d784f5810bba76c4593791028e13cce4af547, \< feafc73f3e6ae73371777a037d41d2e31c929636; Linux 6.15.

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

Yes. Fixed in Linux 8a29ae8428a5c26f0b4471c2057d9e9415c53109. No fix listed yet: follow the vendor advisory.

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

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/8a29ae8428a5c26f0b4471c2057d9e9415c53109>
- patch: <https://git.kernel.org/stable/c/feafc73f3e6ae73371777a037d41d2e31c929636>

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

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