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.
Problem types
Integer Overflow or Wraparound
Product status
Timeline
| 2025-06-13: | Reported to Red Hat. |
| 2025-06-13: | Made public. |
Credits
Red Hat would like to thank Philip Withnall for reporting this issue.
References
cert-portal.siemens.com/productcert/html/ssa-032379.html
cert-portal.siemens.com/productcert/html/ssa-253495.html
access.redhat.com/security/cve/CVE-2025-6052
bugzilla.redhat.com/show_bug.cgi?id=2372666 (RHBZ#2372666)