public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/3proxy] epel10: Patch CVE-2026-109438 (rhbz#2553107, rhbz#2553106)
@ 2026-10-22 22:53 Tim Semeijn
0 siblings, 0 replies; only message in thread
From: Tim Semeijn @ 2026-10-22 22:53 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/3proxy
Branch : epel10
Commit : 69abf00117efc1975e3946b52a260813a20445a1
Author : Tim Semeijn <tim@blsmk.eu>
Date : 2026-10-23T00:47:20+02:00
Stats : +49/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/3proxy/c/69abf00117efc1975e3946b52a260813a20445a1?branch=epel10
Log:
Patch CVE-2026-109438 (rhbz#2553107, rhbz#2553106)
---
diff --git a/3proxy.spec b/3proxy.spec
index dce8892..5cbfe9e 100644
--- a/3proxy.spec
+++ b/3proxy.spec
@@ -22,6 +22,10 @@ BuildRequires: systemd-rpm-macros
Patch0: 3proxy-1.0.0-config-path.patch
# Adapt manpages to reflect renamed proxy binary
Patch1: 3proxy-1.0.0-manpage.patch
+# Fix CVE-2026-109438 (rhbz#2553107, rhbz#2553106)
+# Backported from upstream:
+# https://github.com/3proxy/3proxy/commit/206c923d6cd433bd2e7196375442650c328b8bfa
+Patch2: CVE-2026-109438.patch
%description
%{name} -- light proxy server.
diff --git a/CVE-2026-109438.patch b/CVE-2026-109438.patch
new file mode 100644
index 0000000..258c630
--- /dev/null
+++ b/CVE-2026-109438.patch
@@ -0,0 +1,45 @@
+From 206c923d6cd433bd2e7196375442650c328b8bfa Mon Sep 17 00:00:00 2001
+From: Vladimir Dubrovin <3proxy@3proxy.ru>
+Date: Mon, 12 Oct 2026 18:03:07 +0300
+Subject: [PATCH] Fix SOCKS CONNECT and BIND replies reporting the client side
+ address
+
+Without -Ne, the reply to CONNECT and BIND named the local address of the
+client's connection to the proxy instead of the socket towards the
+destination: the branch meant for UDP ASSOCIATE also took these. A BIND
+client was told the proxy's own port and the peer could never reach the
+listener. Introduced with -Ne / -Ni (0c8be90).
+
+Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
+---
+ src/socks.c | 17 +++++++++++------
+ 1 file changed, 11 insertions(+), 6 deletions(-)
+
+diff --git a/src/socks.c b/src/socks.c
+index c39ffabe..fbbd80a7 100644
+--- a/src/socks.c
++++ b/src/socks.c
+@@ -272,12 +272,17 @@ fflush(stderr);
+ int repcode;
+
+ sasize = sizeof(sin);
+- if(command != 3 && param->remsock != INVALID_SOCKET) param->srv->so._getsockname(param->sostate, param->remsock, (struct sockaddr *)&sin, &sasize);
+- if(command != 3 && !SAISNULL(¶m->srv->extNat)){
+- uint16_t port;
+- port = *SAPORT(&sin);
+- sin = param->srv->extNat;
+- *SAPORT(&sin) = port;
++ /* CONNECT and BIND report the address of the socket towards the
++ destination, UDP ASSOCIATE the one the client sends its datagrams
++ to, as does a request which never got a socket of its own */
++ if(command != 3 && param->remsock != INVALID_SOCKET){
++ param->srv->so._getsockname(param->sostate, param->remsock, (struct sockaddr *)&sin, &sasize);
++ if(!SAISNULL(¶m->srv->extNat)){
++ uint16_t port;
++ port = *SAPORT(&sin);
++ sin = param->srv->extNat;
++ *SAPORT(&sin) = port;
++ }
+ }
+ else {
+ param->srv->so._getsockname(param->sostate, param->clisock, (struct sockaddr *)&sin, &sasize);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-22 22:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22 22:53 [rpms/3proxy] epel10: Patch CVE-2026-109438 (rhbz#2553107, rhbz#2553106) Tim Semeijn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox