Description
A flaw was found in GLib. An off-by-one error can occur in the g_key_file_get_locale_string_list function in the gkeyfile.c file when loading a key file with an empty value. This flaw can cause an out-of-bounds access of 1 byte or a denial of service when the out-of-bounds access crosses a page boundary.
Published: 2026-06-30
Score: 7.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An off‑by‑one condition was discovered in the GLib routine g_key_file_get_locale_string_list. When a key file contains an empty value, the routine performs an out‑of‑bounds memory read or write of a single byte. If the faulty access crosses a memory page boundary, it can trigger a crash that results in a denial of service. The weakness is an implementation bug classified as CWE‑193, which typically leads to reliability and availability problems rather than privilege escalation or data disclosure.

Affected Systems

The flaw affects Red Hat Enterprise Linux distributions 6, 7, 8, 9 and 10, as well as Red Hat Hardened Images, through the bundled GLib library. The vulnerability is triggered by loading malformed key files such as .desktop or .ini that are processed by applications using the g_key_file_get_locale_string_list function.

Risk and Exploitability

The CVSS score of 7.3 reflects a medium to high severity risk. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, indicating no confirmed widespread exploitation yet. However, because the flaw operates on key files that are often loaded from user supplied or network sources, an attacker who can supply a crafted file to a vulnerable application may cause that application to crash. The likely attack vector is local file or possibly remote if an application reads untrusted key files from the network. The exploit would lead to denial of service of the affected application and, in worst cases, could degrade overall system availability if the crash cascades.

Generated by OpenCVE AI on June 30, 2026 at 15:51 UTC.

Remediation

Vendor Workaround

To mitigate this vulnerability, implement input validation to sanitize untrusted key files (such as .desktop or .ini files), specifically rejecting or stripping empty values before calling g_key_file_get_locale_string_list(). Alternatively, restricting the application to only load key files from trusted sources will completely neutralize this issue.


OpenCVE Recommended Actions

  • Apply the latest Red Hat security update that contains the GLib fix for the g_key_file_get_locale_string_list routine.
  • Validate all key files before calling g_key_file_get_locale_string_list: strip or reject empty values in the file data and reject files that are not from trusted sources.
  • If a patch cannot be applied immediately, limit the application to load key files only from a pre‑approved directory or bind‑mount the trusted locations, thereby preventing malicious key files from being parsed.

Generated by OpenCVE AI on June 30, 2026 at 15:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 01 Jul 2026 10:30:00 +0000

Type Values Removed Values Added
First Time appeared Gnome
Gnome glib
Redhat hardened Images
Vendors & Products Gnome
Gnome glib
Redhat hardened Images

Tue, 30 Jun 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 30 Jun 2026 13:15:00 +0000

Type Values Removed Values Added
Description A flaw was found in GLib. An off-by-one error can occur in the g_key_file_get_locale_string_list function in the gkeyfile.c file when loading a key file with an empty value. This flaw can cause an out-of-bounds access of 1 byte or a denial of service when the out-of-bounds access crosses a page boundary.
Title Glib: off-by-one error in glib/gkeyfile.c via "g_key_file_get_locale_string_list"
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Weaknesses CWE-193
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'}


Subscriptions

Gnome Glib
Redhat Enterprise Linux Hardened Images Hummingbird
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-06-30T18:49:54.989Z

Reserved: 2026-06-26T20:59:47.856Z

Link: CVE-2026-58014

cve-icon Vulnrichment

Updated: 2026-06-30T18:44:59.091Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-01T10:01:36Z

Weaknesses