Kernel Kit / Infix / v26.10.0latest
CVE-2026-58012
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 the g_regex_replace function when used with the G_REGEX_RAW compile flag and case-change replacement escapes because the string_append function processes matched substrings using UTF-8 functions that assume valid UTF-8 input, even when the string is treated as raw bytes. This vulnerability can cause a minor information disclosure of 1-5 bytes and 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 string_append() in glib/gregex.c is present unmodified in this tree (it calls g_utf8_get_char/g_utf8_next_char with no G_REGEX_RAW guard), none of the five Buildroot patches touch gregex.c, and gregex.c is compiled into the target libglib-2.0.so.
However, no code shipped on the target calls g_regex_replace()/g_regex_replace_eval() with G_REGEX_RAW: the only GRegex consumers are rauc (g_regex_match only, flags 0 or G_REGEX_MULTILINE) and gio's gsettingsschema.c (g_regex_replace_literal with G_REGEX_DEFAULT, which never processes case-change escapes).
Infix's own code (confd, CLI, yangerd, rootfs scripts) does not use GRegex at all, and no YANG/CLI node feeds operator-supplied regex replacement strings into glib.
Triggering the bug would require a root shell and custom code (e.g. python3 + python-gobject GLib.Regex, or a hand-built binary) on the device; it is not reachable from any network interface.
Evidence 9
Vulnerable code present: case-change branches use g_utf8_get_char()/g_utf8_next_char() unconditionally, no check of compile_opts & G_REGEX_RAW
output/build/libglib2-2.82.5/glib/gregex.c:3155-3185 (string_append)
Only 5 patches applied (gstring, gfileutils, 3x gvariant-parser); none touch gregex.c, so no backport of the fix
output/build/libglib2-2.82.5/.applied_patches_list
BR2_PACKAGE_LIBGLIB2=y – target package selected (not host-only)
output/.config:2919-2920
gregex.c compiled into target glib/libglib-2.0.so.0.8200.5 (cross gcc, pcre2 found per meson-log.txt:16189)
output/build/libglib2-2.82.5/buildroot-build/compile_commands.json:328-330
Target packages pulling in libglib2: confd, rauc, rauc-installation-status, avahi, dbus-glib, json-glib, python-gobject
package/confd/confd.mk:13; buildroot/package/rauc/rauc.mk:13; buildroot/package/avahi/avahi.mk:145; buildroot/package/dbus-glib/dbus-glib.mk:31
rauc is the only target consumer using GRegex; it calls g_regex_new()+g_regex_match() only, with flags 0 or G_REGEX_MULTILINE — never g_regex_replace or G_REGEX_RAW
output/build/rauc-1.13/src/{artifacts.c:177-401,context.c:26-27,bootchooser.c:1151-1197,install.c:70-73}
Internal gio use is g_regex_replace_literal() with G_REGEX_DEFAULT; literal replacement does not interpret \u/\l/\U/\L escapes, so string_append's case-change path is never reached
output/build/libglib2-2.82.5/gio/gsettingsschema.c:577-596
No Infix-own code (confd, CLI, yangerd, rootfs scripts) uses GRegex; no YANG/CLI path feeds operator regex replacement strings into glib
src/ and board/common/rootfs (rg for g_regex|GLib.Regex)
rauc runs by default (slot-check task) but only uses the non-vulnerable match API
board/common/rootfs/etc/finit.d/10-infix.conf:5
Version and patches
NVD/RH advisories cover glib ≤ 2.86.x unfixed series; 2.82.5 is within the affected range and is an EOL stable branch with no upstream fix release. The tree's gregex.c string_append() is the pre-fix code; the five applied Buildroot patches (0001-0005) address unrelated gstring/gfileutils/gvariant issues. No IGNORE_CVES entry. Upstream fix commit/version not verifiable offline (no network access); the affected determination is based on inspection of the vulnerable function itself.
Recommendation
Document as not applicable in the shipped configuration (NOT_EXPOSED). Low priority: pick up the fix when libglib2 is next bumped (Buildroot upgrade to a fixed 2.84/2.86 release) or backport the small gregex.c string_append() raw-mode guard if a glib backport batch is done anyway. Re-evaluate if any future target component starts calling g_regex_replace() with G_REGEX_RAW on untrusted input (e.g. a python-gobject script exposed via the management plane).
Open questions
output/target in this cache is pruned of .so files, so the final presence of libglib-2.0.so on the image was inferred from BR2_PACKAGE_LIBGLIB2=y and the target compile_commands rather than from the rootfs listing. Exact upstream fixed version could not be confirmed without network access.
Members of Kernel Kit decide. Sign in if you are one.