CVE-2026-31579 json
wireguard: device: use exit_rtnl callback instead of manual rtnl_lock in pre_exit
published 2026-04-24 6 mo ago modified 2026-11-05 3 d ago also EUVD-2026-25472
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 4%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
wireguard: device: use exit_rtnl callback instead of manual rtnl_lock in pre_exit
wg_netns_pre_exit() manually acquires rtnl_lock() inside the pernet .pre_exit callback. This causes a hung task when another thread holds rtnl_mutex - the cleanup_net workqueue (or the setup_net failure rollback path) blocks indefinitely in wg_netns_pre_exit() waiting to acquire the lock.
Convert to .exit_rtnl, introduced in commit 7a60d91c690b ("net: Add ->exit_rtnl() hook to struct pernet_operations."), where the framework already holds RTNL and batches all callbacks under a single rtnl_lock()/rtnl_unlock() pair, eliminating the contention window.
The rcu_assign_pointer(wg->creating_net, NULL) is safe to move from .pre_exit to .exit_rtnl (which runs after synchronize_rcu()) because all RCU readers of creating_net either use maybe_get_net() - which returns NULL for a dying namespace with zero refcount - or access net->user_ns which remains valid throughout the entire ops_undo_list sequence.
[ Jason: added __net_exit and __read_mostly annotations that were missing. ]
Patch / fix
- Linux Linux 5.8, 6.12.114, 6.18.24, 6.19.14, 7.0.1, 7.1
- linux Debian 13 6.12.115-2
- linux Debian 14 6.19.14-1
debian advisories DEBIAN-CVE-2026-31579
- linux Ubuntu 26.04 LTS 7.0.0-27.27
- linux-aws Ubuntu 26.04 LTS 7.0.0-1008.8
- linux-gcp Ubuntu 26.04 LTS 7.0.0-1007.7
- linux-ibm Ubuntu 26.04 LTS 7.0.0-1009.9
- linux-azure Ubuntu 26.04 LTS 7.0.0-1010.10
- linux-raspi Ubuntu 26.04 LTS 7.0.0-1014.14
- linux-riscv Ubuntu 26.04 LTS 7.0.0-27.27.1
- linux-nvidia Ubuntu 26.04 LTS 7.0.0-1013.13
ubuntu advisories UBUNTU-CVE-2026-31579
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-syms Linux Micro Extras 6.2 6.12.0-160000.33.1
- kernel-obs-build Linux Micro Extras 6.2 6.12.0-160000.33.1
suse advisories SUSE-SU-2026:21834-1
- kernel-source openSUSE Tumbleweed 7.0.3-1.1
opensuse advisories openSUSE-SU-2026:10703-1
- git.kernel.org/stable/c/707607db2193591b68c0e70f814133472c185b1e commit
- git.kernel.org/stable/c/9a9e69155b2091b8297afaf1533b8d68a3096841 commit
- git.kernel.org/stable/c/1c52ef00e391144334f10995985c2f256d4be982 commit
- git.kernel.org/stable/c/a1d0f6cbb962af29586e3e65a4bced1a5e39221f commit
- git.kernel.org/stable/c/60a25ef8dacb3566b1a8c4de00572a498e2a3bf9 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-31579 updated cvss 5.5
kernel: wireguard: device: use exit_rtnl callback instead of manual rtnl_lock in pre_exit
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelaffected: workaround, no fix available “Fix deferred”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 d ago
Exploit prediction
0.15% chance of exploitation in the next 30 days, higher than 4% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
- Technology feeds
References
- git.kernel.org /stable/c/707607db2193591b68c0e70f814133472c185b1e
-
git.kernel.org
/stable/c/9a9e69155b2091b8297afaf1533b8d68a3096841
patch
-
git.kernel.org
/stable/c/1c52ef00e391144334f10995985c2f256d4be982
patch
-
git.kernel.org
/stable/c/a1d0f6cbb962af29586e3e65a4bced1a5e39221f
patch
-
git.kernel.org
/stable/c/60a25ef8dacb3566b1a8c4de00572a498e2a3bf9
patch
Sources
- CVE List CVE-2026-31579
- NVD CVE-2026-31579
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.