CVE-2025-6052

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

State
Published
Severity
3.7 Low
Published
Jun 13, 2025
Updated
Jun 2, 2026
Reserved
Jun 13, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.13.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:Lredhat

Weaknesses

  • CWE-190 Integer Overflow or Wraparound

Affected Products

ProductVersions
Red Hat Enterprise Linux 10Red Hat
    Red Hat Enterprise Linux 10Red Hat
      Red Hat Enterprise Linux 10Red Hat
        Red Hat Enterprise Linux 10Red Hat
          Red Hat Enterprise Linux 10Red Hat
            Red Hat Enterprise Linux 10Red Hat
              Red Hat Enterprise Linux 6Red Hat
                Red Hat Enterprise Linux 7Red Hat
                  Red Hat Enterprise Linux 8Red Hat
                    Red Hat Enterprise Linux 8Red Hat
                      Red Hat Enterprise Linux 8Red Hat
                        Red Hat Enterprise Linux 9Red Hat
                          Red Hat Enterprise Linux 9Red Hat
                            Red Hat Enterprise Linux 9Red Hat
                              Red Hat Enterprise Linux 9Red Hat

                                References

                                Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.