Skip to contentSkip to conversation

CVE-2026-72442: netfilter: flowtable: fix and simplify IP6IP6 tunnel handling

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

netfilter: flowtable: fix and simplify IP6IP6 tunnel handling

Fix nf_flow_ip6_tunnel_proto() to use pskb_may_pull() instead of skb_header_pointer() to ensure the outer IPv6 header is in the skb headroom, which is required for subsequent packet processing. Move ctx->offset update inside the IPPROTO_IPV6 conditional block since it should only be adjusted when an IP6IP6 tunnel is actually detected. Simplify the rx path by removing ipv6_skip_exthdr() and checking ip6h->nexthdr directly, as the flowtable fast path only handles simple IP6IP6 encapsulation without extension headers.
Drop the tunnel encapsulation limit destination option support from the tx path to match, since the rx path no longer handles extension headers. Remove the encap_limit parameter from nf_flow_offload_ipv6_forward(), nf_flow_tunnel_ip6ip6_push() and nf_flow_tunnel_v6_push(), along with the ipv6_tel_txoption struct and related headroom/MTU adjustments.

The Linux kernel CVE team has assigned CVE-2026-72442 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.0 with commit d98103575dcdd3a730e0901ab457791a9ac6930c and fixed in 7.1.5 with commit 7f8d816a9aa2729d270418f00c9ef5e85bfc1b31
	Issue introduced in 7.0 with commit d98103575dcdd3a730e0901ab457791a9ac6930c and fixed in 7.2-rc1 with commit f4c2d8668d85ed125985da663c824a9c25498257

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-72442

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	net/ipv6/ip6_tunnel.c
	net/netfilter/nf_flow_table_ip.c
	tools/testing/selftests/net/netfilter/nft_flowtable.sh

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/7f8d816a9aa2729d270418f00c9ef5e85bfc1b31
	https://git.kernel.org/stable/c/f4c2d8668d85ed125985da663c824a9c25498257