Skip to contentSkip to conversation

CVE-2026-99088: net: openvswitch: validate transport header presence in set_ipv6_addr

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 26

lore
Share & tools
lore
#0 lore raw

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

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

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

net: openvswitch: validate transport header presence in set_ipv6_addr

When executing IPv6 address rewrite actions on IPv6 fragments, set_ipv6_addr() calls update_ipv6_checksum(). If parse_ipv6hdr() processes a non-first IPv6 fragment, it sets key->ip.proto to NEXTHDR_FRAGMENT and returns early without calling skb_set_transport_header().

update_ipv6_checksum() unconditionally evaluates skb_transport_offset() on entry before checking l4_proto. Because skb->transport_header is uninitialized, this triggers a warning under CONFIG_DEBUG_NET=y although it is completely harmless.

Fix this by returning early in update_ipv6_checksum() if l4_proto is NEXTHDR_FRAGMENT. This avoids reading the uninitialized transport offset for fragments while preserving the debug warning for any other protocol where the transport header is unexpectedly missing.

See the syzbot trace:

!skb_transport_header_was_set(skb)

WARNING: ./include/linux/skbuff.h:3075 at skb_transport_header include/linux/skbuff.h:3075 [inline], CPU#1: syz-executor463/5635
WARNING: ./include/linux/skbuff.h:3075 at skb_transport_offset include/linux/skbuff.h:3250 [inline], CPU#1: syz-executor463/5635
WARNING: ./include/linux/skbuff.h:3075 at update_ipv6_checksum net/openvswitch/actions.c:361 [inline], CPU#1: syz-executor463/5635
WARNING: ./include/linux/skbuff.h:3075 at set_ipv6_addr+0x462/0x660 net/openvswitch/actions.c:399, CPU#1: syz-executor463/5635
[...]
RIP: 0010:skb_transport_header include/linux/skbuff.h:3075 [inline]
RIP: 0010:skb_transport_offset include/linux/skbuff.h:3250 [inline]
RIP: 0010:update_ipv6_checksum net/openvswitch/actions.c:361 [inline]
RIP: 0010:set_ipv6_addr+0x462/0x660 net/openvswitch/actions.c:399
[...]
Call Trace:
 <TASK>
 set_ipv6 net/openvswitch/actions.c:531 [inline]
 do_execute_actions+0x557e/0x8600 net/openvswitch/actions.c:1366
 ovs_execute_actions+0xde/0x520 net/openvswitch/actions.c:1592
 ovs_packet_cmd_execute+0xb4f/0xf10 net/openvswitch/datapath.c:705
 genl_family_rcv_msg_doit+0x233/0x340 net/netlink/genetlink.c:1114
 genl_rcv_msg+0x614/0x7a0 net/netlink/genetlink.c:1209
 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2572
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1218
 netlink_unicast+0x7bd/0x940 net/netlink/af_netlink.c:1361
 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1916
 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800

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

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

	Issue introduced in 3.8 with commit 3fdbd1ce11e5c0d7cafbe44c942c5cad61113d7b and fixed in 6.6.160 with commit b7b80d204abdc258006f9e17c92b363ab13bb599
	Issue introduced in 3.8 with commit 3fdbd1ce11e5c0d7cafbe44c942c5cad61113d7b and fixed in 6.12.113 with commit 6774af7cd17be8f0d0f70de3a749d381b4f2e9da
	Issue introduced in 3.8 with commit 3fdbd1ce11e5c0d7cafbe44c942c5cad61113d7b and fixed in 6.18.57 with commit 2594795fd832f0253826d64ff8976b8ff5fbfe9f
	Issue introduced in 3.8 with commit 3fdbd1ce11e5c0d7cafbe44c942c5cad61113d7b and fixed in 7.2.11 with commit 6b8897ba0733f88f0360ea48a970f373f9142de0
	Issue introduced in 3.8 with commit 3fdbd1ce11e5c0d7cafbe44c942c5cad61113d7b and fixed in 7.3 with commit 3c6a4b11330fe424557538a98fca9f0a4c5bf313

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-99088

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/openvswitch/actions.c

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/b7b80d204abdc258006f9e17c92b363ab13bb599
	https://git.kernel.org/stable/c/6774af7cd17be8f0d0f70de3a749d381b4f2e9da
	https://git.kernel.org/stable/c/2594795fd832f0253826d64ff8976b8ff5fbfe9f
	https://git.kernel.org/stable/c/6b8897ba0733f88f0360ea48a970f373f9142de0
	https://git.kernel.org/stable/c/3c6a4b11330fe424557538a98fca9f0a4c5bf313