REDHAT-BUG-2492255: Medium severity GLib vulnerability

Published Jun 24, 2026
·
Updated

A heap-buffer-overflow READ of 1 byte occurs in gkeyfilegetlocalestringlist() 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 SIZEMAX, causing a read of 1 byte before the heap allocation (under-read). Any application that loads a key file from untrusted input and calls gkeyfilegetlocalestringlist() on a key whose value is empty is affected. The key file format is commonly used for .desktop files and application configuration.

Affected Software

1 affected component
GLib

Event History

Jun 24, 2026
Data Sourced
via Red Hat·05:21 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2492255?

The severity of REDHAT-BUG-2492255 is medium, rated at 4.

2

What is the nature of the vulnerability in REDHAT-BUG-2492255?

REDHAT-BUG-2492255 involves a heap-buffer-overflow read of 1 byte occurring in g_key_file_get_locale_string_list() when the locale string value is an empty string.

3

How do I fix REDHAT-BUG-2492255?

To fix REDHAT-BUG-2492255, software updates or patches addressing the issue in GLib should be applied as they become available.

4

What software is affected by REDHAT-BUG-2492255?

The software affected by REDHAT-BUG-2492255 is GLib.

5

What is the impact of REDHAT-BUG-2492255?

The impact of REDHAT-BUG-2492255 could lead to potential instability or undefined behavior in applications using the affected function when handling empty locale strings.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203