public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tim Semeijn <tim@blsmk.eu>
To: git-commits@fedoraproject.org
Subject: [rpms/3proxy] epel10.3: Patch CVE-2026-109438 (rhbz#2553107, rhbz#2553106)
Date: Thu, 22 Oct 2026 22:52:34 GMT	[thread overview]
Message-ID: <179270955455.1.17546707828631878453.rpms-3proxy-69abf00117ef@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/3proxy
Branch : epel10.3
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.3

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(&param->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(&param->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);

                 reply	other threads:[~2026-10-22 22:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179270955455.1.17546707828631878453.rpms-3proxy-69abf00117ef@fedoraproject.org \
    --to=tim@blsmk.eu \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox