CVE-2025-22021: netfilter: socket: Lookup orig tuple for IPv6 SNAT

Published Apr 16, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

netfilter: socket: Lookup orig tuple for IPv6 SNAT

nfsklookupslowv4 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 socketmatch() can correctly check whether the socket was transparent.

However, the IPv6 counterpart (nfsklookupslowv6) lacks this conntrack lookup, making xtsocket fail to match on the socket when the packet was SNATed. Add the same logic to nfsklookupslowv6.

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.

Affected Software

9 affected components
Linux Linux kernel
Linux Linux kernel>=3.13<5.4.292
Linux Linux kernel>=5.5<5.10.236
Linux Linux kernel>=5.11<5.15.180
Linux Linux kernel>=5.16<6.1.133
Linux Linux kernel>=6.2<6.6.86
Linux Linux kernel>=6.7<6.12.22
Linux Linux kernel>=6.13<6.13.10
Linux Linux kernel=6.14

Event History

Apr 16, 2025
CVE Published
via MITRE·10:20 AM
Data Sourced
via MITRE·10:20 AM
DescriptionSeverity
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-22021?

CVE-2025-22021 has been classified as a moderate severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-22021?

To mitigate CVE-2025-22021, you should update to the latest patched version of the Linux kernel.

3

What type of vulnerability is CVE-2025-22021?

CVE-2025-22021 is a networking vulnerability related to the netfilter subsystem in the Linux kernel.

4

Which systems are affected by CVE-2025-22021?

CVE-2025-22021 affects systems running the Linux kernel with conntrack support enabled.

5

When was CVE-2025-22021 disclosed?

CVE-2025-22021 was disclosed as part of a series of fixes related to networking in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203