Skip to contentSkip to conversation

CVE-2026-68123: openvswitch: fix GSO userspace truncation underflow

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 10

lore
Share & tools
lore
#0 lore raw

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

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

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

openvswitch: fix GSO userspace truncation underflow

OVS_ACTION_ATTR_TRUNC currently stores a delta from the original skb length in OVS_CB(skb)->cutlen. When a later userspace action segments a GSO skb, queue_gso_packets() reuses that delta for each smaller segment. A segment can then reach queue_userspace_packet() with cutlen greater than skb->len, underflowing the length passed to skb_zerocopy().

Store the maximum preserved length instead and bound each consumer against the current skb length. Use U32_MAX as the no-truncation sentinel so the value remains valid if skb geometry changes before a consumer handles it.

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

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

	Issue introduced in 4.8 with commit f2a4d086ed4c588d32fe9b7aa67fead7280e7bf1 and fixed in 6.6.148 with commit a16eaaf7c0b0ccdef6166707d90ffbc6eebf6855
	Issue introduced in 4.8 with commit f2a4d086ed4c588d32fe9b7aa67fead7280e7bf1 and fixed in 6.12.101 with commit fbfa3ad2ad6f3a5624aba5211c46290fb98cc9dc
	Issue introduced in 4.8 with commit f2a4d086ed4c588d32fe9b7aa67fead7280e7bf1 and fixed in 6.18.42 with commit 100a23b1613e9218e0af654ef102352c713f0263
	Issue introduced in 4.8 with commit f2a4d086ed4c588d32fe9b7aa67fead7280e7bf1 and fixed in 7.1.6 with commit ea85dbcbe8d4056ecb54352f97743d138ea4c407
	Issue introduced in 4.8 with commit f2a4d086ed4c588d32fe9b7aa67fead7280e7bf1 and fixed in 7.2-rc5 with commit 4032f8ed10fcb84d41c508dfb04be96589f78dfe

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

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
net/openvswitch/datapath.c
net/openvswitch/datapath.h
net/openvswitch/vport.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/a16eaaf7c0b0ccdef6166707d90ffbc6eebf6855
	https://git.kernel.org/stable/c/fbfa3ad2ad6f3a5624aba5211c46290fb98cc9dc
	https://git.kernel.org/stable/c/100a23b1613e9218e0af654ef102352c713f0263
	https://git.kernel.org/stable/c/ea85dbcbe8d4056ecb54352f97743d138ea4c407
	https://git.kernel.org/stable/c/4032f8ed10fcb84d41c508dfb04be96589f78dfe