PT-2026-163384
CVE-2026-139343
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
CVSS 3.1
7.8
HighMetricsAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
In the Linux kernel, the following vulnerability has been resolved:
ipv4: use RCU protection in inet netconf get devconf()
inet netconf get devconf() runs without RTNL. It uses dev get by index()
and in dev get() to pin the device and its in device while the reply is
allocated and filled.
in dev get() is not safe for a lockless caller. Since commit 9d40c84cf5bc
("net: devinet: Reduce refcount before grace period"), inetdev destroy()
drops the final reference before the RCU grace period. A reader can load
dev->ip ptr, then call refcount inc() on a zero refcount after
in dev free rcu() has been queued, and keep using the in device once it
has been freed.
None of these references are needed. An in device is freed after an RCU
grace period, ipv4 devconf is embedded in it, and
inet netconf fill devconf() does not sleep.
Allocate the skb first, then perform the lookup and the fill under
rcu read lock(), using dev get by index rcu() and in dev get rcu(),
like inet netconf dump devconf() already does.
Found an issue in the description? Have something to add? Feel free to write us 👾