CVE-2026-139343: ipv4: use RCU protection in inet_netconf_get_devconf()

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ipv4: use RCU protection in inetnetconfgetdevconf()

inetnetconfgetdevconf() runs without RTNL. It uses devgetbyindex() and indevget() to pin the device and its indevice while the reply is allocated and filled.

indevget() is not safe for a lockless caller. Since commit 9d40c84cf5bc ("net: devinet: Reduce refcount before grace period"), inetdevdestroy() drops the final reference before the RCU grace period. A reader can load dev->ipptr, then call refcountinc() on a zero refcount after indevfreercu() has been queued, and keep using the indevice once it has been freed.

None of these references are needed. An indevice is freed after an RCU grace period, ipv4devconf is embedded in it, and inetnetconffilldevconf() does not sleep.

Allocate the skb first, then perform the lookup and the fill under rcureadlock(), using devgetbyindexrcu() and indevgetrcu(), like inetnetconfdumpdevconf() already does.

Affected Software

7 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.9.0<6.12.119
6.12.119
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6
debian/linux*
debian/linux<7.3.6-1
7.3.6-1
debian/linux<=6.12.117-1, <=6.12.118-1
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.119
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1

Event History

Nov 30, 2026
CVE Published
via MITRE·01:33 PM
Data Sourced
via MITRE·01:33 PM
Description
Data Sourced
via OSV·01:33 PM
DescriptionAffected Software
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

What conditions are required for this race to occur?

The vulnerable path must run without RTNL while a network device and its associated in_device are being destroyed. A reader can obtain dev->ip_ptr and attempt to increment the in_device reference after its final reference was dropped and RCU freeing has been queued.

2

What is the resulting failure mode?

The reader can retain and use an in_device after it has been freed, creating a use-after-free condition while filling IPv4 device configuration data.

3

What does the resolved implementation change?

It allocates the skb before the lookup, then performs the device lookup and configuration fill under rcu_read_lock(). It uses dev_get_by_index_rcu() and __in_dev_get_rcu() rather than taking unsafe references with dev_get_by_index() and in_dev_get().

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203