# 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.

- Web page: https://patchblox.com/security/cve/CVE-2025-6052
- Priority: High
- CVSS: 7.5 (high)
- EPSS: 0.0052
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 13, 2025
- Weakness: Integer Overflow or Wraparound
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-6052

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| 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](https://patchblox.com/security/data/fix/linux/ubuntu-noble-gir1.2-girepository-3.0-2.80.0-6ubuntu3.6.md) | Dec 10, 2025 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-noble-gir1.2-glib-2.0-2.80.0-6ubuntu3.6.md) | Dec 10, 2025 |
| Linux | glib2 amzn 2023 | 2.82.2-766.amzn2023 | [ALAS2023-2025-1069](https://patchblox.com/security/data/fix/linux/alas2023-2025-1069.md) | Jul 3, 2025 |
| Linux | glib2 opensuse-leap 15.6 | 2.78.6-150600.4.16.1 | [SUSE-SU-2025:02167-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02167-1.md) | Jun 30, 2025 |
| Linux | glib2 sles 15.6 | 2.78.6-150600.4.16.1 | [SUSE-SU-2025:02167-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02167-1.md) | Jun 30, 2025 |
| Linux | glib2 sles 15.7 | 2.78.6-150600.4.16.1 | [SUSE-SU-2025:02167-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02167-1.md) | Jun 30, 2025 |
| Linux | glib2-debuginfo amzn 2023 | 2.82.2-766.amzn2023 | [ALAS2023-2025-1069](https://patchblox.com/security/data/fix/linux/alas2023-2025-1069.md) | Jul 3, 2025 |
| Linux | glib2-debugsource amzn 2023 | 2.82.2-766.amzn2023 | [ALAS2023-2025-1069](https://patchblox.com/security/data/fix/linux/alas2023-2025-1069.md) | Jul 3, 2025 |
| Linux | glib2-devel amzn 2023 | 2.82.2-766.amzn2023 | [ALAS2023-2025-1069](https://patchblox.com/security/data/fix/linux/alas2023-2025-1069.md) | Jul 3, 2025 |
| Linux | glib2-devel-debuginfo amzn 2023 | 2.82.2-766.amzn2023 | [ALAS2023-2025-1069](https://patchblox.com/security/data/fix/linux/alas2023-2025-1069.md) | Jul 3, 2025 |
| Linux | glib2-doc amzn 2023 | 2.82.2-766.amzn2023 | [ALAS2023-2025-1069](https://patchblox.com/security/data/fix/linux/alas2023-2025-1069.md) | Jul 3, 2025 |
| Linux | glib2-doc opensuse-leap 15.6 | 2.78.6-150600.4.16.1 | [SUSE-SU-2025:02167-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02167-1.md) | Jun 30, 2025 |
| Linux | glib2-static amzn 2023 | 2.82.2-766.amzn2023 | [ALAS2023-2025-1069](https://patchblox.com/security/data/fix/linux/alas2023-2025-1069.md) | Jul 3, 2025 |
| Linux | glib2-tests amzn 2023 | 2.82.2-766.amzn2023 | [ALAS2023-2025-1069](https://patchblox.com/security/data/fix/linux/alas2023-2025-1069.md) | Jul 3, 2025 |
| Linux | glib2-tests-debuginfo amzn 2023 | 2.82.2-766.amzn2023 | [ALAS2023-2025-1069](https://patchblox.com/security/data/fix/linux/alas2023-2025-1069.md) | Jul 3, 2025 |
| Linux | glib2.0 Debian 13.5 (trixie) | 2.84.3-1 | [DEBIAN-CVE-2025-6052](https://patchblox.com/security/data/fix/linux/debian-cve-2025-6052.md) | Jun 13, 2025 |
| Linux | glib2.0 Debian 14 | 2.84.3-1 | [DEBIAN-CVE-2025-6052](https://patchblox.com/security/data/fix/linux/debian-cve-2025-6052.md) | Jun 13, 2025 |
| Linux | libgirepository-2.0-0 Ubuntu 24.04.5 LTS (noble) | 2.80.0-6ubuntu3.6 | [libgirepository-2.0-0 2.80.0-6ubuntu3.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libgirepository-2.0-0-2.80.0-6ubuntu3.6.md) | Dec 10, 2025 |
| Linux | libglib2.0-0t64 Ubuntu 24.04.5 LTS (noble) | 2.80.0-6ubuntu3.6 | [libglib2.0-0t64 2.80.0-6ubuntu3.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libglib2.0-0t64-2.80.0-6ubuntu3.6.md) | Dec 10, 2025 |
| Linux | libglib2.0-bin Ubuntu 24.04.5 LTS (noble) | 2.80.0-6ubuntu3.6 | [libglib2.0-bin 2.80.0-6ubuntu3.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libglib2.0-bin-2.80.0-6ubuntu3.6.md) | Dec 10, 2025 |
| Linux | libglib2.0-data Ubuntu 24.04.5 LTS (noble) | 2.80.0-6ubuntu3.6 | [libglib2.0-data 2.80.0-6ubuntu3.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libglib2.0-data-2.80.0-6ubuntu3.6.md) | Dec 10, 2025 |
| Linux | libglib2.0-dev-bin Ubuntu 24.04.5 LTS (noble) | 2.80.0-6ubuntu3.6 | [libglib2.0-dev-bin 2.80.0-6ubuntu3.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libglib2.0-dev-bin-2.80.0-6ubuntu3.6.md) | Dec 10, 2025 |
| Linux | libglib2.0-tests Ubuntu 24.04.5 LTS (noble) | 2.80.0-6ubuntu3.6 | [libglib2.0-tests 2.80.0-6ubuntu3.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libglib2.0-tests-2.80.0-6ubuntu3.6.md) | Dec 10, 2025 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

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.
