Kernel Kit / Infix / v26.10.0latest
CVE-2025-14512
6.5mediumlibglib2-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. This vulnerability allows a heap buffer overflow and denial-of-service (DoS) via an integer overflow in GLib's GIO (GLib Input/Output) escape_byte_string() function when processing malicious file or remote filesystem attribute values.
Published 2025-12-11NVD
CVSS 3.1Network · no privileges · user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
What it costs
- Confidentiality
- None
- Integrity
- None
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
References 31
- access.redhat.com/errata/RHSA-2026:15953
- access.redhat.com/errata/RHSA-2026:15969
- access.redhat.com/errata/RHSA-2026:15971
- access.redhat.com/errata/RHSA-2026:19148
- access.redhat.com/errata/RHSA-2026:19361
- access.redhat.com/errata/RHSA-2026:19452
- access.redhat.com/errata/RHSA-2026:19457
- access.redhat.com/errata/RHSA-2026:19459
Fable 5.1 · high confidence · 2026-11-06
The vulnerable escape_byte_string() in gio/gfileattribute.c is present unfixed in this tree (int num_invalid, unchecked g_malloc(len + num_invalid*3 + 1)); none of the five Buildroot patches touch it, so the build is affected and libgio is compiled for the target (libglib2 is a target package, not host-only as the ticket says).
The function is only reachable via the public g_file_info_get_attribute_as_string(), and the only in-image caller is the /usr/bin/gio CLI tool (gio info/list/trash); no Infix component (confd, rauc, rauc-installation-status, dbus-glib, json-glib) calls it, no finit service runs gio, and no YANG/CLI node exposes it.
Triggering it would require a root shell running gio info on an attacker-controlled file with a multi-hundred-MB byte-string attribute; xattr support is compiled out (-Dxattr=false) and no GVFS remote backends are shipped, so only PATH_MAX-bounded name/symlink attributes exist locally, making the overflow practically unreachable. Not reachable from any network interface.
Evidence 9
Unfixed vulnerable code: `int num_invalid` counter and `g_malloc (len + num_invalid*3 + 1)` without overflow check (upstream fix converts to size_t / checked allocation).
output/build/libglib2-2.82.5/gio/gfileattribute.c:170-209 (escape_byte_string)
Only 5 patches applied (gstring, gfileutils, 3x gvariant-parser); none modify gfileattribute.c (grep for escape_byte_string/num_invalid in buildroot/package/libglib2/*.patch returns nothing).
output/build/libglib2-2.82.5/.applied_patches_list
BR2_PACKAGE_LIBGLIB2=y is a target package, pulled in by dbus-glib, json-glib and rauc (rauc.mk:13 RAUC_DEPENDENCIES = ... libglib2).
output/.config:2877-2878, :1232, :2494, :3714
escape_byte_string is called only from _g_file_attribute_value_as_string, which is called only from the public g_file_info_get_attribute_as_string().
output/build/libglib2-2.82.5/gio/gfileattribute.c:248 and gio/gfileinfo.c:885-891
The only callers of g_file_info_get_attribute_as_string in the tree are the `gio` CLI subcommands info/list/trash.
output/build/libglib2-2.82.5/gio/gio-tool-info.c:132,139; gio-tool-list.c:108; gio-tool-trash.c:105,184
The gio CLI tool is installed in the target image (libglib2.mk:137 removes only dev tools, not gio).
output/target/usr/bin/gio
No Infix/target consumer calls g_file_query_info, g_file_enumerate_children or g_file_info_get_attribute*; only gobject-introspection's generated gir docs reference the symbol.
grep of output/build/{rauc-1.13,confd-1.8,rauc-installation-status-1.0,dbus-glib-0.114,json-glib-1.10.6}
Built with -Dxattr=false -Dselinux=disabled (BR2_PACKAGE_LIBSELINUX not set), so xattr-sourced byte-string attributes are compiled out; no GVFS/remote filesystem backends in output/target/usr/lib/gio/modules (empty).
output/build/libglib2-2.82.5/buildroot-build/meson-logs/meson-log.txt:3 and buildroot/package/libglib2/libglib2.mk:109-112
No finit service or confd code invokes `gio`; no YANG/CLI node exposes the gio tool.
board/common/rootfs/etc/finit.d/enabled (mstpd.conf, netconf.conf, rauc.conf) and src/confd
Version and patches
NVD/Red Hat: glib < 2.86.1 affected (fix: gfileattribute escape_byte_string integer-overflow commit in glib 2.86.1, backported to 2.84.x stable). This tree has 2.82.5 with the original vulnerable code; the 5 Buildroot patches (gstring overflow, gfileutils tmpname, 3x gvariant-parser) address other CVEs and do not touch gfileattribute.c. Match is correct; no stable backport present.
Recommendation
Document as not exposed on shipped devices (no network or management-interface path; requires root shell plus a crafted file with a ~GB-sized byte-string attribute, and xattr/GVFS are compiled out). Pick up the fix opportunistically with the next libglib2 bump (>= 2.84.x backport or 2.86.1) or add the single-hunk upstream patch to buildroot/package/libglib2/ alongside the existing ones; no urgent backport needed.
Open questions
The output/target tree in this artifact has shared libraries stripped out (only 2 .so files remain), so presence of libgio-2.0.so on the final image was inferred from the target package selection and the installed /usr/bin/gio binary rather than observed directly. The exact upstream fix commit hash was not verifiable offline; the vulnerable pattern (int counter, unchecked allocation) was confirmed from source instead.
Members of Kernel Kit decide. Sign in if you are one.