Skip to content

CVE-2025-6052 Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring

HighCVSS 7.5 EPSS 0.54%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

A flaw was found in how GLib’s GString manages memory when adding data to strings. If a string is already very large, combining it with more input can cause a hidden overflow in the size calculation. This makes the system think it has enough memory when it doesn’t. As a result, data may be written past the end of the allocated memory, leading to crashes or memory corruption.

Upgrade path

8 packages: 7 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
redhat enterprise linux = 6; = 7; = 8; = 9 +2 more No fix listed No fix yet
azure linux glib(Azure Linux 3.0) < 2.78.6-3 2.78.6-3 Fixed
debian/glib2.0(Debian 13) < 2.84.3-1 2.84.3-1 Fixed
debian/glib2.0(Debian 14) < 2.84.3-1 2.84.3-1 Fixed
GNOME glib >= 2.75.3, <= 2.84.3 after 2.84.3 Fixed
Siemens RUGGEDCOM RST2428P < V4.0 V4.0 Fixed
Siemens SIMATIC CN 4100 < V5.0 V5.0 Fixed
ubuntu/glib2.0(Ubuntu 24.04) < 2.80.0-6ubuntu3.6 2.80.0-6ubuntu3.6 Fixed

Affected products

ProductAffected versionsFixed in
azure linux glib(Azure Linux:3.0) < 2.78.6-3 2.78.6-3
debian/glib2.0(Debian:13) < 2.84.3-1 2.84.3-1
debian/glib2.0(Debian:14) < 2.84.3-1 2.84.3-1
redhat enterprise linux = 10 No fix listed
redhat enterprise linux All versions No fix listed
redhat enterprise linux = 6 No fix listed
redhat enterprise linux = 7 No fix listed
redhat enterprise linux = 8 No fix listed
redhat enterprise linux = 9 No fix listed
Siemens RUGGEDCOM RST2428P < V4.0 V4.0
Siemens SIMATIC CN 4100 < V5.0 V5.0
ubuntu/glib2.0(Ubuntu:24.04) < 2.80.0-6ubuntu3.6 2.80.0-6ubuntu3.6
GNOME glib >= 2.75.3, <= 2.84.3 No fix listed

References