bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-58016

9.1critical

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. A state confusion issue exists in g_dbus_node_info_new_for_xml() in the gio/gdbusintrospection.c file when processing malformed D-Bus introspection XML, specifically with a node element nested within other elements like method, signal, property or arg. This issue can cause an unsigned integer overflow and lead to an out-of-bounds read, resulting in a denial of service.

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
High
Integrity
None
Availability
High
Scope
Unchanged

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

References 47
Review Av26.10.0x86_64Not exposed✓ accepted by a member, 2026-11-11 · settles 8 of 8

Fable 5.1 · medium confidence · 2026-11-05

The vulnerable check is present in this tree: gio/gdbusintrospection.c:1261 tests !(g_slist_length(stack) >= 1 || ...), which is always false (compare the correct < 2 || form used for <interface> at line 1300), so a <node> nested in <method>/<signal>/<property>/<arg> is accepted; none of the five applied Buildroot patches touch this file.

libgio is built unconditionally and ships on target (rauc, confd/sysrepo-plugind and the CLI depend on it), but every in-image caller of g_dbus_node_info_new_for_xml either parses compile-time constant XML (GIO internals, gdbus-codegen'd RAUC proxy uses static GDBusInterfaceInfo) or is the /usr/bin/gdbus CLI tool.

The only product path that feeds externally-produced XML into the parser is the klish CLI firewall tab-completion, which runs gdbus call --system --dest org.fedoraproject.FirewallD1 and therefore introspects firewalld; the D-Bus policy only lets root own that name, so an attacker would already need root on the device (or a root shell to run gdbus introspect against a rogue peer) to supply malformed XML. No network-facing service parses introspection XML.

Evidence 10
  1. Vulnerable condition `!(g_slist_length (stack) >= 1 || strcmp (stack->next->data, "node") != 0)` is always false, so nested <node> inside non-node elements is not rejected (the CVE's state confusion).

    output/build/libglib2-2.82.5/gio/gdbusintrospection.c:1261

  2. Sibling <interface> check uses the correct `g_slist_length (stack) < 2 ||` form, confirming line 1261 is the unfixed bug.

    output/build/libglib2-2.82.5/gio/gdbusintrospection.c:1300

  3. Only five patches (gstring, gfileutils, 3x gvariant-parser) are applied; none touch gio/gdbusintrospection.c.

    output/build/libglib2-2.82.5/.applied_patches_list

  4. BR2_PACKAGE_LIBGLIB2=y (target), BR2_PACKAGE_DBUS=y, BR2_PACKAGE_RAUC=y with RAUC_DBUS=y – libgio is on the target image.

    output/.config:2919-2920, :1226, :3782-3783

  5. GIO is built unconditionally (no option to disable it); /usr/bin/gdbus tool is built, and libglib2.mk:137 does not remove it from the target.

    output/build/libglib2-2.82.5/buildroot-build/meson-logs/meson-log.txt:3 and build.ninja:2170

  6. dbus-daemon (system bus) and rauc service run by default; rauc uses libgio.

    board/common/rootfs/etc/finit.d/dbus.conf; finit.d/enabled/rauc.conf

  7. `gdbus call` always introspects the destination and parses the returned XML with g_dbus_node_info_new_for_xml – the only in-image consumer of non-constant introspection XML.

    output/build/libglib2-2.82.5/gio/gdbus-tool.c:517, :1103

  8. Infix CLI firewall completion runs `gdbus call --system --dest org.fedoraproject.FirewallD1 ...`, so the parser runs on XML returned by firewalld.

    src/klish-plugin-infix/src/infix.c:366, :414

  9. D-Bus policy: only user root may own org.fedoraproject.FirewallD1 – an attacker must already be root to substitute malicious introspection XML.

    output/build/firewalld-*/.../FirewallD.conf:9-11

  10. confd talks to RAUC via gdbus-codegen'd rauc_installer_proxy (static interface info), not via XML parsing; no DBusNodeInfo/new_for_xml use anywhere in src/ or board/.

    src/confd/src/system-software.c:17

Version and patches

NVD range matches glib 2.82.5 and the unfixed code is confirmed at gio/gdbusintrospection.c:1261. No stable backport in this tree; Buildroot patches 0001–0005 address other issues (gstring, gfileutils, gvariant-parser). Upstream fix (Red Hat errata RHSA-2026:42063 et al.) is not applied; the upstream fix commit text could not be fetched offline, but the fix is the one-line correction of this stack-depth check.

Recommendation

Document as not exposed on shipped devices (local-root-only input path, DoS-only impact), and pick up the upstream fix when libglib2 is next bumped or via a small backport of the gdbusintrospection.c check, since the parser does run in the CLI firewall completion path.

Open questions

The exact upstream fix commit and fixed version could not be verified offline. Binaries are stripped from output/target in this cache, so presence of /usr/bin/gdbus and libgio-2.0.so on the final image is inferred from build.ninja and libglib2.mk rather than from the rootfs listing. Whether any python-gobject script shipped by Infix calls Gio.DBusNodeInfo.new_for_xml was checked (none found in src/ or board/) but not exhaustively across all target packages.

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