Kernel Kit / Infix / v26.10.0latest
CVE-2026-58013
8.2highlibglib2-bootstraplibglib22.82.5in 4 of 4 releases
Reach libglib2 · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
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-30NVD
CVSS 3.1Network · no privileges · no user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
What it costs
- Confidentiality
- Low
- Integrity
- None
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
References 79
- access.redhat.com/errata/RHSA-2026:49512
- access.redhat.com/errata/RHSA-2026:55440
- access.redhat.com/errata/RHSA-2026:57015
- access.redhat.com/errata/RHSA-2026:58981
- access.redhat.com/errata/RHSA-2026:61766
- access.redhat.com/errata/RHSA-2026:61783
- access.redhat.com/errata/RHSA-2026:63135
- access.redhat.com/errata/RHSA-2026:63138
Fable 5.1 · high confidence · 2026-11-05
The vulnerable code is present and compiled: glib/giochannel.c:1825 in the build tree still does an unbounded memcmp(channel->line_term, nextchar, line_term_len) with only nextchar < lastchar as the loop bound, none of the 5 applied Buildroot patches touch giochannel.c, and libglib-2.0.so.0 is shipped on target (rauc and json-glib link it).
However, the bug requires a caller to set a custom multi-byte line terminator via g_io_channel_set_line_term() and then read lines; a search of every target package's sources and all shipped binaries/Python code finds no such caller (the only references are GLib itself, GLib's own tests which are built with -Dtests=false, the GObject-Introspection API description, a dbus-glib test program and a libcurl docs example, none of which are installed).
Nothing enabled by finit (mstpd, netconf, rauc) nor anything configurable via YANG/CLI uses this API, so reaching it would require loading custom code onto the device (e.g. a root shell running a bespoke program or PyGObject script using GLib.IOChannel.set_line_term), which is outside the product; it is not reachable from any network interface.
Evidence 10
Unfixed vulnerable hunk: loop bounded only by nextchar < lastchar, then memcmp(channel->line_term, nextchar, line_term_len) can read up to line_term_len-1 bytes past the GString buffer
output/build/libglib2-2.82.5/glib/giochannel.c:1820-1825
Only 5 patches applied (gstring overflow, gfileutils tmpname, 3x gvariant-parser); none touch giochannel.c, so no backport of the fix
output/build/libglib2-2.82.5/.applied_patches_list
BR2_PACKAGE_LIBGLIB2=y and BR2_PACKAGE_LIBGLIB2_BOOTSTRAP=y: target glib is built (pulled in by dbus-glib, gobject-introspection, rauc, json-glib, python-gobject etc.)
output/.config:2919-2920
BR2_PACKAGE_DBUS_GLIB=y selects libglib2 for the target image
configs/x86_64_defconfig:40
Links libglib-2.0.so.0 and libgio-2.0.so.0, confirming libglib is a shipped target library; binary contains no reference to g_io_channel_set_line_term
output/target/usr/bin/rauc (strings)
LIBGLIB2_CONF_OPTS has no option to disable giochannel (it is unconditional core glib); -Dtests=false so GLib's io-channel tests that use set_line_term are not built
buildroot/package/libglib2/libglib2.mk:70-75
Only hits: libglib2-bootstrap sources/tests, gobject-introspection GLib-2.0.gir/glib-2.0.c (API docs). No target application sets a custom line terminator
rg g_io_channel_set_line_term over output/build (excluding libglib2 and host-*)
The only other g_io_channel_read_line users are a test program and a docs example, neither installed on target, and neither sets a custom terminator
output/build/dbus-glib-0.114/test/core/peer-client.c:87, output/build/libcurl-8.22.0/docs/examples/ghiper.c:355
No shipped Python tool or binary (including firewalld, available via YANG) calls set_line_term; only the generic PyGObject gi binding wrapper mentions IOChannel
output/target/usr/lib/python3.12/site-packages/{firewall,show,cli_pretty,onieprom}, usr/bin, usr/sbin, usr/libexec (grep set_line_term)
Default services are mstpd, netconf, rauc; none use GIOChannel custom line terminators
board/common/rootfs/etc/finit.d/enabled/
Version and patches
NVD maps the CVE to glib 2.82.5 (CPE cpe:2.3:a:gnome:glib:2.82.5). The build tree's giochannel.c contains the unbounded memcmp, and none of the 5 applied Buildroot patches (gstring overflow, gfileutils tmpname, 3x gvariant-parser) address it; NEWS has no entry for the fix. The vulnerable code is therefore present in this build. The fixed upstream release is in the 2.84/2.86 line (and RHEL backports); no fix is in this tree.
Recommendation
Document as not exposed on shipped devices: no shipped component calls g_io_channel_set_line_term() with a multi-byte terminator, so the over-read cannot be triggered through any default service, YANG/CLI-configurable feature, or network interface. Low priority; pick up the upstream fix with the next routine libglib2 bump in Buildroot (or cherry-pick the one-line bounds check in g_io_channel_read_line_backend) rather than an emergency backport.
Open questions
The output/target snapshot in this artifact is partial (no .so files under usr/lib), so library presence was inferred from NEEDED strings in shipped binaries (rauc, json-glib-format) rather than from the library file itself. The exact upstream fix commit could not be fetched (no network), so the version check relies on inspecting the vulnerable hunk directly. Private/non-public Infix components not in this tree could not be checked, but nothing in src/ references g_io_channel at all.
Members of Kernel Kit decide. Sign in if you are one.