bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-58014

8.6high

libglib2-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. An off-by-one error can occur in the g_key_file_get_locale_string_list function in the gkeyfile.c file when loading a key file with an empty value. This flaw can cause an out-of-bounds access of 1 byte or a denial of service when the out-of-bounds access 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
Low
Availability
High
Scope
Unchanged

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

References 87
Review Av26.10.0aarch64_minimalNot exposed✓ accepted by a member, 2026-11-12 · settles 8 of 8

Fable 5.1 · high confidence · 2026-11-05

The vulnerable code is present and unfixed in the target build: glib-2.82.5 gkeyfile.c g_key_file_get_locale_string_list() indexes value[len-1] with no len>0 guard, and none of the five Buildroot patches touch gkeyfile.c. libglib2 is a target package (selected by rauc, dbus-glib, json-glib, python-gobject, dbus-python) and gkeyfile.c.o is compiled into the target libglib-2.0.

However, the only caller of the vulnerable function anywhere in the target tree is GLib's own gdesktopappinfo.c (.desktop file Keywords= parsing), which no Infix component, RAUC, firewalld or YANG/CLI-driven path invokes; RAUC's manifest/config parsing (the only default-running, network-fed GKeyFile consumer) uses g_key_file_get_string_list, which has a separate implementation without the off-by-one.

Reaching the bug requires a root shell on the device (e.g. Python gi calling GLib.KeyFile.get_locale_string_list or Gio.DesktopAppInfo on a crafted file) or custom code; it is not reachable from a network interface or the management plane.

Evidence 11
  1. len = strlen(value); if (value[len - 1] == key_file->list_separator) — no len > 0 guard; empty value reads value[-1]. This is the CVE-2026-58014 defect, unfixed.

    output/build/libglib2-2.82.5/glib/gkeyfile.c:2412-2414

  2. Five patches applied (gstring, gfileutils, 3x gvariant-parser); none touch gkeyfile.c.

    output/build/libglib2-2.82.5/.applied_patches_list

  3. BR2_PACKAGE_LIBGLIB2=y / BR2_PACKAGE_LIBGLIB2_BOOTSTRAP=y — target package selected (defconfig does not name it; it is pulled in via select).

    output/.config:2877-2878

  4. Enabled packages whose Config.in 'select BR2_PACKAGE_LIBGLIB2' pulls libglib2 into the target image.

    output/.config: BR2_PACKAGE_RAUC=y, BR2_PACKAGE_DBUS_GLIB=y, BR2_PACKAGE_JSON_GLIB=y, BR2_PACKAGE_PYTHON_GOBJECT=y, BR2_PACKAGE_DBUS_PYTHON=y

  5. gkeyfile.c is compiled into the target libglib-2.0 shared library; GKeyFile is core GLib with no meson option to disable.

    output/objects.txt (output/build/libglib2-2.82.5/buildroot-build/glib/libglib-2.0.so.0.8200.5.p/gkeyfile.c.o)

  6. The only caller of g_key_file_get_locale_string_list in the target tree outside gkeyfile.c itself: parsing Keywords= from .desktop files via GDesktopAppInfo.

    output/build/libglib2-2.82.5/gio/gdesktopappinfo.c:1960

  7. No calls to g_key_file_get_locale_string_list, g_desktop_app_info*, g_app_info_* or GDesktopAppInfo in any Infix component or target dependent package.

    grep over output/build/rauc-1.13, dbus-glib-0.114, json-glib-1.10.6, python-gobject, dbus-python, src/, board/

  8. RAUC (default-running via finit, bundle URL supplied via YANG system-software install, src/confd/src/system-software.c:49) only uses g_key_file_get_string_list.

    output/build/rauc-1.13/src/manifest.c:74,105,108; src/config_file.c:261,1160

  9. Separate piece-based implementation using g_key_file_parse_value_as_string; no value[len-1] indexing, so RAUC's path is not affected by this off-by-one.

    output/build/libglib2-2.82.5/glib/gkeyfile.c:2040-2110 (g_key_file_get_string_list)

  10. Default-running services; rauc is the only GLib consumer started by default. firewalld-2.3.1 source contains no KeyFile/DesktopAppInfo usage.

    board/common/rootfs/etc/finit.d/enabled/ (mstpd.conf, netconf.conf, rauc.conf); available/ (firewalld.conf etc.)

  11. No Infix-authored source links against or uses GLib directly.

    src/ (grep for glib.h / gio/gio.h)

Version and patches

NVD range covers glib 2.82.5 and the match is correct (cpe gnome:glib 2.82.5). The upstream fix (adding a length guard before value[len-1] in g_key_file_get_locale_string_list) is not present in this tree and is not among the 5 Buildroot patches; the 2.82 stable branch is no longer maintained upstream so no stable backport exists here. Affected: yes.

Recommendation

Document as not exposed in the shipped configuration (no network- or management-plane path reaches g_key_file_get_locale_string_list; only a root shell or custom code can). Pick up the fix opportunistically with the next libglib2 bump (a Buildroot libglib2 upgrade to a fixed 2.84/2.86 release) or carry the one-line guard as a sixth local patch for hygiene; no urgent backport required.

Open questions

The output/target snapshot in this artifact is trimmed (no .so files present), so library presence on the image was inferred from .config, objects.txt and the SBOM rather than the installed rootfs. Exact upstream fixed version numbers were not verifiable offline; the fix content (len > 0 guard) was confirmed absent by inspection.

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