Bug 2494876 - CVE-2026-58013 glib2: buffer over-read in glib/giochannel.c via "g_io_channel_read_line_backend" [fedora-all]
Summary: CVE-2026-58013 glib2: buffer over-read in glib/giochannel.c via "g_io_channel...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: glib2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["77ff4afa-6e87-4b0b-8af9-c...
Depends On:
Blocks: CVE-2026-58013
TreeView+ depends on / blocked
 
Reported: 2026-06-30 12:58 UTC by Guilherme de Almeida Suckevicz
Modified: 2026-08-12 16:41 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-08-12 16:41:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2026-06-30 12:58:30 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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 1 lpavan 2026-08-12 15:03:20 UTC
This was fixed upstream with the following releases:

- 2.88.1
- 2.89.0

Fedora 44 and 45 ship 2.88.3 and 2.89.3 respectively, thus not affected.

While Fedora 43 is affected (2.86.5), the CVE is considered low impact in practice. Furthermore, Fedora 43 will EOL on December 9. No fix is planned.


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