Bug 2492248 (CVE-2026-58013) - CVE-2026-58013 glib: buffer over-read in glib/giochannel.c via "g_io_channel_read_line_backend"
Summary: CVE-2026-58013 glib: buffer over-read in glib/giochannel.c via "g_io_channel_...
Keywords:
Status: NEW
Alias: CVE-2026-58013
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: 2494876 2494877 2494878
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-24 16:57 UTC by OSIDB Bzimport
Modified: 2026-08-19 16:42 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:16 UTC
Red Hat Product Errata RHSA-2026:55440 0 None None None 2026-08-17 05:48:53 UTC
Red Hat Product Errata RHSA-2026:57015 0 None None None 2026-08-19 16:42:08 UTC

Description OSIDB Bzimport 2026-06-24 16:57:18 UTC
A heap-buffer-overflow READ occurs in g_io_channel_read_line_backend() at giochannel.c:1831 when a custom line terminator of length > 1 is set via g_io_channel_set_line_term(). The memcmp call reads line_term_len bytes from nextchar, but the loop condition nextchar < lastchar only guarantees 1 byte is available. When nextchar is within line_term_len - 1 bytes of lastchar, memcmp reads past the GString buffer into ASan redzone / unallocated memory.

Comment 3 errata-xmlrpc 2026-08-03 01:47:15 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

Comment 4 errata-xmlrpc 2026-08-17 05:48:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 5 errata-xmlrpc 2026-08-19 16:42:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

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


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