CVE-2025-22021

netfilter: socket: Lookup orig tuple for IPv6 SNAT

10.0 critical EPSS 0.48%

Published 16 Apr 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2025-22021

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-22021 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Severity (CVSS)

10.0 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
changed: the damage reaches other components, such as the host of a container or other users
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.48%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 43.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 15 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
total: full control of the component or of its data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from eb31628e37a0a4e01fffd79dcc7f815d2357f53a, before 6488b96a79a26e19100ad872622f04e93b638d7f
affected from eb31628e37a0a4e01fffd79dcc7f815d2357f53a, before 58ab63d3ded2ca6141357a2b24eee8453d0f871d
affected from eb31628e37a0a4e01fffd79dcc7f815d2357f53a, before 1ca2169cc19dca893c7aae6af122852097435d16
affected from eb31628e37a0a4e01fffd79dcc7f815d2357f53a, before 1ec43100f7123010730b7ddfc3d5c2eac19e70e7
affected from eb31628e37a0a4e01fffd79dcc7f815d2357f53a, before 5251041573850e5020cd447374e23010be698898
affected from eb31628e37a0a4e01fffd79dcc7f815d2357f53a, before 2bb139e483f8cbe488d19d8c1135ac3615e2668c
affected from eb31628e37a0a4e01fffd79dcc7f815d2357f53a, before 41904cbb343d115931d6bf79aa2c815cac4ef72b
affected from eb31628e37a0a4e01fffd79dcc7f815d2357f53a, before 221c27259324ec1404f028d4f5a0f2ae7f63ee23
affected from eb31628e37a0a4e01fffd79dcc7f815d2357f53a, before 932b32ffd7604fb00b5c57e239a3cc4d901ccf6e
Other versions: unaffected
Linux
affected 3.13
unaffected before 3.13
unaffected from 5.4.292 up to and including 5.4.*
unaffected from 5.10.236 up to and including 5.10.*
unaffected from 5.15.180 up to and including 5.15.*
unaffected from 6.1.133 up to and including 6.1.*
unaffected from 6.6.86 up to and including 6.6.*
unaffected from 6.12.22 up to and including 6.12.*
unaffected from 6.13.10 up to and including 6.13.*
unaffected from 6.14.1 up to and including 6.14.*
unaffected 6.15 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-22021 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-22021

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-22021
trivy image --scanners vuln IMAGE | grep CVE-2025-22021

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-22021 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.