Skip to contentSkip to conversation

openvpn: upgrade 2.5.6 -> 2.5.11

PATCH Superseded [email protected] 2 participants 3 messages Nov 13, 2024

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 openvpn: upgrade 2.5.6 -> 2.5.11

From: Haixiao Yan <[email protected]>

License-Update: Add Apache2 linking with for new commits [1]

ChangeLog:
https://github.com/OpenVPN/openvpn/blob/v2.5.11/Changes.rst

Security fixes:
CVE-2024-5594: control channel: refuse control channel messages with nonprintable characters in them.
Security scope: a malicious openvpn peer can send garbage to openvpn log, or cause high CPU load.

[1] https://github.com/OpenVPN/openvpn/commit/4a89a55b8a9d6193957711bef74228796a185179

---
Add ChangeLog in the commit message

 .../openvpn/openvpn/CVE-2024-24974.patch      |  49 --------
 .../openvpn/openvpn/CVE-2024-27459.patch      |  99 ---------------
 .../openvpn/openvpn/CVE-2024-27903.patch      | 119 ------------------
 .../{openvpn_2.5.6.bb => openvpn_2.5.11.bb}   |   7 +-
 4 files changed, 2 insertions(+), 272 deletions(-)
 delete mode 100644 meta-networking/recipes-support/openvpn/openvpn/CVE-2024-24974.patch
 delete mode 100644 meta-networking/recipes-support/openvpn/openvpn/CVE-2024-27459.patch
 delete mode 100644 meta-networking/recipes-support/openvpn/openvpn/CVE-2024-27903.patch
 rename meta-networking/recipes-support/openvpn/{openvpn_2.5.6.bb => openvpn_2.5.11.bb} (92%)
meta-networking/recipes-support/openvpn/openvpn/CVE-2024-24974.patch deleted +0 -49
deleted file mode 100644
index b42b3040ef34..000000000000
@@ -1,49 +0,0 @@
-From 2c1de0f0803360c0a6408f754066bd3a6fb28237 Mon Sep 17 00:00:00 2001
-From: Lev Stipakov <[email protected]>
-Date: Tue, 19 Mar 2024 17:16:07 +0200
-Subject: [PATCH] interactive.c: disable remote access to the service pipe
-
-Remote access to the service pipe is not needed and might
-be a potential attack vector.
-
-For example, if an attacker manages to get credentials for
-a user which is the member of "OpenVPN Administrators" group
-on a victim machine, an attacker might be able to communicate
-with the privileged interactive service on a victim machine
-and start openvpn processes remotely.
-
-CVE: 2024-24974
-
-Microsoft case number: 85925
-
-Reported-by: Vladimir Tokarev <[email protected]>
-Change-Id: I8739c5f127e9ca0683fcdbd099dba9896ae46277
-Signed-off-by: Lev Stipakov <[email protected]>
-Acked-by: Heiko Hund <[email protected]>
-Message-Id: <[email protected]>
-URL: https://www.mail-archive.com/[email protected]/msg28419.html
-Signed-off-by: Gert Doering <[email protected]>
-
-CVE:CVE-2024-24974
-Upstream-Status: Backport [https://github.com/OpenVPN/openvpn/commit/2c1de0f0803360c0a6408f754066bd3a6fb28237]
-
-Signed-off-by: Meenali Gupta <[email protected]>
----
- src/openvpnserv/interactive.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c
-index 3b120ae..5e3ff12 100644
---- a/src/openvpnserv/interactive.c
-+++ b/src/openvpnserv/interactive.c
-@@ -1994,7 +1994,7 @@ CreateClientPipeInstance(VOID)
-
-     openvpn_sntprintf(pipe_name, _countof(pipe_name), TEXT("\\\\.\\pipe\\" PACKAGE "%s\\service"), service_instance);
-     pipe = CreateNamedPipe(pipe_name, flags,
--                           PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE,
-+                           PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_REJECT_REMOTE_CLIENTS,
-                            PIPE_UNLIMITED_INSTANCES, 1024, 1024, 0, NULL);
-     if (pipe == INVALID_HANDLE_VALUE)
-     {
---
-2.40.0
meta-networking/recipes-support/openvpn/openvpn/CVE-2024-27459.patch deleted +0 -99

99 lines not on this page · raw message

meta-networking/recipes-support/openvpn/openvpn/CVE-2024-27903.patch deleted +0 -119

119 lines not on this page · raw message

meta-networking/recipes-support/openvpn/openvpn_2.5.11.bb renamed from meta-networking/recipes-support/openvpn/openvpn_2.5.6.bb +2 -5
similarity index 92%
rename from meta-networking/recipes-support/openvpn/openvpn_2.5.6.bb
rename to meta-networking/recipes-support/openvpn/openvpn_2.5.11.bb
index b5ee31078b6a..810a60308b80 100644
@@ -2,7 +2,7 @@ SUMMARY = "A full-featured SSL VPN solution via tun device."
 HOMEPAGE = "https://openvpn.net/"
 SECTION = "net"
 LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=b76abd82c14ee01cc34c4ff5e3627b89"
+LIC_FILES_CHKSUM = "file://COPYING;md5=132de9241e3147d49dbaead12acb0b22"
 DEPENDS = "lzo openssl iproute2 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
 
 inherit autotools systemd update-rc.d
@@ -11,14 +11,11 @@ SRC_URI = "http://swupdate.openvpn.org/community/releases/${BP}.tar.gz \
            file://openvpn \
            file://[email protected] \
            file://openvpn-volatile.conf \
-           file://CVE-2024-24974.patch \
-           file://CVE-2024-27459.patch \
-           file://CVE-2024-27903.patch \
            "
 
 UPSTREAM_CHECK_URI = "https://openvpn.net/community-downloads"
 
-SRC_URI[sha256sum] = "333a7ef3d5b317968aca2c77bdc29aa7c6d6bb3316eb3f79743b59c53242ad3d"
+SRC_URI[sha256sum] = "7e2672119bd4639819d560f332a8b9b7e28f562425c77899f36d419fe4265f56"
 
 # CVE-2020-7224 and CVE-2020-27569 are for Aviatrix OpenVPN client, not for openvpn.
 CVE_CHECK_IGNORE += "CVE-2020-7224 CVE-2020-27569"
Signature · 1 line
2.34.1
#1 lore raw

Yan, Haixiao (CN) via lists.openembedded.org schrieb am Mi 13. Nov, 17:31 (GMT):

Quoted 3 lines

From: Haixiao Yan <[email protected]>

License-Update: Add Apache2 linking with for new commits [1]

^^^^^^^^
Is this spelling correct?

Regards, Jörg

#2 lore raw
Quoted 10 lines · Jörg Sommer

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Yan, Haixiao (CN) via lists.openembedded.org schrieb am Mi 13. Nov, 17:31 (GMT):

Quoted 3 lines

From: Haixiao Yan <[email protected]>

License-Update: Add Apache2 linking with for new commits [1]

^^^^^^^^
Is this spelling correct?
It's copied from https://github.com/OpenVPN/openvpn/commit/4a89a55b8a9d6193957711bef74228796a185179

we can change to:

License-Update: Add Apache2 linking for new commits [1]

Haixiao

Quoted 2 lines

Regards, Jörg