Skip to content
This page tracks the Ubuntu fix status. The vulnerability itself is described on the main CVE page. View CVE-2025-22021 →
Unrated

Vulnerability in linux

UBUNTU-CVE-2025-22021 First seen on SecPulse

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as UBUNTU-CVE-2025-22021 has been found in linux.
Risk of unauthorized operations or information disclosure.
What to do: upgrade linux to 5.4.0-1147.157~18.04.1 or later.
If unsure, ask your IT team or search "linux UBUNTU-CVE-2025-22021" on the vendor's site.

UBUNTU-CVE-2025-22021 (linux)
Attack vector: local / no user interaction
Patched: 5.4.0-1147.157~18.04.1 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

A vulnerability (unclassified) exists in linux.

Affected scope

Check the vendor advisory for the affected versions of linux.

Severity

Severity: ?. Risk of unauthorized operations or information disclosure.

How to fix

Update to 5.4.0-1147.157~18.04.1.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'linux' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'linux' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で linux を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patchpatch
    Upgrade linux to 5.4.0-1147.157~18.04.1

    ステージング環境で 5.4.0-1147.157~18.04.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

EcosystemPackageAffectedFixed
Ubuntu:Pro:14.04:LTS linux
All versions
—
Ubuntu:Pro:14.04:LTS linux-aws
All versions
—
Ubuntu:Pro:14.04:LTS linux-azure
All versions
—
Ubuntu:Pro:14.04:LTS linux-lts-xenial
All versions
—
Ubuntu:Pro:16.04:LTS linux
All versions
—
Ubuntu:Pro:16.04:LTS linux-aws
All versions
—
Ubuntu:Pro:16.04:LTS linux-aws-hwe
All versions
—
Ubuntu:Pro:16.04:LTS linux-azure
All versions
—
Ubuntu:Pro:16.04:LTS linux-gcp
All versions
—
Ubuntu:Pro:16.04:LTS linux-hwe
All versions
—
Ubuntu:16.04:LTS linux-hwe-edge
All versions
—
Ubuntu:Pro:16.04:LTS linux-kvm
All versions
—
Ubuntu:Pro:16.04:LTS linux-oracle
All versions
—
Ubuntu:Pro:FIPS:16.04:LTS linux-fips
All versions
—
Ubuntu:Pro:18.04:LTS linux
All versions
—
Ubuntu:Pro:18.04:LTS linux-aws
All versions
—
Ubuntu:18.04:LTS linux-aws-5.0
All versions
—
Ubuntu:18.04:LTS linux-aws-5.3
All versions
—
Ubuntu:Pro:18.04:LTS linux-aws-5.4
< 5.4.0-1147.157~18.04.1
5.4.0-1147.157~18.04.1
Ubuntu:18.04:LTS linux-azure
All versions
—
Ubuntu:Pro:18.04:LTS linux-azure-4.15
All versions
—
Ubuntu:18.04:LTS linux-azure-5.3
All versions
—
Ubuntu:Pro:18.04:LTS linux-azure-5.4
< 5.4.0-1152.159~18.04.1
5.4.0-1152.159~18.04.1
Ubuntu:18.04:LTS linux-azure-edge
All versions
—
Ubuntu:18.04:LTS linux-gcp
All versions
—
Ubuntu:Pro:18.04:LTS linux-gcp-4.15
All versions
—
Ubuntu:18.04:LTS linux-gcp-5.3
All versions
—
Ubuntu:Pro:18.04:LTS linux-gcp-5.4
< 5.4.0-1150.159~18.04.1
5.4.0-1150.159~18.04.1
Ubuntu:18.04:LTS linux-gke-4.15
All versions
—
Ubuntu:18.04:LTS linux-gke-5.4
All versions
—
Ubuntu:18.04:LTS linux-gkeop-5.4
All versions
—
Ubuntu:18.04:LTS linux-hwe
All versions
—
Ubuntu:Pro:18.04:LTS linux-hwe-5.4
< 5.4.0-218.238~18.04.1
5.4.0-218.238~18.04.1
Ubuntu:18.04:LTS linux-hwe-edge
All versions
—
Ubuntu:Pro:18.04:LTS linux-ibm-5.4
< 5.4.0-1093.98~18.04.1
5.4.0-1093.98~18.04.1
Ubuntu:Pro:18.04:LTS linux-kvm
All versions
—
Ubuntu:18.04:LTS linux-oem
All versions
—
Ubuntu:Pro:18.04:LTS linux-oracle
All versions
—
Ubuntu:18.04:LTS linux-oracle-5.0
All versions
—
Ubuntu:18.04:LTS linux-oracle-5.3
All versions
—
Ubuntu:Pro:18.04:LTS linux-oracle-5.4
< 5.4.0-1145.155~18.04.1
5.4.0-1145.155~18.04.1
Ubuntu:Pro:18.04:LTS linux-raspi-5.4
< 5.4.0-1130.143~18.04.1
5.4.0-1130.143~18.04.1
Ubuntu:Pro:FIPS-updates:18.04:LTS linux-aws-fips
All versions
—
Ubuntu:Pro:FIPS-updates:18.04:LTS linux-azure-fips
All versions
—
Ubuntu:Pro:FIPS-updates:18.04:LTS linux-fips
All versions
—
Ubuntu:Pro:FIPS-updates:18.04:LTS linux-gcp-fips
All versions
—
Ubuntu:Pro:FIPS:18.04:LTS linux-aws-fips
All versions
—
Ubuntu:Pro:FIPS:18.04:LTS linux-azure-fips
All versions
—
Ubuntu:Pro:FIPS:18.04:LTS linux-fips
All versions
—
Ubuntu:Pro:FIPS:18.04:LTS linux-gcp-fips
All versions
—
Ubuntu:Pro:20.04:LTS linux
< 5.4.0-218.238
5.4.0-218.238
Ubuntu:Pro:20.04:LTS linux-aws
< 5.4.0-1147.157
5.4.0-1147.157
Ubuntu:20.04:LTS linux-aws-5.11
All versions
—
Ubuntu:20.04:LTS linux-aws-5.13
All versions
—
Ubuntu:Pro:20.04:LTS linux-aws-5.15
< 5.15.0-1086.93~20.04.1
5.15.0-1086.93~20.04.1
Ubuntu:20.04:LTS linux-aws-5.8
All versions
—
Ubuntu:Pro:20.04:LTS linux-azure
< 5.4.0-1152.159
5.4.0-1152.159
Ubuntu:20.04:LTS linux-azure-5.11
All versions
—
Ubuntu:20.04:LTS linux-azure-5.13
All versions
—
Ubuntu:Pro:20.04:LTS linux-azure-5.15
< 5.15.0-1091.100~20.04.1
5.15.0-1091.100~20.04.1
Ubuntu:20.04:LTS linux-azure-5.8
All versions
—
Ubuntu:20.04:LTS linux-azure-fde
All versions
—
Ubuntu:Pro:20.04:LTS linux-bluefield
< 5.4.0-1106.113
5.4.0-1106.113
Ubuntu:Pro:20.04:LTS linux-gcp
< 5.4.0-1150.159
5.4.0-1150.159
Ubuntu:20.04:LTS linux-gcp-5.11
All versions
—
Ubuntu:20.04:LTS linux-gcp-5.13
All versions
—
Ubuntu:Pro:20.04:LTS linux-gcp-5.15
< 5.15.0-1085.94~20.04.1
5.15.0-1085.94~20.04.1
Ubuntu:20.04:LTS linux-gcp-5.8
All versions
—
Ubuntu:20.04:LTS linux-gke
All versions
—
Ubuntu:20.04:LTS linux-gke-5.15
All versions
—
Ubuntu:20.04:LTS linux-gkeop
All versions
—
Ubuntu:20.04:LTS linux-gkeop-5.15
All versions
—
Ubuntu:20.04:LTS linux-hwe-5.11
All versions
—
Ubuntu:20.04:LTS linux-hwe-5.13
All versions
—
Ubuntu:Pro:20.04:LTS linux-hwe-5.15
< 5.15.0-142.152~20.04.1
5.15.0-142.152~20.04.1
Ubuntu:20.04:LTS linux-hwe-5.8
All versions
—
Ubuntu:Pro:20.04:LTS linux-ibm
< 5.4.0-1093.98
5.4.0-1093.98
Ubuntu:Pro:20.04:LTS linux-ibm-5.15
< 5.15.0-1078.81~20.04.1
5.15.0-1078.81~20.04.1
Ubuntu:20.04:LTS linux-intel-5.13
All versions
—
Ubuntu:Pro:20.04:LTS linux-intel-iotg-5.15
< 5.15.0-1083.89~20.04.1
5.15.0-1083.89~20.04.1
Ubuntu:Pro:20.04:LTS linux-iot
< 5.4.0-1051.54
5.4.0-1051.54
Ubuntu:Pro:20.04:LTS linux-kvm
< 5.4.0-1134.143
5.4.0-1134.143
Ubuntu:Pro:20.04:LTS linux-lowlatency-hwe-5.15
< 5.15.0-142.152~20.04.1
5.15.0-142.152~20.04.1
Ubuntu:Pro:20.04:LTS linux-nvidia-tegra-5.15
< 5.15.0-1039.39~20.04.1
5.15.0-1039.39~20.04.1
Ubuntu:20.04:LTS linux-oem-5.10
All versions
—
Ubuntu:20.04:LTS linux-oem-5.13
All versions
—
Ubuntu:20.04:LTS linux-oem-5.14
All versions
—
Ubuntu:20.04:LTS linux-oem-5.6
All versions
—
Ubuntu:Pro:20.04:LTS linux-oracle
< 5.4.0-1145.155
5.4.0-1145.155
Ubuntu:20.04:LTS linux-oracle-5.11
All versions
—
Ubuntu:20.04:LTS linux-oracle-5.13
All versions
—
Ubuntu:Pro:20.04:LTS linux-oracle-5.15
< 5.15.0-1083.89~20.04.1
5.15.0-1083.89~20.04.1
Ubuntu:20.04:LTS linux-oracle-5.8
All versions
—
Ubuntu:Pro:20.04:LTS linux-raspi
< 5.4.0-1130.143
5.4.0-1130.143
Ubuntu:20.04:LTS linux-raspi2
All versions
—
Ubuntu:20.04:LTS linux-riscv
All versions
—
Ubuntu:20.04:LTS linux-riscv-5.11
All versions
—
Ubuntu:Pro:20.04:LTS linux-riscv-5.15
< 5.15.0-1081.85~20.04.1
5.15.0-1081.85~20.04.1
Ubuntu:20.04:LTS linux-riscv-5.8
All versions
—
Ubuntu:Pro:20.04:LTS linux-xilinx-zynqmp
< 5.4.0-1065.69
5.4.0-1065.69
Ubuntu:Pro:FIPS-updates:20.04:LTS linux-aws-fips
< 5.4.0-1147.157+fips1
5.4.0-1147.157+fips1
Ubuntu:Pro:FIPS-updates:20.04:LTS linux-azure-fips
< 5.4.0-1153.160+fips1
5.4.0-1153.160+fips1
Ubuntu:Pro:FIPS-updates:20.04:LTS linux-fips
< 5.4.0-1121.131
5.4.0-1121.131
Ubuntu:Pro:FIPS-updates:20.04:LTS linux-gcp-fips
< 5.4.0-1150.159+fips1
5.4.0-1150.159+fips1
Ubuntu:Pro:FIPS:20.04:LTS linux-aws-fips
All versions
—
Ubuntu:Pro:FIPS:20.04:LTS linux-azure-fips
All versions
—
Ubuntu:Pro:FIPS:20.04:LTS linux-fips
All versions
—
Ubuntu:Pro:FIPS:20.04:LTS linux-gcp-fips
All versions
—
Ubuntu:22.04:LTS linux
< 5.15.0-142.152
5.15.0-142.152
Ubuntu:22.04:LTS linux-allwinner-5.19
All versions
—
Ubuntu:22.04:LTS linux-aws
< 5.15.0-1086.93
5.15.0-1086.93
Ubuntu:22.04:LTS linux-aws-5.19
All versions
—
Ubuntu:22.04:LTS linux-aws-6.2
All versions
—
Ubuntu:22.04:LTS linux-aws-6.5
All versions
—
Ubuntu:22.04:LTS linux-aws-6.8
< 6.8.0-1041.43~22.04.1
6.8.0-1041.43~22.04.1
Ubuntu:22.04:LTS linux-azure
< 5.15.0-1091.100
5.15.0-1091.100
Ubuntu:22.04:LTS linux-azure-5.19
All versions
—
Ubuntu:22.04:LTS linux-azure-6.2
All versions
—
Ubuntu:22.04:LTS linux-azure-6.5
All versions
—
Ubuntu:22.04:LTS linux-azure-6.8
< 6.8.0-1041.47~22.04.1
6.8.0-1041.47~22.04.1
Ubuntu:22.04:LTS linux-azure-fde
< 5.15.0-1091.100.1
5.15.0-1091.100.1
Ubuntu:22.04:LTS linux-azure-fde-5.19
All versions
—
Ubuntu:22.04:LTS linux-azure-fde-6.2
All versions
—
Ubuntu:22.04:LTS linux-gcp
< 5.15.0-1085.94
5.15.0-1085.94
Ubuntu:22.04:LTS linux-gcp-5.19
All versions
—
Ubuntu:22.04:LTS linux-gcp-6.2
All versions
—
Ubuntu:22.04:LTS linux-gcp-6.5
All versions
—
Ubuntu:22.04:LTS linux-gcp-6.8
< 6.8.0-1042.45~22.04.1
6.8.0-1042.45~22.04.1
Ubuntu:22.04:LTS linux-gke
< 5.15.0-1083.89
5.15.0-1083.89
Ubuntu:22.04:LTS linux-gkeop
< 5.15.0-1068.76
5.15.0-1068.76
Ubuntu:22.04:LTS linux-hwe-5.19
All versions
—
Ubuntu:22.04:LTS linux-hwe-6.2
All versions
—
Ubuntu:22.04:LTS linux-hwe-6.5
All versions
—
Ubuntu:22.04:LTS linux-hwe-6.8
< 6.8.0-86.87~22.04.1
6.8.0-86.87~22.04.1
Ubuntu:22.04:LTS linux-ibm
< 5.15.0-1078.81
5.15.0-1078.81
Ubuntu:22.04:LTS linux-ibm-6.8
< 6.8.0-1039.39~22.04.1
6.8.0-1039.39~22.04.1
Ubuntu:22.04:LTS linux-intel-iot-realtime
All versions
—
Ubuntu:22.04:LTS linux-intel-iotg
< 5.15.0-1081.87
5.15.0-1081.87
Ubuntu:22.04:LTS linux-kvm
< 5.15.0-1082.87
5.15.0-1082.87
Ubuntu:22.04:LTS linux-lowlatency
< 5.15.0-142.152
5.15.0-142.152
Ubuntu:22.04:LTS linux-lowlatency-hwe-5.19
All versions
—
Ubuntu:22.04:LTS linux-lowlatency-hwe-6.2
All versions
—
Ubuntu:22.04:LTS linux-lowlatency-hwe-6.5
All versions
—
Ubuntu:22.04:LTS linux-lowlatency-hwe-6.8
< 6.8.0-86.87.1~22.04.1
6.8.0-86.87.1~22.04.1
Ubuntu:22.04:LTS linux-nvidia
< 5.15.0-1080.81
5.15.0-1080.81
Ubuntu:22.04:LTS linux-nvidia-6.2
All versions
—
Ubuntu:22.04:LTS linux-nvidia-6.5
All versions
—
Ubuntu:22.04:LTS linux-nvidia-6.8
< 6.8.0-1041.44~22.04.2
6.8.0-1041.44~22.04.2
Ubuntu:22.04:LTS linux-nvidia-tegra
< 5.15.0-1039.39
5.15.0-1039.39
Ubuntu:22.04:LTS linux-nvidia-tegra-igx
< 5.15.0-1028.28
5.15.0-1028.28
Ubuntu:22.04:LTS linux-oem-5.17
All versions
—
Ubuntu:22.04:LTS linux-oem-6.0
All versions
—
Ubuntu:22.04:LTS linux-oem-6.1
All versions
—
Ubuntu:22.04:LTS linux-oem-6.5
All versions
—
Ubuntu:22.04:LTS linux-oracle
< 5.15.0-1083.89
5.15.0-1083.89
Ubuntu:22.04:LTS linux-oracle-6.5
All versions
—
Ubuntu:22.04:LTS linux-oracle-6.8
< 6.8.0-1038.39~22.04.1
6.8.0-1038.39~22.04.1
Ubuntu:22.04:LTS linux-raspi
< 5.15.0-1080.83
5.15.0-1080.83
Ubuntu:22.04:LTS linux-realtime
All versions
—
Ubuntu:22.04:LTS linux-riscv
All versions
—
Ubuntu:22.04:LTS linux-riscv-5.19
All versions
—
Ubuntu:22.04:LTS linux-riscv-6.5
All versions
—
Ubuntu:22.04:LTS linux-riscv-6.8
< 6.8.0-86.87~22.04.1
6.8.0-86.87~22.04.1
Ubuntu:22.04:LTS linux-starfive-5.19
All versions
—
Ubuntu:22.04:LTS linux-starfive-6.2
All versions
—
Ubuntu:22.04:LTS linux-starfive-6.5
All versions
—
Ubuntu:22.04:LTS linux-xilinx-zynqmp
< 5.15.0-1050.54
5.15.0-1050.54
Ubuntu:Nvidia-BlueField:22.04:LTS linux-bluefield
< 5.15.0-1069.71
5.15.0-1069.71
Ubuntu:Pro:FIPS-preview:22.04:LTS linux-aws-fips
All versions
—
Ubuntu:Pro:FIPS-preview:22.04:LTS linux-azure-fips
All versions
—
Ubuntu:Pro:FIPS-preview:22.04:LTS linux-fips
All versions
—
Ubuntu:Pro:FIPS-preview:22.04:LTS linux-gcp-fips
All versions
—
Ubuntu:Pro:FIPS-updates:22.04:LTS linux-aws-fips
< 5.15.0-1086.93+fips1
5.15.0-1086.93+fips1
Ubuntu:Pro:FIPS-updates:22.04:LTS linux-azure-fips
< 5.15.0-1091.100+fips1
5.15.0-1091.100+fips1
Ubuntu:Pro:FIPS-updates:22.04:LTS linux-fips
< 5.15.0-142.152+fips1
5.15.0-142.152+fips1
Ubuntu:Pro:FIPS-updates:22.04:LTS linux-gcp-fips
< 5.15.0-1085.94+fips1
5.15.0-1085.94+fips1
Ubuntu:Pro:Realtime:22.04:LTS linux-intel-iot-realtime
< 5.15.0-1079.81
5.15.0-1079.81
Ubuntu:Pro:Realtime:22.04:LTS linux-realtime
< 5.15.0-1086.95
5.15.0-1086.95
Ubuntu:Pro:Realtime:22.04:LTS linux-realtime-6.8
< 6.8.1-1036.37~22.04.1
6.8.1-1036.37~22.04.1
Ubuntu:24.04:LTS linux
< 6.8.0-86.87
6.8.0-86.87
Ubuntu:24.04:LTS linux-aws
< 6.8.0-1041.43
6.8.0-1041.43
Ubuntu:24.04:LTS linux-azure
< 6.8.0-1041.47
6.8.0-1041.47
Ubuntu:24.04:LTS linux-azure-6.11
< 6.11.0-1018.18~24.04.1
6.11.0-1018.18~24.04.1
Ubuntu:24.04:LTS linux-azure-fde-6.17
All versions
—
Ubuntu:24.04:LTS linux-azure-nvidia
< 6.8.0-1029.32
6.8.0-1029.32
Ubuntu:24.04:LTS linux-gcp
< 6.8.0-1042.45
6.8.0-1042.45
Ubuntu:24.04:LTS linux-gcp-6.11
< 6.11.0-1016.16~24.04.1
6.11.0-1016.16~24.04.1
Ubuntu:24.04:LTS linux-gke
< 6.8.0-1038.43
6.8.0-1038.43
Ubuntu:24.04:LTS linux-gkeop
< 6.8.0-1025.28
6.8.0-1025.28
Ubuntu:24.04:LTS linux-hwe-6.11
< 6.11.0-28.28~24.04.1
6.11.0-28.28~24.04.1
Ubuntu:24.04:LTS linux-ibm
< 6.8.0-1039.39
6.8.0-1039.39
Ubuntu:24.04:LTS linux-intel
All versions
—
Ubuntu:24.04:LTS linux-lowlatency
< 6.8.0-86.87.1
6.8.0-86.87.1
Ubuntu:24.04:LTS linux-lowlatency-hwe-6.11
< 6.11.0-1015.16~24.04.2
6.11.0-1015.16~24.04.2
Ubuntu:24.04:LTS linux-nvidia
< 6.8.0-1041.44
6.8.0-1041.44
Ubuntu:24.04:LTS linux-nvidia-6.11
< 6.11.0-1012.12
6.11.0-1012.12
Ubuntu:24.04:LTS linux-nvidia-lowlatency
< 6.8.0-1041.44.1
6.8.0-1041.44.1
Ubuntu:24.04:LTS linux-nvidia-tegra
< 6.8.0-1012.12
6.8.0-1012.12
Ubuntu:24.04:LTS linux-oem-6.11
< 6.11.0-1024.24
6.11.0-1024.24
Ubuntu:24.04:LTS linux-oem-6.8
All versions
—
Ubuntu:24.04:LTS linux-oracle
< 6.8.0-1038.39
6.8.0-1038.39
Ubuntu:24.04:LTS linux-raspi
< 6.8.0-1041.45
6.8.0-1041.45
Ubuntu:24.04:LTS linux-raspi-realtime
All versions
—
Ubuntu:24.04:LTS linux-realtime
All versions
—
Ubuntu:24.04:LTS linux-riscv
All versions
—
Ubuntu:24.04:LTS linux-xilinx
< 6.8.0-1018.19
6.8.0-1018.19
Ubuntu:Pro:FIPS-updates:24.04:LTS linux-aws-fips
< 6.8.0-1041.43+fips1
6.8.0-1041.43+fips1
Ubuntu:Pro:FIPS-updates:24.04:LTS linux-azure-fips
< 6.8.0-1044.50+fips1
6.8.0-1044.50+fips1
Ubuntu:Pro:FIPS-updates:24.04:LTS linux-fips
< 6.8.0-86.87+fips1
6.8.0-86.87+fips1
Ubuntu:Pro:FIPS-updates:24.04:LTS linux-gcp-fips
< 6.8.0-1042.45+fips1
6.8.0-1042.45+fips1
Ubuntu:Pro:Realtime:24.04:LTS linux-raspi-realtime
< 6.8.0-2032.33
6.8.0-2032.33
Ubuntu:Pro:Realtime:24.04:LTS linux-realtime
< 6.8.1-1036.37
6.8.1-1036.37
Ubuntu:25.10 linux-azure-fde
All versions
—
Ubuntu:26.04 linux-nvidia
All versions
—
Ubuntu:Nvidia-BlueField:24.04:LTS linux-bluefield
< 6.8.0-1012.16
6.8.0-1012.16
Ubuntu:Pro:FIPS-updates:16.04:LTS linux-fips
All versions
—
Original description The description as published by the source.

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.

Source: OSV.dev (Open Source Vulnerabilities) OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details