CVE-2026-139343

ipv4: use RCU protection in inet_netconf_get_devconf()

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability in the Linux kernel arises from missing RCU protection in inet_netconf_get_devconf(), allowing an attacker to access a freed in_device structure after its reference count drops below zero. This use‑after‑free condition can corrupt memory and potentially lead to arbitrary code execution or a system crash, compromising confidentiality, integrity, and availability.

Affected Systems

The issue affects the Linux kernel across all distributions that include the uncovered code before the commit that adds RCU protection. No specific version range is listed, so any kernel containing the vulnerable function prior to the fix is impacted.

Risk and Exploitability

No CVSS score or EPSS data are provided, and the vulnerability is not listed in the CISA KEV catalog. Based on the nature of a use‑after‑free bug, the risk can be high if the attacker can invoke inet_netconf_get_devconf(), which is typically reachable via privileged network configuration interfaces. The likely attack vector is a local privileged user or a compromised network stack process triggering the function. Because the function runs without RTNL and directly accesses device structures, the exploitation conditions are minimal beyond having sufficient privileges to execute the call. No definitive exploitation evidence is known.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the RCU protection fix (commits after 9d40c84cf5bc).
  • If an immediate kernel upgrade is not possible, limit which users and processes can invoke the inet_netconf_get_devconf() operation by enforcing strict permissions on relevant sysctl or netlink interfaces.
  • Monitor kernel logs for RCU or memory corruption errors, and enable audit logging for network configuration changes to detect attempts to trigger the vulnerability.

Generated by OpenCVE AI on November 30, 2026 at 21:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description 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.
Title ipv4: use RCU protection in inet_netconf_get_devconf()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM