Description
A flaw was found in GLib. A buffer over-read can occur in g_io_channel_read_line_backend() in the giochannel.c file when a custom line terminator with a length greater than one is set, causing memcmp to read past the GString buffer. This vulnerability can cause a minor information disclosure of 7 bytes or a denial of service when the buffer over-read crosses a page boundary.
Published: 2026-06-30
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

GLib contains a buffer over‑read in the function g_io_channel_read_line_backend() when a custom line terminator longer than one byte is set. The memcmp operation then reads past the end of the GString buffer, potentially exposing up to seven bytes of adjacent memory or triggering a denial of service if the over‑read crosses a page boundary. This flaw is identified as CWE‑126, an unsafe buffer handling vulnerability, and can lead to a minor information disclosure or service interruption.

Affected Systems

Affected systems include GNOME:GLib, Red Hat Enterprise Linux 10, 6, 7, 8, 9 and Red Hat Hardened Images, all of which ship the vulnerable GLib versions referenced in the advisory.

Risk and Exploitability

The CVSS score of 6.5 reflects a moderate severity impact. The EPSS score is not available, so the exact exploitation probability remains unknown, and the vulnerability is not listed in the CISA KEV catalog. Exploitation would require an application that allows an arbitrary custom line terminator to be set, such as many network services built with GLib. Because the over‑read only reveals a small piece of data and the attack surface is limited to the applications that invoke g_io_channel_read_line_backend(), the risk of widespread exploitation is moderate and likely local; however, any privileged application using a custom terminator could be impacted.

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

Remediation

Vendor Workaround

To mitigate this vulnerability, restrict any custom line terminator string passed to g_io_channel_set_line_term() to a maximum length of one byte before calling g_io_channel_read_line_backend(). Using the default line terminators will completely neutralize this issue.


OpenCVE Recommended Actions

  • Install the latest GLib package from Red Hat repositories that incorporates the CVE‑2026‑58013 fix.
  • If an upgrade is not yet possible, modify the application configuration or code to set the line terminator to a single byte or use the default terminators before calling g_io_channel_read_line_backend().
  • Audit applications that rely on GLib to verify that no custom line terminator strings longer than one byte are used, and adjust any that are found.

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 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', '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. A buffer over-read can occur in g_io_channel_read_line_backend() in the giochannel.c file when a custom line terminator with a length greater than one is set, causing memcmp to read past the GString buffer. This vulnerability can cause a minor information disclosure of 7 bytes or a denial of service when the buffer over-read crosses a page boundary.
Title Glib: buffer over-read in glib/giochannel.c via "g_io_channel_read_line_backend"
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Weaknesses CWE-126
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': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L'}


Subscriptions

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

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-06-30T15:58:08.967Z

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

Link: CVE-2026-58013

cve-icon Vulnrichment

Updated: 2026-06-30T14:17:59.369Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses