Bug 2492255 (CVE-2026-58014) - CVE-2026-58014 glib: off-by-one error in glib/gkeyfile.c via "g_key_file_get_locale_string_list"
Summary: CVE-2026-58014 glib: off-by-one error in glib/gkeyfile.c via "g_key_file_get_...
Keywords:
Status: NEW
Alias: CVE-2026-58014
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2494879 2494881 2494880
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-24 17:21 UTC by OSIDB Bzimport
Modified: 2026-06-30 13:01 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-24 17:21:31 UTC
A heap-buffer-overflow READ of 1 byte occurs in g_key_file_get_locale_string_list() at gkeyfile.c:2464 when the resolved locale string value is an empty string (""). The function computes len = strlen(value) which yields 0, then accesses value[len - 1]. Since len is gsize(unsigned), len - 1 wraps to SIZE_MAX, causing a read of 1 byte before the heap allocation (under-read). Any application that loads a key file from untrusted input and calls g_key_file_get_locale_string_list() on a key whose value is empty is affected. The key file format is commonly used for .desktop files and application configuration.


Note You need to log in before you can comment on or make changes to this bug.