Logo
vulnerabilityCVE-2025-6052
Name
CVE-2025-6052
Source
NVD ( link)Debian ( link)
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
glib-2.0
Patched

Vulnerability Ratings#


3.7
CVSSv31
7.5
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
yocto
kirkstone
2.72.3
Not Affected
yocto
master
2.88.1
Not Affected

Resolved with patches#


glib-2.0 (yocto:scarthgap)

#
Title
Author
Resolve
1
gstring: Fix g_string_sized_new segmentation fault
Tobias Stoeckmann <tobias@stoeckmann.org>
CVE-2025-6052
2
gstring: Improve g_string_append_len_inline checks
Tobias Stoeckmann <tobias@stoeckmann.org>
CVE-2025-6052
3
gstring: Fix overflow check when expanding the string
Philip Withnall <pwithnall@gnome.org>
CVE-2025-6052