Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8DAF439000 for ; Wed, 6 May 2026 11:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067274; cv=none; b=pxc9w665zaJjt9gGQWVmvcpMYfy9neBgJjql5ZCaxZnEizD2jRUxHOkm5B9kGqCve9M/6Ok9r0FfTe0m3FXWTkmoA7ZjIPXH4CnDKLTsEwpffH0CyYPgHmG2DmVRnx1cIVyJoQehymuDm1hcLGChf6PEx+c+llOsqTD97sxB+r0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067274; c=relaxed/simple; bh=JzoOAWM7Fqh7qw/mzQO2qxLvcH812j491uZd9s2RFQM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XeB/vyTnxy6ZrnzEFlSes9Vh5z7Bhoy2DVwiq5Q0Hn/TqyPF1hBy1nGrGFXiVWZPIvKnj3E7dGygHeJ4CZaCHs14vfBPAhF9oT8FNlLjuOtFluZpiVREI5EDg2xhjgh3ERpVW/M3hE/reREzHp83oN/FyvYP6dmS2QlKUhmiTbI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0NRsW+c1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0NRsW+c1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50313C2BCB8; Wed, 6 May 2026 11:34:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067274; bh=JzoOAWM7Fqh7qw/mzQO2qxLvcH812j491uZd9s2RFQM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=0NRsW+c1F6MC60/cH90bhX+FbgMbZw9mfxYkv6w53WppJpq1h7jMCJ3M7q1itndv+ wv/wC1eRj/OMtIKhaPN0pH9YagPrr78ilGR+7dyYnYTPlcu9PirDKQ9MntOwmdBeYA z7LZ73K5fcztQLRJN2it5qrXWMY6wWuzMCpDvkd4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43254: ovpn: tcp - fix packet extraction from stream Date: Wed, 6 May 2026 13:29:30 +0200 Message-ID: <2026050604-CVE-2026-43254-1146@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3487; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eY0nj79wCrnyvdZNDCfA75YfscZMaL4H429Br8eb3as=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VY+sWsJr/E34dO6BB3NkJmS8rFIyfs5/bmtM5huWz qTz+193dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEDkkwzNM6/OxS5eb3Fn/3 bHi30GXnDwuGf18YFizflHdyk8F9tf5HRaU709+oM54/NxMA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ovpn: tcp - fix packet extraction from stream When processing TCP stream data in ovpn_tcp_recv, we receive large cloned skbs from __strp_rcv that may contain multiple coalesced packets. The current implementation has two bugs: 1. Header offset overflow: Using pskb_pull with large offsets on coalesced skbs causes skb->data - skb->head to exceed the u16 storage of skb->network_header. This causes skb_reset_network_header to fail on the inner decapsulated packet, resulting in packet drops. 2. Unaligned protocol headers: Extracting packets from arbitrary positions within the coalesced TCP stream provides no alignment guarantees for the packet data causing performance penalties on architectures without efficient unaligned access. Additionally, openvpn's 2-byte length prefix on TCP packets causes the subsequent 4-byte opcode and packet ID fields to be inherently misaligned. Fix both issues by allocating a new skb for each openvpn packet and using skb_copy_bits to extract only the packet content into the new buffer, skipping the 2-byte length prefix. Also, check the length before invoking the function that performs the allocation to avoid creating an invalid skb. If the packet has to be forwarded to userspace the 2-byte prefix can be pushed to the head safely, without misalignment. As a side effect, this approach also avoids the expensive linearization that pskb_pull triggers on cloned skbs with page fragments. In testing, this resulted in TCP throughput improvements of up to 74%. The Linux kernel CVE team has assigned CVE-2026-43254 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 11851cbd60ea1e5abbd97619d69845ead99303d6 and fixed in 6.18.16 with commit 0315bec883c67fa1413c61e504a28dc5bd02eb37 Issue introduced in 6.16 with commit 11851cbd60ea1e5abbd97619d69845ead99303d6 and fixed in 6.19.6 with commit 7dba6cd7fb168d7615194a631c9c100c1c224131 Issue introduced in 6.16 with commit 11851cbd60ea1e5abbd97619d69845ead99303d6 and fixed in 7.0 with commit d4f687fbbce45b5e88438e89b5e26c0c15847992 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-43254 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: drivers/net/ovpn/tcp.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/0315bec883c67fa1413c61e504a28dc5bd02eb37 https://git.kernel.org/stable/c/7dba6cd7fb168d7615194a631c9c100c1c224131 https://git.kernel.org/stable/c/d4f687fbbce45b5e88438e89b5e26c0c15847992