CVE-2025-22021: Linux kernel · netfilter: socket: Lookup orig tuple for IPv6 SNAT
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 10.0 Critical · fixed in 5.4.0-1147.157~18.04.1 : patch Linux kernel as a priority.
Data as of 28 Oct 2026, 12:44 UTC
- Patch
- Available – fixed in 5.4.0-1147.157~18.04.1, 5.4.0-1152.159~18.04.1, 5.4.0-1150.159~18.04.1 +86
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Apr 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-7585-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7585-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7592-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7593-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7597-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7597-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7598-1 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-nvidiapkg:deb/ubuntu/linux-azure-nvidia?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and should be applied by updating the Linux kernel to one of the fixed versions listed (e.g., 5.4.0-1147.157 and later). The vendor advisory from Ubuntu confirms the availability of fixes in multiple kernel releases. After updating, a system reboot is required. Additionally, recompilation and reinstallation of third-party kernel modules may be necessary due to ABI changes. No alternative mitigations are indicated by the vendor advisory.
Description
CVE-2025-22021 is a critical vulnerability in the Linux kernel's netfilter subsystem affecting IPv6 SNAT packet handling. The flaw is due to a missing connection tracking lookup in the IPv6 socket matching function, causing socket matching to fail for SNATed IPv6 packets. This impacts environments like Kubernetes clusters using IPv6 SNAT and transparent sockets, where packets may not be correctly matched and redirected. The vulnerability has been fixed in multiple Linux kernel versions starting from 5.4.0-1147.157 and related releases.
References
- ubuntu.com/security/CVE-2025-22021 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-22021 (opens in a new tab)
- git.kernel.org/linus/932b32ffd7604fb00b5c57e239a3cc4d901ccf6e (opens in a new tab)
- git.kernel.org/stable/c/1ca2169cc19dca893c7aae6af122852097435d16 (opens in a new tab)
- git.kernel.org/stable/c/1ec43100f7123010730b7ddfc3d5c2eac19e70e7 (opens in a new tab)
- git.kernel.org/stable/c/221c27259324ec1404f028d4f5a0f2ae7f63ee23 (opens in a new tab)
- git.kernel.org/stable/c/2bb139e483f8cbe488d19d8c1135ac3615e2668c (opens in a new tab)
- git.kernel.org/stable/c/41904cbb343d115931d6bf79aa2c815cac4ef72b (opens in a new tab)
- git.kernel.org/stable/c/5251041573850e5020cd447374e23010be698898 (opens in a new tab)
- git.kernel.org/stable/c/58ab63d3ded2ca6141357a2b24eee8453d0f871d (opens in a new tab)
- git.kernel.org/stable/c/6488b96a79a26e19100ad872622f04e93b638d7f (opens in a new tab)
- git.kernel.org/stable/c/932b32ffd7604fb00b5c57e239a3cc4d901ccf6e (opens in a new tab)
- ubuntu.com/security/notices/USN-7585-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7585-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7592-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7593-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-1 (opens in a new tab)