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 2494880 2494881
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-24 17:21 UTC by OSIDB Bzimport
Modified: 2026-08-03 01:47 UTC (History)
6 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:49512 0 None None None 2026-08-03 01:47:18 UTC

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.

Comment 3 errata-xmlrpc 2026-08-03 01:47:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:49512 https://access.redhat.com/errata/RHSA-2026:49512


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