bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2025-14512

6.5medium

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

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
  1. 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

  2. Only 5 patches applied (gstring, gfileutils, 3x gvariant-parser); none touch gfileattribute.c

    output/build/libglib2-2.82.5/.applied_patches_list

  3. Version 2.82.5, inside the affected range (fix landed in 2.86.x/2.87.x)

    buildroot/package/libglib2/libglib2.mk:7-8

  4. 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)

  5. `select BR2_PACKAGE_GVFS` — podman (container support) is what pulls gvfs/libglib2 onto the target

    package/podman/Config.in:47

  6. 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

  7. 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

  8. 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)

  9. 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)

  10. 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.

Review Av26.10.0aarch64_minimalNot exposedAccepted by a member, 2026-11-17. 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).Open the review →

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