Linux
netfilter: nft_inner: Fix IPv6 inner_thoff desync
In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_inner: Fix IPv6 inner_thoff desync In nft_inner_parse_l2l3(), when processing inner IPv6 packets, ipv6_find_hdr() correctly computes the transport header offset traversing all extension headers, but the result is immediately overwritten with nhoff + sizeof(_ip6h) (40 bytes), which only accounts for the IPv6 base header. This creates a desync between inner_thoff (wrong — points to extension header start) and l4proto (correct — e.g., IPPROTO_TCP), enabling transport header forgery and potential firewall bypass. This issue affects stable versions from Linux 6.2. For comparison, the normal (non-inner) IPv6 path correctly preserves ipv6_find_hdr()'s result. Removing the incorrect overwrite ensures that ipv6_find_hdr()'s calculated transport header offset is preserved, thereby fixing the desynchronization.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3a07327d10a09379315c844c63f27941f5081e0a, < c161ad9157f5a0429b5ff94d9770faf3bf48d273
- >= 3a07327d10a09379315c844c63f27941f5081e0a, < 870d59e2cf218e7418491e26bad768cb16654582
- >= 3a07327d10a09379315c844c63f27941f5081e0a, < 689bbf48c1f45130086ae1c46ab83ea4c753c601
- >= 3a07327d10a09379315c844c63f27941f5081e0a, < d0f98a3617f6ae5b1e95cde1e68e7ead4a1279ce
- >= 3a07327d10a09379315c844c63f27941f5081e0a, < b6a91f68ebfed9c38e0e9150f58a9b85da07181c
Fixed in c161ad9157f5a0429b5ff94d9770faf3bf48d273, 870d59e2cf218e7418491e26bad768cb16654582, 689bbf48c1f45130086ae1c46ab83ea4c753c601, d0f98a3617f6ae5b1e95cde1e68e7ead4a1279ce, b6a91f68ebfed9c38e0e9150f58a9b85da07181c
- 6.2
Fixed in 0, 6.6.142, 6.12.92, 6.18.34, 7.0.11, 7.1
Mitigation
Upgrade Linux to c161ad9157f5a0429b5ff94d9770faf3bf48d273 or 870d59e2cf218e7418491e26bad768cb16654582 or 689bbf48c1f45130086ae1c46ab83ea4c753c601 or d0f98a3617f6ae5b1e95cde1e68e7ead4a1279ce or b6a91f68ebfed9c38e0e9150f58a9b85da07181c or later.
Upgrade Linux to 0 or 6.6.142 or 6.12.92 or 6.18.34 or 7.0.11 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.