bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-58010

8.2high

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 gvs_tuple_is_normal function in the glib/gvariant-serialiser.c file when doing an alignment padding check because the bounds check uses > instead of >=, causing an out-of-bounds read of only 1 byte. This issue can cause a minor information disclosure of 1 byte and a denial of service when the out-of-bounds 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
Review Av26.10.0x86_64Not exposed✓ accepted by a member, 2026-11-12 · settles 8 of 8

Fable 5.1 · medium confidence · 2026-11-05

The vulnerable comparison (offset > value.size instead of >=) is present unchanged in the configured source at output/build/libglib2-2.82.5/glib/gvariant-serialiser.c:1253, none of the five Buildroot patches touch gvariant-serialiser.c, and libglib-2.0.so.0 is installed on the target, so the build is affected.

The function only runs when an untrusted *serialised* GVariant tuple is validated (g_variant_new_from_data/bytes with trusted=FALSE). On the shipped image the only default-running consumer of GVariant with external input is GDBus (rauc service on the local system bus; confd as client); GLib 2.82's GDBus parser builds wire values in tree form via GVariantBuilder and only hands fixed-size arrays to g_variant_new_from_data, whose size is validated as a multiple of the element size, so the off-by-one padding read is not reachable from the wire, and D-Bus is a local unix socket, not a network interface.

The one in-tree consumer that feeds network bytes to g_variant_new_from_data (rauc src/nbd.c, streaming) is not compiled.

No YANG/CLI node enables a network-facing serialised-GVariant parser; reaching the bug needs a local process (root/D-Bus-capable or a custom program) deserialising attacker-crafted GVariant blobs, i.e. stepping outside the product.

Evidence 11
  1. Vulnerable check `if (offset > value.size || value.data[offset] != '\0')` is present; fix (`>=`) not applied.

    output/build/libglib2-2.82.5/glib/gvariant-serialiser.c:1251-1255 (gvs_tuple_is_normal)

  2. Five patches applied (gstring, gfileutils, 3x gvariant-parser); none modify gvariant-serialiser.c (grep returns no match).

    output/build/libglib2-2.82.5/.applied_patches_list + buildroot/package/libglib2/000[1-5]-*.patch

  3. libglib2 is selected for the target image; pulled in by avahi, rauc, dbus-glib, confd, json-glib, libwebsockets, firewalld, irqbalance etc. (their .mk files name libglib2).

    output/.config:2919-2920 (BR2_PACKAGE_LIBGLIB2=y, BR2_PACKAGE_LIBGLIB2_BOOTSTRAP=y)

  4. Target install of libglib and libgio shared libraries.

    output/build/libglib2-2.82.5/.files-list.txt (./usr/lib/libglib-2.0.so.0.8200.5, libgio-2.0.so.0.8200.5)

  5. gvariant-serialiser.c is compiled unconditionally into the target libglib (no meson option disables it).

    output/objects.txt: output/build/libglib2-2.82.5/buildroot-build/glib/libglib-2.0.so.0.8200.5.p/gvariant-serialiser.c.o

  6. rauc service (GDBus server) and dbus-daemon --system run in factory-default configuration; D-Bus is a local unix socket.

    output/target/etc/finit.d/enabled/rauc.conf, board/common/rootfs/etc/finit.d/dbus.conf

  7. GDBus wire parsing uses g_variant_new_fixed_array only for fixed-size arrays (array_len % fixed_size validated), otherwise GVariantBuilder (tree form) – no serialised non-fixed tuples are created from untrusted bytes.

    output/build/libglib2-2.82.5/gio/gdbusmessage.c:1965-1990

  8. Fixed-size children are validated with size == fixed_size; for a correctly-sized fixed tuple the padding loop never reaches offset == value.size, so the OOB read cannot trigger via the GDBus path.

    output/build/libglib2-2.82.5/glib/gvariant-serialiser.c:519-537 (gvs_fixed_sized_array_is_normal) and :1304-1310

  9. rauc src/nbd.c:571,1062 (g_variant_new_from_data on network data) is not compiled into the image.

    output/.config:3786 (# BR2_PACKAGE_RAUC_STREAMING is not set); output/objects.txt has no rauc nbd.c object

  10. confd only acts as a GDBus client to rauc with locally constructed GVariants (g_variant_new("a{sv}")), no deserialisation of external blobs.

    src/confd/src/system-software.c:38-50

  11. No Infix-owned code or Python script deserialises serialised GVariant data from external sources.

    src/, board/ (grep for g_variant_new_from_data/bytes, gi.repository)

Version and patches

NVD: gnome:glib 2.82.5 matches; the vulnerable code is confirmed in-tree at gvariant-serialiser.c:1253. The upstream fix (gvs_tuple_is_normal bounds check > -> >=, 2026) is not in the 2.82.x series (2.82 is EOL upstream) and is not among the 5 Buildroot patches applied (0001 gstring overflow, 0002 gfileutils tmpname, 0003-0005 gvariant-parser size_t/overflow fixes – all target gvariant-parser.c/gstring.c/gfileutils.c, not the serialiser).

Recommendation

Document as not exposed on shipped devices; schedule a backport of the one-line upstream fix to gvariant-serialiser.c (or a libglib2 bump to a fixed 2.84+/2.86+ release) with the next routine Buildroot/GLib update rather than as an emergency. Low urgency: impact is a 1-byte read / possible crash of a local D-Bus-using process, and no network-facing path reaches the function.

Open questions

Exact upstream fixed versions were not verifiable from the tree (no network access); the reachability analysis of GDBus assumes the 2.82 gdbusmessage.c code shown (tree-form parsing) and did not audit every third-party glib consumer (e.g. avahi uses libdbus not GVariant; firewalld, if enabled via YANG, uses dbus-python/libdbus). If a future Infix component deserialises GVariant blobs from the network (e.g. rauc streaming/NBD, or GDBus over TCP), this verdict should be revisited.

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