CVE-2025-22021: netfilter: socket: Lookup orig tuple for IPv6 SNAT
In the Linux kernel, the following vulnerability has been resolved:
netfilter: socket: Lookup orig tuple for IPv6 SNAT
nf_sk_lookup_slow_v4 does the conntrack lookup for IPv4 packets to
restore the original 5-tuple in case of SNAT, to be able to find the
right socket (if any). Then socket_match() can correctly check whether
the socket was transparent.
However, the IPv6 counterpart (nf_sk_lookup_slow_v6) lacks this
conntrack lookup, making xt_socket fail to match on the socket when the
packet was SNATed. Add the same logic to nf_sk_lookup_slow_v6.
IPv6 SNAT is used in Kubernetes clusters for pod-to-world packets, as
pods' addresses are in the fd00::/8 ULA subnet and need to be replaced
with the node's external address. Cilium leverages Envoy to enforce L7
policies, and Envoy uses transparent sockets. Cilium inserts an iptables
prerouting rule that matches on `-m socket --transparent` and redirects
the packets to localhost, but it fails to match SNATed IPv6 packets due
to that missing conntrack lookup.
Security readout for executives and security teams
Plain-English summary
A Linux IPv6 networking flaw can prevent SNATed Kubernetes traffic from being recognized by transparent sockets. In the described Cilium and Envoy design, affected traffic may avoid the intended redirection into layer-seven policy enforcement. The supplied record rates it critical, but its narrative does not establish general remote kernel compromise.
Executive priority
Prioritize prompt assessment and patching where IPv6 Kubernetes traffic relies on Cilium and Envoy transparent-socket redirection. Potential failure of an enforcement control is business-significant. Avoid assuming every Linux host faces critical exposure; configuration and vendor backport status materially determine risk.
Technical view
The IPv6 nf_sk_lookup_slow_v6 path omitted the conntrack lookup used by IPv4 to recover a packet’s original tuple after SNAT. Consequently, xt_socket --transparent may not match and redirect affected IPv6 traffic. Linux stable commits add the missing lookup. Exact exposure depends on kernel version, backports, IPv6 SNAT, and transparent-socket policy architecture.
Likely exposure
Most relevant to Linux systems using IPv6 SNAT with transparent socket matching, particularly Kubernetes deployments combining Cilium, Envoy, and iptables-based redirection. Systems without this traffic path may be unaffected operationally. The bundle’s affected-version data is insufficient for dependable package-level conclusions, so distribution backports must be checked.
Exploitation context
The bundle reports that this CVE is not in KEV and provides no evidence of active exploitation or a public exploit. The described consequence is a network-policy enforcement failure under a specific IPv6 SNAT configuration, not demonstrated arbitrary code execution. Treat possible policy bypass as the principal risk supported by the sources.
Researcher notes
The supplied CVSS 10 vector asserts complete confidentiality, integrity, and availability impact, while the technical narrative specifically documents failed socket matching and redirection. It does not substantiate memory corruption, privilege escalation, or remote code execution. Researchers should distinguish the confirmed policy-path failure from broader impacts and independently map stable commits to distribution kernels.
Mitigation direction
Install a vendor-supported kernel containing the applicable Linux stable fix or backport.
Check Linux distribution and Kubernetes platform advisories for package-specific fixed versions.
Prioritize clusters using IPv6 SNAT, Cilium, Envoy, and transparent socket redirection.
If patching is delayed, obtain supported compensating controls from Linux and Cilium vendors.
Validation and detection
Inventory kernel and distribution package versions across Kubernetes nodes and network gateways.
Identify environments using IPv6 SNAT with xt_socket transparent matching.
Confirm whether Cilium redirects IPv6 pod egress through Envoy for layer-seven enforcement.
Verify installed packages include an applicable referenced stable commit or vendor backport.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
description · low confidence lookup
Container behavior lookup
The affected technology mentions containers, so container-specific ATT&CK technique review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
12Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.