CVE-2025-6052

Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring

CVE-2025-6052 is fixed in 18 products on 1 platform, first by DEBIAN-CVE-2025-6052, released June 13, 2025. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
7.5
high
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0052
44th percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
gir1.2-girepository-3.0 · Ubuntu 24.04.5 LTS (noble) 2.80.0-6ubuntu3.6 gir1.2-girepository-3.0 2.80.0-6ubuntu3.6 Dec 10, 2025
gir1.2-glib-2.0 · Ubuntu 24.04.5 LTS (noble) 2.80.0-6ubuntu3.6 gir1.2-glib-2.0 2.80.0-6ubuntu3.6 Dec 10, 2025
glib2 · amzn 2023 2.82.2-766.amzn2023 ALAS2023-2025-1069 Jul 3, 2025
glib2 · opensuse-leap 15.6 2.78.6-150600.4.16.1 SUSE-SU-2025:02167-1 Jun 30, 2025
glib2 · sles 15.6 2.78.6-150600.4.16.1 SUSE-SU-2025:02167-1 Jun 30, 2025
glib2 · sles 15.7 2.78.6-150600.4.16.1 SUSE-SU-2025:02167-1 Jun 30, 2025
glib2-debuginfo · amzn 2023 2.82.2-766.amzn2023 ALAS2023-2025-1069 Jul 3, 2025
glib2-debugsource · amzn 2023 2.82.2-766.amzn2023 ALAS2023-2025-1069 Jul 3, 2025
glib2-devel · amzn 2023 2.82.2-766.amzn2023 ALAS2023-2025-1069 Jul 3, 2025
glib2-devel-debuginfo · amzn 2023 2.82.2-766.amzn2023 ALAS2023-2025-1069 Jul 3, 2025
glib2-doc · amzn 2023 2.82.2-766.amzn2023 ALAS2023-2025-1069 Jul 3, 2025
glib2-doc · opensuse-leap 15.6 2.78.6-150600.4.16.1 SUSE-SU-2025:02167-1 Jun 30, 2025
glib2-static · amzn 2023 2.82.2-766.amzn2023 ALAS2023-2025-1069 Jul 3, 2025
glib2-tests · amzn 2023 2.82.2-766.amzn2023 ALAS2023-2025-1069 Jul 3, 2025
glib2-tests-debuginfo · amzn 2023 2.82.2-766.amzn2023 ALAS2023-2025-1069 Jul 3, 2025
glib2.0 · Debian 13.5 (trixie) 2.84.3-1 DEBIAN-CVE-2025-6052 Jun 13, 2025
glib2.0 · Debian 14 2.84.3-1 DEBIAN-CVE-2025-6052 Jun 13, 2025
libgirepository-2.0-0 · Ubuntu 24.04.5 LTS (noble) 2.80.0-6ubuntu3.6 libgirepository-2.0-0 2.80.0-6ubuntu3.6 Dec 10, 2025
libglib2.0-0t64 · Ubuntu 24.04.5 LTS (noble) 2.80.0-6ubuntu3.6 libglib2.0-0t64 2.80.0-6ubuntu3.6 Dec 10, 2025
libglib2.0-bin · Ubuntu 24.04.5 LTS (noble) 2.80.0-6ubuntu3.6 libglib2.0-bin 2.80.0-6ubuntu3.6 Dec 10, 2025
libglib2.0-data · Ubuntu 24.04.5 LTS (noble) 2.80.0-6ubuntu3.6 libglib2.0-data 2.80.0-6ubuntu3.6 Dec 10, 2025
libglib2.0-dev-bin · Ubuntu 24.04.5 LTS (noble) 2.80.0-6ubuntu3.6 libglib2.0-dev-bin 2.80.0-6ubuntu3.6 Dec 10, 2025
libglib2.0-tests · Ubuntu 24.04.5 LTS (noble) 2.80.0-6ubuntu3.6 libglib2.0-tests 2.80.0-6ubuntu3.6 Dec 10, 2025

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.