Advisory
UBUNTU-CVE-2025-22021
Also known as: CVE-2025-22021
Summary
The record has no summary.
Details
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
Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Dates
- Published
- 2025-04-16 11:15 UTC
- Modified
- 2026-11-17 11:22 UTC
Affected packages and fixes
| Package | System | Affected | Fix |
|---|---|---|---|
| linux-hwe-edge | Debian packages (deb) · Ubuntu 16.04 | introduced 0 | No fixed version is listed. |
| linux-aws-5.0 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-aws-5.3 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-azure | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-azure-5.3 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-azure-edge | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-gcp | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-gcp-5.3 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-gke-4.15 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-gke-5.4 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-gkeop-5.4 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-hwe | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-hwe-edge | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-oem | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-oracle-5.0 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-oracle-5.3 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-aws-5.11 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-aws-5.13 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-aws-5.8 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-azure-5.11 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-azure-5.13 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-azure-5.8 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-azure-fde | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-gcp-5.11 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-gcp-5.13 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-gcp-5.8 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-gke | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-gke-5.15 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-gkeop | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-gkeop-5.15 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-hwe-5.11 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-hwe-5.13 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-hwe-5.8 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-intel-5.13 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-oem-5.10 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-oem-5.13 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-oem-5.14 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-oem-5.6 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-oracle-5.11 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-oracle-5.13 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-oracle-5.8 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-raspi2 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-riscv | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-riscv-5.11 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-riscv-5.8 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-allwinner-5.19 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-aws | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-aws-5.19 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-aws-6.2 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-aws-6.5 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-aws-6.8 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-azure | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-azure-5.19 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-azure-6.2 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-azure-6.5 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-azure-6.8 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-azure-fde | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-azure-fde-5.19 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-azure-fde-6.2 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-gcp | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-gcp-5.19 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-gcp-6.2 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-gcp-6.5 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-gcp-6.8 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-gke | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-gkeop | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-hwe-5.19 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-hwe-6.2 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-hwe-6.5 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-hwe-6.8 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-ibm | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-ibm-6.8 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-intel-iot-realtime | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-intel-iotg | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-kvm | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-lowlatency | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-lowlatency-hwe-5.19 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-lowlatency-hwe-6.2 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-lowlatency-hwe-6.5 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-lowlatency-hwe-6.8 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-nvidia | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-nvidia-6.2 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-nvidia-6.5 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-nvidia-6.8 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-nvidia-tegra | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-nvidia-tegra-igx | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-oem-5.17 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-oem-6.0 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-oem-6.1 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-oem-6.5 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-oracle | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-oracle-6.5 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-oracle-6.8 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-raspi | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-realtime | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-riscv | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-riscv-5.19 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-riscv-6.5 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-riscv-6.8 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-starfive-5.19 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-starfive-6.2 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-starfive-6.5 | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-xilinx-zynqmp | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-aws | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-azure | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-azure-6.11 | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-azure-nvidia | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-gcp | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-gcp-6.11 | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-gke | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-gkeop | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-hwe-6.11 | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-ibm | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-intel | Debian packages (deb) · Ubuntu 24.04 | introduced 0 | No fixed version is listed. |
| linux-lowlatency | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-lowlatency-hwe-6.11 | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-nvidia | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-nvidia-6.11 | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-nvidia-lowlatency | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-nvidia-tegra | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-oem-6.11 | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-oem-6.8 | Debian packages (deb) · Ubuntu 24.04 | introduced 0 | No fixed version is listed. |
| linux-oracle | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-raspi | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-raspi-realtime | Debian packages (deb) · Ubuntu 24.04 | introduced 0 | No fixed version is listed. |
| linux-realtime | Debian packages (deb) · Ubuntu 24.04 | introduced 0 | No fixed version is listed. |
| linux-riscv | Debian packages (deb) · Ubuntu 24.04 | introduced 0 | No fixed version is listed. |
| linux-xilinx | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-azure-fde | Debian packages (deb) · Ubuntu 25.10 | introduced 0 | No fixed version is listed. |
Some commands upgrade the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://ubuntu.com/security/CVE-2025-22021
- https://www.cve.org/CVERecord?id=CVE-2025-22021
- https://git.kernel.org/linus/932b32ffd7604fb00b5c57e239a3cc4d901ccf6e
- https://git.kernel.org/stable/c/1ca2169cc19dca893c7aae6af122852097435d16
- https://git.kernel.org/stable/c/1ec43100f7123010730b7ddfc3d5c2eac19e70e7
- https://git.kernel.org/stable/c/221c27259324ec1404f028d4f5a0f2ae7f63ee23
- https://git.kernel.org/stable/c/2bb139e483f8cbe488d19d8c1135ac3615e2668c
- https://git.kernel.org/stable/c/41904cbb343d115931d6bf79aa2c815cac4ef72b
- https://git.kernel.org/stable/c/5251041573850e5020cd447374e23010be698898
- https://git.kernel.org/stable/c/58ab63d3ded2ca6141357a2b24eee8453d0f871d
- https://git.kernel.org/stable/c/6488b96a79a26e19100ad872622f04e93b638d7f
- https://git.kernel.org/stable/c/932b32ffd7604fb00b5c57e239a3cc4d901ccf6e
- https://ubuntu.com/security/notices/USN-7585-1
- https://ubuntu.com/security/notices/USN-7585-2
- https://ubuntu.com/security/notices/USN-7591-1
- https://ubuntu.com/security/notices/USN-7591-2
- https://ubuntu.com/security/notices/USN-7591-3
- https://ubuntu.com/security/notices/USN-7592-1
- https://ubuntu.com/security/notices/USN-7593-1
- https://ubuntu.com/security/notices/USN-7594-1
- https://ubuntu.com/security/notices/USN-7591-4
- https://ubuntu.com/security/notices/USN-7597-1
- https://ubuntu.com/security/notices/USN-7597-2
- https://ubuntu.com/security/notices/USN-7598-1
- https://ubuntu.com/security/notices/USN-7585-3
- https://ubuntu.com/security/notices/USN-7585-4
- https://ubuntu.com/security/notices/USN-7594-2
- https://ubuntu.com/security/notices/USN-7602-1
- https://ubuntu.com/security/notices/USN-7585-5
- https://ubuntu.com/security/notices/USN-7605-1
- https://ubuntu.com/security/notices/USN-7606-1
- https://ubuntu.com/security/notices/USN-7585-6
- https://ubuntu.com/security/notices/USN-7591-5
- https://ubuntu.com/security/notices/USN-7605-2
- https://ubuntu.com/security/notices/USN-7594-3
- https://ubuntu.com/security/notices/USN-7628-1
- https://ubuntu.com/security/notices/USN-7585-7
- https://ubuntu.com/security/notices/USN-7640-1
- https://ubuntu.com/security/notices/USN-7591-6
- https://ubuntu.com/security/notices/USN-7655-1
- https://ubuntu.com/security/notices/USN-7835-1
- https://ubuntu.com/security/notices/USN-7835-2
- https://ubuntu.com/security/notices/USN-7835-3
- https://ubuntu.com/security/notices/USN-7835-4
- https://ubuntu.com/security/notices/USN-7835-5
- https://ubuntu.com/security/notices/USN-7835-6
- https://ubuntu.com/security/notices/USN-7887-1
- https://ubuntu.com/security/notices/USN-7887-2
- https://ubuntu.com/security/notices/USN-7940-1
- https://ubuntu.com/security/notices/USN-7940-2
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0