CVE-2025-38271
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
10/07/2025
Last modified:
10/07/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
net: prevent a NULL deref in rtnl_create_link()<br />
<br />
At the time rtnl_create_link() is running, dev->netdev_ops is NULL,<br />
we must not use netdev_lock_ops() or risk a NULL deref if<br />
CONFIG_NET_SHAPER is defined.<br />
<br />
Use netif_set_group() instead of dev_set_group().<br />
<br />
RIP: 0010:netdev_need_ops_lock include/net/netdev_lock.h:33 [inline]<br />
RIP: 0010:netdev_lock_ops include/net/netdev_lock.h:41 [inline]<br />
RIP: 0010:dev_set_group+0xc0/0x230 net/core/dev_api.c:82<br />
Call Trace:<br />
<br />
rtnl_create_link+0x748/0xd10 net/core/rtnetlink.c:3674<br />
rtnl_newlink_create+0x25c/0xb00 net/core/rtnetlink.c:3813<br />
__rtnl_newlink net/core/rtnetlink.c:3940 [inline]<br />
rtnl_newlink+0x16d6/0x1c70 net/core/rtnetlink.c:4055<br />
rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6944<br />
netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2534<br />
netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline]<br />
netlink_unicast+0x75b/0x8d0 net/netlink/af_netlink.c:1339<br />
netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1883<br />
sock_sendmsg_nosec net/socket.c:712 [inline]