CVE-2026-46120: Use-after-free in Linux kernel IPv6 ERSPAN namespace handling
- Vendor
- Linux
CVE-2026-46120 is a use-after-free vulnerability in the Linux kernel's IPv6 ERSPAN tunnel handling. Following tunnel migration between network namespaces using IFLA_NET_NS_FD, ip6erspan_changelink() uses dev_net(dev) rather than the tunnel's cached t->net to select the per-network-namespace IPv6 GRE hash. This reinserts the tunnel into the wrong namespace's hash and leaves a stale entry in the original namespace. When the original namespace is destroyed, ip6gre_exit_rtnl_net() traverses the stale entry, triggering a slab-use-after-free followed by a kernel BUG in unregister_netdevice_many_notify(). The vulnerable path is reachable through an unprivileged user namespace.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A local attacker can trigger kernel memory-safety violations and a kernel BUG during network namespace teardown, potentially crashing the host and denying service to workloads sharing its kernel. Privilege escalation, arbitrary code execution, and information disclosure are not established for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Pending patching, restrict untrusted local access and, where operationally feasible, disable unprivileged user namespace creation to block the documented unprivileged attack path. Restrict IPv6 ERSPAN tunnel administration and avoid migrating and subsequently modifying these tunnels across network namespaces. Disabling unprivileged user namespaces does not eliminate exposure to users who already possess the necessary namespace and network-administration privileges.
Remediation
Patch, then assume compromise.
Install the applicable vendor kernel update and reboot into the patched kernel. The fix changes ip6erspan_changelink() to use the cached t->net for namespace lookup, preserving correct tunnel hash membership after namespace migration. Identified fixed builds include 6.12.0-55.102.1.el10_0 for RHEL 10.0 Extended Update Support under RHSA-2026:62609 and 4.18.0-305.206.1.el8_4 for the specified RHEL 8.4 support streams under RHSA-2026:65710. Other products require their corresponding vendor-supported kernel updates.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-46120 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2026-46120 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-46120?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2026-46120.
- Is there a patch for CVE-2026-46120?
- Install the applicable vendor kernel update and reboot into the patched kernel. The fix changes ip6erspan_changelink() to use the cached t->net for namespace lookup, preserving correct tunnel hash membership after namespace migration.
- What products are affected by CVE-2026-46120?
- Linux Kernel.
- How severe is CVE-2026-46120?
- CVE-2026-46120 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.17% (4th percentile) as of Oct 25, 2026.
Recent activity
43 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.