Kernel Kit / Infix / v26.10.0latest
CVE-2026-58015
7.5highlibglib2-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. The D-Bus client-side implementation of the DBUS_COOKIE_SHA1 SASL authentication mechanism does not validate the cookie_context parameter received from the server. A malicious D-Bus server can supply a cookie_context containing path traversal sequences, causing the client to read an arbitrary file and exfiltrate sensitive data by verifying guessed file contents against a generated hash.
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
- None
- Scope
- Unchanged
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References 84
- access.redhat.com/errata/RHSA-2026:49512
- access.redhat.com/errata/RHSA-2026:55440
- access.redhat.com/errata/RHSA-2026:57015
- access.redhat.com/errata/RHSA-2026:58981
- access.redhat.com/errata/RHSA-2026:61766
- access.redhat.com/errata/RHSA-2026:61783
- access.redhat.com/errata/RHSA-2026:63135
- access.redhat.com/errata/RHSA-2026:63138
Fable 5.1 · medium confidence · 2026-11-05
The vulnerable client code is present and unpatched: gio/gdbusauthmechanismsha1.c passes the server-supplied cookie_context (tokens[0]) straight to keyring_lookup_entry()/g_build_filename() with no path validation, and none of the 5 Buildroot patches touch gio/.
libgio-2.0 is installed on the target and is used by default by confd (RAUC proxy on G_BUS_TYPE_SYSTEM) and by the CLI (gdbus call --system).
However, the only D-Bus server on a shipped device is the root-owned dbus-daemon system bus, which listens solely on unix:path=/run/dbus/system_bus_socket and is configured with <auth>EXTERNAL</auth>, so the DBUS_COOKIE_SHA1 client path is never exercised.
Exploitation requires a malicious D-Bus server, i.e. an attacker who can already replace the system bus socket or set DBUS_SYSTEM_BUS_ADDRESS / run gdbus --address from a root shell; nothing in YANG/CLI/web UI lets an operator point a GDBus client at a remote address, and no network listener is involved.
Evidence 11
cookie_context = tokens[0] from server data is passed unvalidated to keyring_lookup_entry()
output/build/libglib2-2.82.5/gio/gdbusauthmechanismsha1.c:1234-1246 (mechanism_client_data_receive)
path = g_build_filename(keyring_dir, cookie_context, NULL) – no check for '/' or '..' – vulnerable code present
output/build/libglib2-2.82.5/gio/gdbusauthmechanismsha1.c:403 (keyring_lookup_entry)
Only 5 patches (gstring, gfileutils, gvariant-parser x3); none touch gio/gdbus auth code
output/build/libglib2-2.82.5/.applied_patches_list
SHA1 mechanism is always registered and mechanism_is_supported() returns TRUE on the client, so a malicious server can steer the client to DBUS_COOKIE_SHA1
output/build/libglib2-2.82.5/gio/gdbusauth.c:232-234 and gdbusauthmechanismsha1.c:205-209
libglib2 selected for target; installs ./usr/lib/libgio-2.0.so.0.8200.5, /usr/bin/gdbus, /usr/bin/gio
output/.config:2919 BR2_PACKAGE_LIBGLIB2=y; output/build/libglib2-2.82.5/.files-list.txt
Packages pulling in / using libglib2 GDBus on target
output/.config:3782-3783 (RAUC, RAUC_DBUS), :3208 FIREWALLD, :1312 GVFS, :1681 PYTHON_GOBJECT
confd (default management daemon) is a GDBus client: rauc_installer_proxy_new_for_bus_sync(G_BUS_TYPE_SYSTEM, ...)
src/confd/src/system-software.c:17
CLI invokes `gdbus call --system --dest org.fedoraproject.FirewallD1` – fixed to local system bus, address not operator-controllable
src/klish-plugin-infix/src/infix.c:366,414
dbus-daemon --system and rauc run in factory-default configuration
board/common/rootfs/etc/finit.d/dbus.conf:2-3; finit.d/enabled/rauc.conf
<auth>EXTERNAL</auth> and <listen>unix:path=/run/dbus/system_bus_socket</listen> – the legitimate server never offers DBUS_COOKIE_SHA1 and has no TCP listener
output/target/usr/share/dbus-1/system.conf:36,42
Empty <busconfig/>; no local override adds auth mechanisms or listen addresses
output/target/etc/dbus-1/system.conf
Version and patches
NVD maps the CVE to glib 2.82.5 (this exact version). The tree contains glib 2.82.5 (meson.build:2) with the unvalidated cookie_context path intact; no stable backport and no Buildroot patch addresses it, so the package is affected. The exact upstream fixed versions could not be verified offline (no access to the advisories/fix commit from this tree); the fix is expected in the gdbusauthmechanismsha1.c client path (rejecting cookie_context containing path separators / '..').
Recommendation
Document as not exposed on shipped devices (requires an attacker-controlled D-Bus server, which on Infix needs pre-existing root access; the only D-Bus server is the local root-owned system bus restricted to EXTERNAL auth over a unix socket). Pick up the upstream fix at the next routine libglib2 bump or backport the small gdbusauthmechanismsha1.c validation patch when Buildroot ships it; no urgent action.
Open questions
Could not confirm upstream fixed versions or the exact fix commit without network access. Shared libraries are pruned from output/target in this artifact cache, so presence of libgio-2.0 on target was taken from .files-list.txt rather than the rootfs itself. Did not exhaustively check every GLib-linked target binary (e.g. gvfs, python-gobject users) for a code path that connects to a non-default D-Bus address, but none was found in confd, the CLI plugin or the rootfs overlay.
Members of Kernel Kit decide. Sign in if you are one.