Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
High

Linux kernel ip6_gre/ip6erspan use-after-free in ip6erspan_changelink()

IdentifiersCVE-2026-46120CWE-416

CVE-2026-46120 is a Linux kernel vulnerability in the ip6_gre subsystem, specifically in ip6erspan_changelink(). After commit 5e72ce3e3980 changed newlink() handling to use link_net for per-network-namespace resolution, ip6erspan_newlink() was updated accordingly, but ip6erspan_changelink() continued to use dev_net(dev) instead of the cached tunnel namespace pointer t->net. Following IFLA_NET_NS_FD-based network namespace migration, dev_net(dev) can differ from the tunnel's creation namespace. As a result, the tunnel can be reinserted into the wrong per-netns ip6gre hash while the original namespace retains a stale entry. When the original namespace is later torn down, ip6gre_exit_rtnl_net() may traverse that stale entry, leading to a KASAN-reported slab use-after-free and subsequently a kernel BUG in unregister_netdevice_many_notify() at net/core/dev.c involving LIST_POISON1.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can trigger kernel memory-safety corruption in the form of a slab use-after-free during network namespace teardown, followed by a kernel BUG. The practical impact is local denial of service via kernel crash/panic. Because the flaw is a use-after-free in kernel context, it also creates the potential for broader integrity and confidentiality impact depending on exploitability on a given kernel build, though the provided content specifically confirms the use-after-free and crash condition.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure by preventing untrusted local users from creating unprivileged user and network namespaces, since the issue is reachable from an unprivileged user namespace using unshare --user --map-root-user --net. More generally, restrict access to namespace creation and tunnel-management capabilities, and avoid allowing untrusted users to perform network namespace migration involving affected ip6erspan/ip6_gre tunnel configurations until patched.

Remediation

Patch, then assume compromise.

Update to a Linux kernel release containing the fix for CVE-2026-46120. The upstream remediation is to modify ip6erspan_changelink() to use the cached tunnel namespace pointer t->net rather than dev_net(dev), aligning changelink() behavior with the already-correct ip6gre_changelink() and ip6erspan_newlink() namespace handling. Vendor kernel updates from SUSE and stable-tree backports are available in fixed package releases and corresponding advisories.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

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.

VendorProductType
LinuxLinux Kerneloperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity1

Community discussion across Reddit, Mastodon, and other social sources.