| Message ID | 20261028122226.3006-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:7000:78dc:b0:8dc:5c83:a4ec with SMTP id
e28csp1432519max;
Wed, 28 Oct 2026 05:22:39 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AKwUvByIs0YcZSVDK8Qo+V6tC1c6IFzaeTlGfuXZWQ5Day7U0IU91eO+1tOHG+4Z/Izjy03v6oJOeeLiSMc=@openvpn.net
X-Received: by 2002:a05:6830:90f:b0:7dc:dbe4:3f21 with SMTP id
46e09a7af769-85aba80af99mr1714963a34.1.1793190159157;
Wed, 28 Oct 2026 05:22:39 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1793190159; cv=none;
d=google.com; s=arc-20260327;
b=iD+h98QLws+Tc5rvkwkayt4czzLFZFcjo7WO9kzpcGFyM9g4GTx4CefhfAeL94kjtC
X5FEhb2M4tgqYo/zPm6fOZoUI48oWwnbKICwyqSRTSFxsbALtwX9/C7q8U57+PHCnOi6
5b+tzbMGIYupqjKgQHD+Kfio0JHfpiWbLmZYL4iXGt/a4plxCj3baAO9diMkx9qOyH4q
cwYPQNHhxLB7+YL0788Kfi0kNIg6V2bZsQUM+6xP64A9QfwZTLobHnkocH74pgGIv1M8
okP6kmpNbJECYEFzXwMyND3g8VD6T2fZEsosBvvXbGKS3YPAWdsEKDUBwjVxc10gxuSJ
oBzw==
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=bntM1wDhp7yhMzkoWv4ko6OMcdo2XAOy5ZtthYF/TSg=;
fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=;
b=jQZgTxMbvEqfkfgyVPcS2jlraugRjrDySyX0hQQv2wZq4nhndVtkKCsjIlcKZwYeV3
ThAq043ssuAszpCyaQVs/asoDugoslioj3SlsBehdnRsKfhwUY5a9b2IQwx2q7vslsk9
Ee5JtyKoUjd+Wr0Coh4guThEVrq1LZzQ7BFL4bOKAEOW5hMet9y90k43kfvQyTKTvBqr
AvOjA7ja1Rex3T/1Axk1r1+un/xHvosHIFgEEIkxvm1Ew3xcqhSVdldldL7cckHtk81z
6jGxh9BZ55/UAHQbq+RAsdgnaGICOZuVsyenFkf+n8rZzrmgIaattJuu7AgKKmxz8N12
Kqqg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=gtrgXF2U;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=C2TNP5Af;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=LP96VFWH;
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
46e09a7af769-85b1fe2fc2fsi2161290a34.132.2026.10.28.05.22.38
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Wed, 28 Oct 2026 05:22:39 -0700 (PDT)
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=gtrgXF2U;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=C2TNP5Af;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=LP96VFWH;
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=bntM1wDhp7yhMzkoWv4ko6OMcdo2XAOy5ZtthYF/TSg=; b=gtrgXF2UvshBrR
R96q95Vikt8Jhh2AsDxXWI9V8+24b8ZxOR8KglIPZg+Q6ObxQCuhmsU3DGuLOR0vHgM6+U+26spN8
pSuzPm+s0FX2SU2SyTxYC1CDbBOxV1wGvn3qRe4QkQAis+7T7o4huJmdzk2BtrKheJHjJxPpyKHrr
qkM=;
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 1xM2fs-000000002sI-1EC8;
Wed, 28 Oct 2026 12:22:36 +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 1xM2fr-000000002sC-1ood for openvpn-devel@lists.sourceforge.net;
Wed, 28 Oct 2026 12:22:35 +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=bXNyUvWJHm5kREWiY+/FzQz8EqwEGVwgMeHCwg67Q2A=; b=C2TNP5Afr7xUiJZoCBxW3R5vOK
LE7x3Tun0MMlh3ilCAjrH5mOzFMV+/QHa7bmXDh5JRvhleEYt2m5+lYHqC9pYuoL5eVc4ZkahSxz3
SyeUSH+kKlxZJivUrvjfgLpdph6tyJ2O3MZLQ+/e8ud60klss0RbQvZJTzBHCpog9F+c=;
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=bXNyUvWJHm5kREWiY+/FzQz8EqwEGVwgMeHCwg67Q2A=; b=LP96VFWHtHlD3gEfFbCbse4hkf
wIl9cBW7mXuJc+F3ewcCXtJuZZ+o0+l0Q+Bd2wzrsLbNvjNrUF0EJ9JYCIxQJ3titBksALDi3LRBF
n0IExtlgFcmWWLPl9vPNVHhk7CCzdIGeloJ0ZaJc+CHnwf0ZAfzRCh66O+OK6VkrFW1s=;
Received: from [193.149.48.129] (helo=blue.greenie.muc.de)
by sfi-mx-2.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1)
id 1xM2fp-000000006Sj-33bg for openvpn-devel@lists.sourceforge.net;
Wed, 28 Oct 2026 12:22:35 +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 69SCMQaa003018
for <openvpn-devel@lists.sourceforge.net>; Wed, 28 Oct 2026 13:22:26 +0100
Received: (from gert@localhost)
by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 69SCMQjQ003017
for openvpn-devel@lists.sourceforge.net; Wed, 28 Oct 2026 13:22:26 +0100
From: Gert Doering <gert@greenie.muc.de>
To: openvpn-devel@lists.sourceforge.net
Date: Wed, 28 Oct 2026 13:22:20 +0100
Message-ID: <20261028122226.3006-1-gert@greenie.muc.de>
X-Mailer: git-send-email 2.55.0
In-Reply-To:
<gerrit.1793187249000.Ide5a3064e51d4a22f914e76c1d8165fdd4d005f4@gerrit.openvpn.net>
References:
<gerrit.1793187249000.Ide5a3064e51d4a22f914e76c1d8165fdd4d005f4@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: Arne Schwabe <arne@rfc2549.org> Commit d42a9912c1
introduced
a check to ensure that also the username is identical for floats and not
only the certificate. This check did not mark the buffer as invalid in those
cases like the certif [...]
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: 1xM2fp-000000006Sj-33bg
Subject: [Openvpn-devel] [PATCH v2] Mark buffer invalid with username
mismatch in server side float
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: 1880295717132594284
X-GMAIL-MSGID: 1880296164433323036
|
| Series |
[Openvpn-devel,v2] Mark buffer invalid with username mismatch in server side float
|
|
Commit Message
Gert Doering
Oct. 28, 2026, 12:22 p.m. UTC
From: Arne Schwabe <arne@rfc2549.org> Commit d42a9912c1 introduced a check to ensure that also the username is identical for floats and not only the certificate. This check did not mark the buffer as invalid in those cases like the certificate check. Reported-by: QiuYiati on https://github.com/OpenVPN/openvpn/issues/1137 GitHub: closes OpenVPN/openvpn#1137 Change-Id: Ide5a3064e51d4a22f914e76c1d8165fdd4d005f4 Signed-off-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Razvan Cojocaru <razvanc@mailbox.org> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2058 --- 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/+/2058 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Razvan Cojocaru <razvanc@mailbox.org>
diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c index e302a81..caee3ff 100644 --- a/src/openvpn/multi.c +++ b/src/openvpn/multi.c @@ -3172,6 +3172,7 @@ { msg(D_MULTI_LOW, "Disallow float/connect to an address taken by another client %s", multi_instance_string(ex_mi, false, &gc)); + mi->context.c2.buf.len = 0; goto done; } }