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


- **Severity:** High 7.8 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 30 Nov 2026
- **Updated:** 1 Dec 2026
- **Also known as:** BELL-CVE-2026-139343, DEBIAN-CVE-2026-139343, GHSA-4f6q-vqhc-rj3v, UBUNTU-CVE-2026-139343

## What is CVE-2026-139343?

CVE-2026-139343 is a high-severity vulnerability in Linux, published on 30 Nov 2026. 

### Official 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.

## Which versions are affected by CVE-2026-139343?


## How do I fix CVE-2026-139343?

Upgrade to a fixed version.

## Is CVE-2026-139343 being exploited?

There is no known exploitation of CVE-2026-139343 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-139343 and fix it if it is affected.

What it is: CVE-2026-139343 is a high-severity vulnerability in Linux, published on 30 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-139343 in the wild and no public exploit code.

Affected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-139343/ (Markdown: https://insights.sbomify.com/CVE-2026-139343/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-139343
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-139343
- OSV: https://osv.dev/vulnerability/CVE-2026-139343

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-139343/
Summaries are generated and may contain mistakes; the official description above is the record.
