| Message ID | 20261202145451.19416-1-gert@greenie.muc.de |
|---|---|
| State | New |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:6022:91c9:10b0:11b:d6c:f273 with SMTP id
tl9-n1csp16394963lad;
Wed, 2 Dec 2026 06:55:08 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AL+hErGkCfuVUD0DHMzgIQaOsdOBIuuX1qlfMtGNeAEAUqWlb0fhQna9kvBVxlhNaxc3EZjTCyenumfU1qI=@openvpn.net
X-Received: by 2002:a17:90b:4a4f:b0:3ac:8af9:4a6a with SMTP id
98e67ed59e1d1-3b41c93c3b7mr43215173a91.42.1796223307720;
Wed, 02 Dec 2026 06:55:07 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1796223307; cv=none;
d=google.com; s=arc-20260327;
b=jIwrNol849VooV8siVkC8+NgBhVFTQ5z4XO9G0xtg8izEnUL/gEEHEAZLqLGPXJi5V
2YPr4fhPZD4wSxwozLwAlz0CKHPlMaJz+21CXpn+/y4ochoUNbqiwEYzDcnOJow+uatb
aEpTxi3EJbxulDlFI2wKdUnN7VbqYBlXVeyfFodgmyXfSH5MQbF+K7FeTD2d0iESJ1qs
CA654vQf/zFQD6ATr7saOABeTwUEQwZalrc19kO2a2fNxFq06oAhRWofCWpApqd8r+Rk
vrvIPlNEuwwQBgkPFILVVMvPEbZz9BHziem3i3Zdrv8ftg9RhQHoi3h+1nr2Yj1iKUrd
5eDw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=errors-to:content-transfer-encoding:list-subscribe:list-help
:list-post:list-archive:list-unsubscribe:list-id:precedence:subject
:mime-version:references:in-reply-to:message-id:date:to:from
:dkim-signature:dkim-signature:dkim-signature;
bh=sy2bgOt6MnTToJRBexkLWrvMrItqJCeeD9A+0/uV2D4=;
fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=;
b=L2QPYZt9ivt5mS4iI5HKWWDps3VZZ5OcJMAlggZH39Leleq3oU2hTisI98qIYdDlSp
paHMuV0ncxv27WHQ7WqHILxzGDfYiWIz+Zqk59qqui7ZUcLDoxbCZlTjUwmrYOvQdgOf
ZBgUrThJdT0VDA8LWGeZDH0lAR2o/UsaJoZG6pECBASq8Mv98EFlm7IlF8AciXeJ9+xt
GqrPSSMPlSsIxIEYMPNOClbq1Zhvt4/hqtzfI7QjXIgtngdxxEtnj1ePWrW2+e9ZreFy
TPGSgcCAPKpv2OqA9d/U7wnr3a5g5VpwMZvbEhJNfVjI3CQVVrtM25fkFAWS5fGuSitk
fOEQ==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=I5rK6fEc;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=feR89MES;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=OlaCaMBY;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net;
dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de
Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7])
by mx.google.com with ESMTPS id
41be03b00d2f7-cdebefcd8d6si40902607a12.394.2026.12.02.06.55.07
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Wed, 02 Dec 2026 06:55:07 -0800 (PST)
Received-SPF: pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) client-ip=216.105.38.7;
Authentication-Results: mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=I5rK6fEc;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=feR89MES;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=OlaCaMBY;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net;
dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:
List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:
Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender:
Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post:
List-Owner; bh=sy2bgOt6MnTToJRBexkLWrvMrItqJCeeD9A+0/uV2D4=; b=I5rK6fEcWnhvP6
X71B6NRIG8E4CR4Px6vwk63J8mkf0SkVVsAsPCDufCb/fDHRD1RZpaCvT0WPTHQE4tLseH7PrvegO
4Q5wTyYAZ2noOJjD6rKUZYJrekzlDxf3aXieLGpEQ0hwZskHzVKDsOw/xg5h1+T7n7ceUNZRmxP1h
xv0=;
Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com)
by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.100.1)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1xYljc-000000007ct-3uQQ;
Wed, 02 Dec 2026 14:55:04 +0000
Received: from [172.30.29.66] (helo=mx.sourceforge.net)
by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1)
(envelope-from <gert@blue4.greenie.muc.de>)
id 1xYljY-000000007UL-20Cn for openvpn-devel@lists.sourceforge.net;
Wed, 02 Dec 2026 14:55:00 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References:
In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:
Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive;
bh=j3TxuG6UWK/6jl2viFpuqVOjxjF9dwx3fUMSG3w2BrA=; b=feR89MESBAvKG138daKsYUT60P
qnsAf9Xg/IufM6SKDmNJWS8AmFlAVFQJuu47K3yAzjy9LDIzM8n0hDNEiNeTyqOEDqg1jbapPInGv
L/jxnZ9jHaeXhfd1iQx+9wJOf3LMfnz6Cufh99r1kgPtJzyNOODepcB5BeC/KTPbrR/o=;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x
;
h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:
Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=j3TxuG6UWK/6jl2viFpuqVOjxjF9dwx3fUMSG3w2BrA=; b=OlaCaMBYOz7uk/E25LXBnzsGl3
aG1zbqdBmk3/LEcSsUQCIHFvOestTR7zrXFOoQIdb7HVS2KbzQAWDN0MNa3SYNwaeRxd6RZDN5AmE
EJ5JnLQtB5aEB2kbqUO0lOquxoJNOONqH6Lv6DZ910wlPdXypAy2nmv7hWzC/3tMa7EU=;
Received: from [193.149.48.129] (helo=blue.greenie.muc.de)
by sfi-mx-1.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1)
id 1xYljW-000000008NV-2QG7 for openvpn-devel@lists.sourceforge.net;
Wed, 02 Dec 2026 14:55:00 +0000
Received: from blue.greenie.muc.de (localhost [127.0.0.1])
by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 6B2EspOq019429
for <openvpn-devel@lists.sourceforge.net>; Wed, 2 Dec 2026 15:54:51 +0100
Received: (from gert@localhost)
by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 6B2Espat019428
for openvpn-devel@lists.sourceforge.net; Wed, 2 Dec 2026 15:54:51 +0100
From: Gert Doering <gert@greenie.muc.de>
To: openvpn-devel@lists.sourceforge.net
Date: Wed, 2 Dec 2026 15:54:46 +0100
Message-ID: <20261202145451.19416-1-gert@greenie.muc.de>
X-Mailer: git-send-email 2.55.0
In-Reply-To:
<gerrit.1796136384000.I625256cd3a3054cf94510137f3f4579fc5e8098c@gerrit.openvpn.net>
References:
<gerrit.1796136384000.I625256cd3a3054cf94510137f3f4579fc5e8098c@gerrit.openvpn.net>
MIME-Version: 1.0
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software,
running on the system "sfi-spamd-1.hosts.colo.sdot.me",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: From: Razvan Cojocaru <razvanc@mailbox.org> A UDP packet
from
0.0.0.0 (sent to 255.255.255.255) or from :: crashed the receiving process
before any authentication: - p2p without --remote:
link_socket_bad_incoming_addr()
dereferenced the NULL remote_list - server: the stateless HMAC reset reply
was sent to the unspecified address and hit the ASSERT in process_out [...]
Content analysis details: (1.3 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-Headers-End: 1xYljW-000000008NV-2QG7
Subject: [Openvpn-devel] [PATCH v2] forward: drop datagrams from an
unspecified source address
X-BeenThere: openvpn-devel@lists.sourceforge.net
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <openvpn-devel.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive:
<http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel>
List-Post: <mailto:openvpn-devel@lists.sourceforge.net>
List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: openvpn-devel-bounces@lists.sourceforge.net
X-getmail-retrieved-from-mailbox: Inbox
X-GMAIL-THRID: 1883476650720479217
X-GMAIL-MSGID: 1883476650720479217
|
| Series |
[Openvpn-devel,v2] forward: drop datagrams from an unspecified source address
|
|
Commit Message
Gert Doering
Dec. 2, 2026, 2:54 p.m. UTC
From: Razvan Cojocaru <razvanc@mailbox.org> A UDP packet from 0.0.0.0 (sent to 255.255.255.255) or from :: crashed the receiving process before any authentication: - p2p without --remote: link_socket_bad_incoming_addr() dereferenced the NULL remote_list - server: the stateless HMAC reset reply was sent to the unspecified address and hit the ASSERT in process_outgoing_link(); 2.5 crashed like p2p instead tls-auth/tls-crypt don't prevent it on a server, since a replayed client reset is answered. Such packets can be sent by hosts on the same link, and by authenticated clients of a TAP server through their tunnel. Drop them right after reading, before any other processing. CVE: 2026-142094 Change-Id: I625256cd3a3054cf94510137f3f4579fc5e8098c Signed-off-by: Razvan Cojocaru <razvanc@mailbox.org> Acked-by: Ralf Lici <ralf@mandelbit.com> Gerrit URL: https://gerrit.openvpn.net/c/openvpn-private/+/2385 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn-private/+/2385 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Ralf Lici <ralf@mandelbit.com>
diff --git a/src/openvpn/forward.c b/src/openvpn/forward.c index b4277db..12ba552 100644 --- a/src/openvpn/forward.c +++ b/src/openvpn/forward.c @@ -1004,6 +1004,15 @@ /* Remove socks header if applicable */ socks_postprocess_incoming_link(c, sock); + + /* A datagram from an unspecified source address (0.0.0.0 or ::) + * cannot be answered, and later processing assumes a defined peer */ + if (c->c2.buf.len > 0 && proto_is_udp(sock->info.proto) + && !link_socket_actual_defined(&c->c2.from)) + { + msg(D_LINK_ERRORS, "UDP: dropping packet from unspecified source address"); + c->c2.buf.len = 0; + } } bool