Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E98F03F0761 for ; Wed, 27 May 2026 12:24:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884652; cv=none; b=qumXIyAoYSbyL0D47WJ4GC1pvya/Vq9hCi9sIz9XYk2I9GdmQF3DfhGdV1wRH42oUWTvoOsgySXjX1odCQZc+XxzcxVbHgaXTi2PmAJzVmSMPMZPrtS4h5acIi63vb4tph7JaHQN+i5RPKegNVAr6TBjnCAIku9qP5Yq3+XWVy0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884652; c=relaxed/simple; bh=HCt1nksW4toYkg9Txtm3cb1rSLuPdkGIjCKbrEMJ2qI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nkjtH2DiKX8tLPE4cyrAa66+ouoYBjqOQ+pY9Y7CkzZJ0xYELeqfv1zV8iA73KU92GUN7YiVr2EqJDGHryI53D/2Bk3wAg7rjcodz7T1brb4dkAmmMBHbSRdT6ntjMkgIs9GImQU648C8hgFP6px0TT0myg1VaZ+RdBp3peyPAM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O8HthKvT; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="O8HthKvT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48D221F000E9; Wed, 27 May 2026 12:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884650; bh=7Ed6E6OvadQ1k/3jQ7CJywY8cMw34EQ/8TRooECzRlk=; h=From:To:Cc:Subject:Date:Reply-To; b=O8HthKvTtzos8yAUWBXw2sOs95g5QWbPSAhJeD2h8+XOmRWoxw+ebbs9EysNU835I +0zs5Y74n6e7Hbecrm3R+aCb3YYd8QcyCLB/Q81KXYatdJXQwvq7c46FqDpWfkCxlI b3SBBX2/xcKc7bY7UpV/qajYPDnypn8zclRImWaM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45929: ovpn: fix possible use-after-free in ovpn_net_xmit Date: Wed, 27 May 2026 14:19:31 +0200 Message-ID: <2026052726-CVE-2026-45929-609a@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=2640; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=a0WoUyd3mOgYwZfKnR4utvxRtolS1mDUWRicMO8S9xQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD4VmzAvgVb1Xf7zyrPRlu8vvX9jly/BItUyNNNVsv Lnsy7sFHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRlO8MC04sfSLFclPh1MoQ le/aMypu35Jij2NYcJJVnve0w7wJJ6/WfTqYXOxnW7BwCgA= 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: fix possible use-after-free in ovpn_net_xmit When building the skb_list in ovpn_net_xmit, skb_share_check will free the original skb if it is shared. The current implementation continues to use the stale skb pointer for subsequent operations: - peer lookup, - skb_dst_drop (even though all segments produced by skb_gso_segment will have a dst attached), - ovpn_peer_stats_increment_tx. Fix this by moving the peer lookup and skb_dst_drop before segmentation so that the original skb is still valid when used. Return early if all segments fail skb_share_check and the list ends up empty. Also switch ovpn_peer_stats_increment_tx to use skb_list.next; the next patch fixes the stats logic. The Linux kernel CVE team has assigned CVE-2026-45929 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 08857b5ec5d91d83e69e40a36554a8c7557b7301 and fixed in 6.18.14 with commit 3e4fbcb4e078915367ba5576cd70d76dbc970f95 Issue introduced in 6.16 with commit 08857b5ec5d91d83e69e40a36554a8c7557b7301 and fixed in 6.19.4 with commit 442915c96a9bff1c7080e2aedabb1c03faa28d81 Issue introduced in 6.16 with commit 08857b5ec5d91d83e69e40a36554a8c7557b7301 and fixed in 7.0 with commit a5ec7baa44ea3a1d6aa0ca31c0ad82edf9affe41 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-45929 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/io.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/3e4fbcb4e078915367ba5576cd70d76dbc970f95 https://git.kernel.org/stable/c/442915c96a9bff1c7080e2aedabb1c03faa28d81 https://git.kernel.org/stable/c/a5ec7baa44ea3a1d6aa0ca31c0ad82edf9affe41