CVE-2026-58013: Buffer Over-read in GNOME GLib
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.
AI Analysis
Technical Summary
The vulnerability exists in the g_io_channel_read_line_backend() function within giochannel.c of GLib. When an application sets a custom line terminator string longer than one byte via g_io_channel_set_line_term() and then calls g_io_channel_read_line_backend(), memcmp reads beyond the allocated GString buffer, causing a buffer over-read. This can disclose up to 7 bytes of memory or cause a denial of service through application crash if the over-read crosses an unmapped page boundary. The issue is confirmed by Red Hat and tracked under Bugzilla 2492248. The CVSS v3.1 base score is 6.5 (medium severity) with network attack vector, low complexity, no privileges required, no user interaction, and low confidentiality and availability impacts. Red Hat has issued advisories and updates addressing this vulnerability.
Potential Impact
An attacker can cause a minor information disclosure of up to 7 bytes of memory or trigger a denial of service by crashing the application using GLib's g_io_channel_read_line_backend() function with a multi-byte custom line terminator. The information disclosure could potentially aid in bypassing protection mechanisms like ASLR. The denial of service impact is considered low as crashes are reliably reproducible in ASan builds but not typically in production environments.
Mitigation Recommendations
To mitigate this vulnerability, applications should 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 completely neutralizes the issue. Red Hat has released security updates for affected packages, and applying these official patches is recommended. Check the Red Hat advisory for details on applying updates. No other specific mitigations are required.
CVE-2026-58013: Buffer Over-read in GNOME GLib
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.
CVSS v3.1
Score 6.5medium
Affected software
GNOME
GLib
Red Hat
Red Hat Enterprise Linux 10
Red Hat
Red Hat Enterprise Linux 10.0 Extended Update Support
Red Hat
Red Hat Enterprise Linux 7 Extended Lifecycle Support
Red Hat
Red Hat Enterprise Linux 8
Red Hat
Red Hat Enterprise Linux 8
Red Hat
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
Red Hat
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
Red Hat
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
Red Hat
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On
Red Hat
Red Hat Enterprise Linux 8.8 Telecommunications Update Service
Red Hat
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
Red Hat
Red Hat Enterprise Linux 9
Red Hat
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
Red Hat
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions
Red Hat
Red Hat Enterprise Linux 9.6 Extended Update Support
Red Hat
Cert Manager support for Red Hat OpenShift release 1.19
Red Hat
Cert Manager support for Red Hat OpenShift release 1.19
Red Hat
Cert Manager support for Red Hat OpenShift release 1.19
Red Hat
Red Hat Discovery 2
Red Hat
Red Hat Discovery 2
Red Hat
Red Hat Update Infrastructure 5
Red Hat
Red Hat Update Infrastructure 5
Red Hat
Red Hat Update Infrastructure 5
Red Hat
Red Hat Update Infrastructure 5
Red Hat
Red Hat Update Infrastructure 5
Red Hat
Red Hat Update Infrastructure 5
Red Hat
Red Hat Update Infrastructure 5
Red Hat
Red Hat Update Infrastructure 5
Red Hat
Red Hat Enterprise Linux 10
Red Hat
Red Hat Enterprise Linux 6
Red Hat
Red Hat Enterprise Linux 9
Red Hat
Red Hat Hardened Images
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the g_io_channel_read_line_backend() function within giochannel.c of GLib. When an application sets a custom line terminator string longer than one byte via g_io_channel_set_line_term() and then calls g_io_channel_read_line_backend(), memcmp reads beyond the allocated GString buffer, causing a buffer over-read. This can disclose up to 7 bytes of memory or cause a denial of service through application crash if the over-read crosses an unmapped page boundary. The issue is confirmed by Red Hat and tracked under Bugzilla 2492248. The CVSS v3.1 base score is 6.5 (medium severity) with network attack vector, low complexity, no privileges required, no user interaction, and low confidentiality and availability impacts. Red Hat has issued advisories and updates addressing this vulnerability.
Potential Impact
An attacker can cause a minor information disclosure of up to 7 bytes of memory or trigger a denial of service by crashing the application using GLib's g_io_channel_read_line_backend() function with a multi-byte custom line terminator. The information disclosure could potentially aid in bypassing protection mechanisms like ASLR. The denial of service impact is considered low as crashes are reliably reproducible in ASan builds but not typically in production environments.
Mitigation Recommendations
To mitigate this vulnerability, applications should 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 completely neutralizes the issue. Red Hat has released security updates for affected packages, and applying these official patches is recommended. Check the Red Hat advisory for details on applying updates. No other specific mitigations are required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-06-26T20:59:47.855Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-58013","vendor":"Red Hat"}]
Threat ID: 6a43c34927e9c79719d5bd60
Added to database: 06/30/2026, 13:23:21 UTC
Last enriched: 08/17/2026, 13:25:23 UTC
Last updated: 09/27/2026, 01:47:43 UTC
Views: 167
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.