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 · medium confidence · 2026-11-05
The vulnerable escape_byte_string() is present unfixed in gio/gfileattribute.c (int num_invalid, allocation len + num_invalid*3 + 1) and none of the five Buildroot patches touch it, so the build is affected.
However, the only code paths that reach it are _g_file_attribute_value_as_string() -> g_file_info_get_attribute_as_string(), whose callers in this build are limited to the gio command-line tool (gio info/list/trash) and gvfs's Google backend, which is compiled out (-Dgoogle=false).
libglib2/gvfs are on the target only because podman selects them; no finit service, YANG node, CLI command or Infix script invokes gio, and the default-running GIO consumer (rauc) does not call the attribute-to-string path.
Reaching the flaw requires a root shell running gio info/list against an attacker-controlled file or mount with a ~700 MB byte-string attribute; no network-facing path exists.
Evidence 10
escape_byte_string() still uses `int num_invalid` and `g_malloc (len + num_invalid*3 + 1)` — the unfixed integer-overflow code described by the CVE
output/build/libglib2-2.82.5/gio/gfileattribute.c:173,191
Only 5 patches applied (gstring, gfileutils, 3x gvariant-parser); none touch gfileattribute.c
output/build/libglib2-2.82.5/.applied_patches_list
Version 2.82.5, inside the affected range (fix landed in 2.86.x/2.87.x)
buildroot/package/libglib2/libglib2.mk:7-8
libglib2 is a target package (not host-only as the ticket states); gvfs also selected
output/.config:2919 (BR2_PACKAGE_LIBGLIB2=y), :1312 (BR2_PACKAGE_GVFS=y)
`select BR2_PACKAGE_GVFS` — podman (container support) is what pulls gvfs/libglib2 onto the target
package/podman/Config.in:47
escape_byte_string() is only called from _g_file_attribute_value_as_string(), only called from g_file_info_get_attribute_as_string()
output/build/libglib2-2.82.5/gio/gfileattribute.c:248 and gio/gfileinfo.c:891
The only in-glib callers are the `gio` CLI tool subcommands
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 only gvfs caller is the Google backend, which is not built; output/target/usr/libexec contains no gvfsd-google
output/build/gvfs-1.48.1/daemon/gvfsbackendgoogle.c:3101 + buildroot/package/gvfs/gvfs.mk:30 (-Dgoogle=false)
No other target package or Infix source calls g_file_info_get_attribute_as_string
output/build/rauc-1.13, json-glib-1.10.6, avahi-0.8, dbus-glib-0.114, src/ (grep get_attribute_as_string)
No service runs `gio`; gvfsd is only D-Bus-activatable (usr/share/dbus-1/services/org.gtk.vfs.Daemon.service) and nothing in board/ or src/ references gvfs or gio
output/target/etc/finit.d/enabled/ (rauc.conf, confd.conf, ...), board/common/rootfs/etc/finit.d
Version and patches
Affected: GLib < 2.86.4 / 2.87.x fix (gfileattribute: escape_byte_string integer overflow); our 2.82.5 is in range and the source still has the vulnerable int-based arithmetic. Applied patches 0001-0005 (gstring, gfileutils, gvariant-parser) do not address this CVE. No stable backport present.
Recommendation
Document as not exposed on shipped devices; pick up the gfileattribute fix on the next routine libglib2 bump (or add the small upstream backport when convenient, since it is a few-line change). Note the SBOM metadata calls libglib2 a host package but it is actually installed on the target.
Open questions
The artifact cache has stripped shared libraries from output/target/usr/lib and no compiled objects in output/build/libglib2-2.82.5, so presence of libgio-2.0.so in the final image was inferred from installed consumers (rauc, gio, gvfsd) rather than observed directly. Whether podman/container workflows exposed via YANG (infix-containers) could indirectly invoke gio or gvfs mounts was checked by grep in src/ and board/ with no hits, but not by exercising the feature.
Members of Kernel Kit decide. Sign in if you are one.