bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-58013

8.2high

libglib2-bootstraplibglib22.82.5in 3 of 4 releases

Reach libglib2-bootstrap · 6 builds in 3 of 4 releases

full reviewcross-check✓ a member decided

v25.03.1not in NVD's range
v26.01.02.82.5
v26.09.02.82.5
v26.10.0latest2.82.5
aarch64_minimal
x86_64
aarch64_minimal–
x86_64–
aarch64_minimalOpenx86_64Openaarch64_minimalANot built · autox86_64ANot built · autoaarch64_minimalANot built · autox86_64ANot built

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
Review Av26.10.0x86_64Not built✓ accepted by a member, 2026-11-17 · settles 4 of 6

Fable 5.1 · high confidence · 2026-11-05

The vulnerable g_io_channel_read_line_backend() code is present unpatched in output/build/libglib2-bootstrap-2.82.5/glib/giochannel.c (memcmp of line_term_len bytes at every position up to the end of the buffer), and no patches are applied to this package.

However, libglib2-bootstrap is a build-only intermediate used solely to bootstrap gobject-introspection: its .mk sets LIBGLIB2_BOOTSTRAP_INSTALL_TARGET = NO and packages-file-list.txt contains zero files from it, so nothing from this package exists on a shipped device.

The libglib-2.0.so that does ship comes from the separate libglib2 2.82.5 package, which carries the same unfixed code and should be triaged under its own SBOM entry.

Evidence 8
  1. Unfixed loop: nextchar iterates to lastchar and memcmp(channel->line_term, nextchar, line_term_len) runs without checking line_term_len bytes remain — the CVE's over-read

    output/build/libglib2-bootstrap-2.82.5/glib/giochannel.c:1820-1825

  2. Empty: no patches applied, no backported fix

    output/build/libglib2-bootstrap-2.82.5/.applied_patches_list

  3. Package installs only to staging/host; comment states it is an implementation detail only gobject-introspection should depend on

    buildroot/package/libglib2/libglib2-bootstrap/libglib2-bootstrap.mk (LIBGLIB2_BOOTSTRAP_INSTALL_TARGET = NO, INSTALL_STAGING = YES)

  4. gobject-introspection is the sole selector of BR2_PACKAGE_LIBGLIB2_BOOTSTRAP (output/.config:2874,2920,4068)

    buildroot/package/gobject-introspection/Config.in:35; gobject-introspection.mk:25,32

  5. grep -c '^libglib2-bootstrap,' = 0 — no files from this package in the target rootfs; it appears only in packages-file-list-staging.txt and packages-file-list-host.txt

    output/build/packages-file-list.txt

  6. libglib-2.0.so.0.8200.5 in the target comes from the separate `libglib2` package

    output/build/packages-file-list.txt:21307

  7. Main libglib2 has the same unfixed code; its 5 Buildroot patches (gstring/gfileutils/gvariant) do not touch giochannel.c — track CVE there

    output/build/libglib2-2.82.5/glib/giochannel.c:1820-1825 and .applied_patches_list

  8. No target binary or Infix source references the custom line-terminator API (informational, for the libglib2 triage)

    output/target/usr, src/ (grep g_io_channel_set_line_term)

Version and patches

NVD range includes 2.82.5; tree source is pristine upstream 2.82.5 with no giochannel.c fix and no patches applied to libglib2-bootstrap. Version match is correct, but the package is a build-time bootstrap that installs nothing to the target.

Recommendation

Document as N/A for libglib2-bootstrap (host/staging-only bootstrap for gobject-introspection, no files in the image). Re-file CVE-2026-58013 against the libglib2 2.82.5 SBOM entry, which ships libglib-2.0.so with the same unfixed code, and triage reachability there (initial check: no shipped consumer of g_io_channel_set_line_term found).

Open questions

Upstream fix commit and exact fixed version could not be retrieved (no network access); the verdict does not depend on it since the unfixed code is visibly present and the package does not ship.

Members of Kernel Kit decide. Sign in if you are one.