cve.bz

CVE-2026-31579 linux linux kernel: NULL Pointer Dereference

5.5 mediumEPSS 0.2%Fix available

Medium (5.5) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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. ]

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 5th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-11-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-31579 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-31579?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-31579?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-31579 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linuxfrom 5.7.7 before 5.8
Linux5.8 and later

Fixed in

ProductRelease lineFixed in
Linux6.126.12.114
Linux6.186.18.24
Linux6.196.19.14
Linux7.07.0.1
Linuxlater releases7.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linuxno fix listedDEBIAN-CVE-2026-31579
Debian12linux-6.126.12.115-2~deb12u1DEBIAN-CVE-2026-31579
Debian13linux6.12.115-2DEBIAN-CVE-2026-31579
Debian14linux6.19.14-1DEBIAN-CVE-2026-31579
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2026-31579
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2026-31579
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2026-31579
Ubuntu22.04:LTSlinux, linux-aws, linux-gcp and 57 moreno fix listedUBUNTU-CVE-2026-31579
Ubuntu24.04:LTSlinux, linux-aws, linux-gcp and 42 moreno fix listedUBUNTU-CVE-2026-31579
Ubuntu24.04:LTSlinux-hwe-7.07.0.0-28.28~24.04.1UBUNTU-CVE-2026-31579 USN-8569-1
Ubuntu25.10linux, linux-aws, linux-gcp and 6 moreno fix listedUBUNTU-CVE-2026-31579
Ubuntu26.04:LTSlinux7.0.0-27.27UBUNTU-CVE-2026-31579 USN-8488-1
Ubuntu26.04:LTSlinux-aws7.0.0-1008.8UBUNTU-CVE-2026-31579 USN-8488-1
Ubuntu26.04:LTSlinux-azure7.0.0-1010.10UBUNTU-CVE-2026-31579 USN-8603-1
Ubuntu26.04:LTSlinux-gcp, linux-oracle7.0.0-1007.7UBUNTU-CVE-2026-31579 USN-8488-1
Ubuntu26.04:LTSlinux-ibm, linux-azure-fde7.0.0-1009.9UBUNTU-CVE-2026-31579 USN-8488-1 USN-8603-1
8 more for Ubuntu in the JSON and on Ubuntu's page.
SUSELinux Micro Extras 6.2kernel-syms, kernel-obs-build6.12.0-160000.33.1SUSE-SU-2026:21834-1
openSUSETumbleweedkernel-source7.0.3-1.1openSUSE-SU-2026:10703-1
Azure Linux3kernelno fix listedAZL-83828
Alpaquita23linux-ltsno fix listedBELL-CVE-2026-31579
Alpaquita25linux-lts6.12.115-r0BELL-CVE-2026-31579
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2026-31579

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This Moderate flaw in the Linux kernel's WireGuard component allows a local attacker to trigger a Denial of Service. A local user can cause a hung task by creating contention for the `rtnl_lock()` during network namespace teardown. This vulnerability affects Red Hat Enterprise Linux 9 and 10.

Red Hat's mitigation

To mitigate this issue, if the WireGuard VPN is not actively used, the `wireguard` kernel module can be prevented from loading. This can be achieved by creating a blacklist rule in `/etc/modprobe.d/`.

Example:

`echo "blacklist wireguard" | sudo tee /etc/modprobe.d/blacklist-wireguard.conf`

`sudo dracut -f`

A system reboot is required for the changes to take effect. This action will disable all WireGuard VPN functionality on the system.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernelFix deferred
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelFix deferred
Red Hat Enterprise Linux 9kernel-rtFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-31579.

References

Check your stackJSON