CVE-2026-46244 PUBLISHED

netfilter: nft_inner: Fix IPv6 inner_thoff desync

Assigner: Linux
Reserved: 13.05.2026 Published: 03.06.2026 Updated: 05.06.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS Score: 9.1

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 3a07327d10a09379315c844c63f27941f5081e0a to c161ad9157f5a0429b5ff94d9770faf3bf48d273 (excl.)
  • affected from 3a07327d10a09379315c844c63f27941f5081e0a to 870d59e2cf218e7418491e26bad768cb16654582 (excl.)
  • affected from 3a07327d10a09379315c844c63f27941f5081e0a to 689bbf48c1f45130086ae1c46ab83ea4c753c601 (excl.)
  • affected from 3a07327d10a09379315c844c63f27941f5081e0a to d0f98a3617f6ae5b1e95cde1e68e7ead4a1279ce (excl.)
  • affected from 3a07327d10a09379315c844c63f27941f5081e0a to b6a91f68ebfed9c38e0e9150f58a9b85da07181c (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.2 is affected
  • unaffected from 0 to 6.2 (excl.)
  • unaffected from 6.6.142 to 6.6.* (incl.)
  • unaffected from 6.12.92 to 6.12.* (incl.)
  • unaffected from 6.18.34 to 6.18.* (incl.)
  • unaffected from 7.0.11 to 7.0.* (incl.)
  • unaffected from 7.1-rc5 to * (incl.)

References