{"id":"CVE-2025-22021","aliases":["CVE-2025-22021"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: socket: Lookup orig tuple for IPv6 SNAT","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: socket: Lookup orig tuple for IPv6 SNAT\n\nnf_sk_lookup_slow_v4 does the conntrack lookup for IPv4 packets to\nrestore the original 5-tuple in case of SNAT, to be able to find the\nright socket (if any). Then socket_match() can correctly check whether\nthe socket was transparent.\n\nHowever, the IPv6 counterpart (nf_sk_lookup_slow_v6) lacks this\nconntrack lookup, making xt_socket fail to match on the socket when the\npacket was SNATed. Add the same logic to nf_sk_lookup_slow_v6.\n\nIPv6 SNAT is used in Kubernetes clusters for pod-to-world packets, as\npods' addresses are in the fd00::/8 ULA subnet and need to be replaced\nwith the node's external address. Cilium leverages Envoy to enforce L7\npolicies, and Envoy uses transparent sockets. Cilium inserts an iptables\nprerouting rule that matches on `-m socket --transparent` and redirects\nthe packets to localhost, but it fails to match SNATed IPv6 packets due\nto that missing conntrack lookup.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: socket: Lookup orig tuple for IPv6 SNAT\n\nnf_sk_lookup_slow_v4 does the conntrack lookup for IPv4 packets to\nrestore the original 5-tuple in case of SNAT, to be able to find the\nright socket (if any). Then socket_match() can correctly check whether\nthe socket was transparent.\n\nHowever, the IPv6 counterpart (nf_sk_lookup_slow_v6) lacks this\nconntrack lookup, making xt_socket fail to match on the socket when the\npacket was SNATed. Add the same logic to nf_sk_lookup_slow_v6.\n\nIPv6 SNAT is used in Kubernetes clusters for pod-to-world packets, as\npods' addresses are in the fd00::/8 ULA subnet and need to be replaced\nwith the node's external address. Cilium leverages Envoy to enforce L7\npolicies, and Envoy uses transparent sockets. Cilium inserts an iptables\nprerouting rule that matches on `-m socket --transparent` and redirects\nthe packets to localhost, but it fails to match SNATed IPv6 packets due\nto that missing conntrack lookup.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: netfilter: socket: Lookup orig tuple for IPv6 SNAT nf_sk_lookup_slow_v4 realiza la búsqueda conntrack de paquetes IPv4 para restaurar la 5-tupla original en caso de SNAT, para poder encontrar el socket correcto (si lo hay). Entonces socket_match() puede verificar correctamente si el socket era transparente. Sin embargo, la contraparte IPv6 (nf_sk_lookup_slow_v6) carece de esta búsqueda conntrack, lo que hace que xt_socket no coincida en el socket cuando el paquete fue SNATed. Agregue la misma lógica a nf_sk_lookup_slow_v6. SNAT IPv6 se usa en clústeres de Kubernetes para paquetes pod-to-world, ya que las direcciones de los pods están en la subred fd00::/8 ULA y deben reemplazarse con la dirección externa del nodo. Cilium utiliza Envoy para implementar políticas L7, y Envoy utiliza sockets transparentes. Cilium inserta una regla de preenrutamiento de iptables que coincide con `-m socket --transparent` y redirige los paquetes a localhost, pero no coincide con los paquetes IPv6 SNAT debido a la falta de búsqueda de conntrack.","source":"nvd"}],"published":"2025-04-16T10:20:37.695Z","modified":"2026-10-15T22:18:13.463Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"eb31628e37a0a4e01fffd79dcc7f815d2357f53a","fixed":"6488b96a79a26e19100ad872622f04e93b638d7f","status":"affected"},{"type":"git","introduced":"eb31628e37a0a4e01fffd79dcc7f815d2357f53a","fixed":"58ab63d3ded2ca6141357a2b24eee8453d0f871d","status":"affected"},{"type":"git","introduced":"eb31628e37a0a4e01fffd79dcc7f815d2357f53a","fixed":"1ca2169cc19dca893c7aae6af122852097435d16","status":"affected"},{"type":"git","introduced":"eb31628e37a0a4e01fffd79dcc7f815d2357f53a","fixed":"1ec43100f7123010730b7ddfc3d5c2eac19e70e7","status":"affected"},{"type":"git","introduced":"eb31628e37a0a4e01fffd79dcc7f815d2357f53a","fixed":"5251041573850e5020cd447374e23010be698898","status":"affected"},{"type":"git","introduced":"eb31628e37a0a4e01fffd79dcc7f815d2357f53a","fixed":"2bb139e483f8cbe488d19d8c1135ac3615e2668c","status":"affected"},{"type":"git","introduced":"eb31628e37a0a4e01fffd79dcc7f815d2357f53a","fixed":"41904cbb343d115931d6bf79aa2c815cac4ef72b","status":"affected"},{"type":"git","introduced":"eb31628e37a0a4e01fffd79dcc7f815d2357f53a","fixed":"221c27259324ec1404f028d4f5a0f2ae7f63ee23","status":"affected"},{"type":"git","introduced":"eb31628e37a0a4e01fffd79dcc7f815d2357f53a","fixed":"932b32ffd7604fb00b5c57e239a3cc4d901ccf6e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.13","status":"unaffected"},{"type":"semver","introduced":"5.4.292","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.236","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.180","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.133","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.86","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.22","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.10","lastAffected":"6.13.*","status":"unaffected"},{"type":"semver","introduced":"6.14.1","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.13","fixed":"5.4.292"},{"status":"affected","introduced":"5.5","fixed":"5.10.236"},{"status":"affected","introduced":"5.11","fixed":"5.15.180"},{"status":"affected","introduced":"5.16","fixed":"6.1.133"},{"status":"affected","introduced":"6.2","fixed":"6.6.86"},{"status":"affected","introduced":"6.7","fixed":"6.12.22"},{"status":"affected","introduced":"6.13","fixed":"6.13.10"},{"status":"affected","version":"6.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/6488b96a79a26e19100ad872622f04e93b638d7f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/58ab63d3ded2ca6141357a2b24eee8453d0f871d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1ca2169cc19dca893c7aae6af122852097435d16","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1ec43100f7123010730b7ddfc3d5c2eac19e70e7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5251041573850e5020cd447374e23010be698898","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2bb139e483f8cbe488d19d8c1135ac3615e2668c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/41904cbb343d115931d6bf79aa2c815cac4ef72b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/221c27259324ec1404f028d4f5a0f2ae7f63ee23","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/932b32ffd7604fb00b5c57e239a3cc4d901ccf6e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-15T21:44:08.710Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-22021","url":"https://www.cve.org/CVERecord?id=CVE-2025-22021","licence":"CVE Terms of Use","modified":"2026-10-15T21:51:56.689Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-22021","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22021","licence":"Public domain","modified":"2026-10-15T22:18:13.463Z"}],"updatedAt":"2026-11-25T22:58:56.547Z","epss":{"score":0.0048,"percentile":0.43074,"date":"2026-12-01T12:00:22.000Z"}}