Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
glib2.0
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
glib2.0
Merge requests
!45
Update from debian/bookworm for apertis/v2026dev1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update from debian/bookworm for apertis/v2026dev1
proposed-updates/debian/bookworm/db8cbc89
into
apertis/v2026dev1
Overview
0
Commits
3
Pipelines
3
Changes
3
Merged
Apertis CI robot
requested to merge
proposed-updates/debian/bookworm/db8cbc89
into
apertis/v2026dev1
3 months ago
Overview
0
Commits
3
Pipelines
3
Changes
3
Expand
0
0
Merge request reports
Compare
apertis/v2026dev1
version 1
7a640746
3 months ago
apertis/v2026dev1 (base)
and
latest version
latest version
b564859d
3 commits,
3 months ago
version 1
7a640746
3 commits,
3 months ago
3 files
+
65
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
debian/patches/gsocks4aproxy-Fix-a-single-byte-buffer-overflow-in-connec.patch
0 → 100644
+
44
−
0
Options
From: Michael Catanzaro <mcatanzaro@redhat.com>
Date: Thu, 19 Sep 2024 18:35:53 +0100
Subject: gsocks4aproxy: Fix a single byte buffer overflow in connect messages
`SOCKS4_CONN_MSG_LEN` failed to account for the length of the final nul
byte in the connect message, which is an addition in SOCKSv4a vs
SOCKSv4.
This means that the buffer for building and transmitting the connect
message could be overflowed if the username and hostname are both
`SOCKS4_MAX_LEN` (255) bytes long.
Proxy configurations are normally statically configured, so the username
is very unlikely to be near its maximum length, and hence this overflow
is unlikely to be triggered in practice.
(Commit message by Philip Withnall, diagnosis and fix by Michael
Catanzaro.)
CVE-2024-52533
Bug: https://gitlab.gnome.org/GNOME/glib/-/issues/3461
Bug-Debian: https://bugs.debian.org/1087419
Origin: upstream, 2.82.1, commit:ec0b708b981af77fef8e4bbb603cde4de4cd2e29
---
gio/gsocks4aproxy.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gio/gsocks4aproxy.c b/gio/gsocks4aproxy.c
index 3dad118..b3146d0 100644
--- a/gio/gsocks4aproxy.c
+++ b/gio/gsocks4aproxy.c
@@ -79,9 +79,9 @@
g_socks4a_proxy_init (GSocks4aProxy *proxy)
* +----+----+----+----+----+----+----+----+----+----+....+----+------+....+------+
* | VN | CD | DSTPORT | DSTIP | USERID |NULL| HOST | | NULL |
* +----+----+----+----+----+----+----+----+----+----+....+----+------+....+------+
- * 1 1 2 4 variable 1 variable
+ * 1 1 2 4 variable 1 variable 1
*/
-#define SOCKS4_CONN_MSG_LEN (9 + SOCKS4_MAX_LEN * 2)
+#define SOCKS4_CONN_MSG_LEN (10 + SOCKS4_MAX_LEN * 2)
static gint
set_connect_msg (guint8 *msg,
const gchar *hostname,
Loading