GLib GDBus client authentication: an untrusted peer can send an unbounded line

2026-12-02来源 dev.toEnglish

GLib GDBus client authentication: an untrusted peer can send an unbounded line

CVE-2026-140124 describes a second GLib GDBus resource flaw, this time on the client side. When a GLib application connects to a D-Bus peer that requires authentication, the client reads an authentication line from the peer. The affected implementation does not put a tight bound on that line, so a malicious or compromised server can force memory exhaustion.

The trust direction matters

Most D-Bus coverage focuses on who may connect to a service. This bug reverses the question. If an application can be induced to connect to an attacker-controlled bus address, the server controls the first nonce and authentication text sent to the client. A remote or local attacker therefore needs a connection path, not an account on the victim service.

Red Hat rates the issue Moderate with a CVSS 3.1 score of 6.5. The public vector includes user interaction, which reflects the practical need to make a client initiate the connection. That interaction may be a user-launched application, a plugin, a container runtime, or another integration that follows an address supplied by configuration or an upstream service.

Where this appears

Look for applications that accept a D-Bus address from a user profile, a registry or configuration service, a container annotation, or another remote system. Private bus addresses are often treated as trusted because they normally point to a local socket. That assumption fails when the address can cross a trust boundary.

Examples worth reviewing include remote desktop helpers, IDE extensions, device-management clients, and agent processes that proxy work into containers. The package inventory should include statically linked or bundled GLib copies as well as distribution packages.

Apply both fixes

The server allocation issue and this client read issue are separate defects with separate patches. Apply the vendor update that addresses CVE-2026-140124, restart the affected processes, and verify the loaded library version rather than the package file on disk.

Where an immediate patch is not possible, reject untrusted D-Bus addresses. Pin clients to expected local sockets or authenticated buses and block connections to endpoints controlled by an untrusted workload. A memory limit can contain the result, but it should not be described as a fix for the unbounded read.

Test the failure path

In a lab, point a patched client at a test server that delays the authentication line and sends oversized input. Confirm that the client rejects the input with a bounded error and remains alive. Repeat from a container boundary and verify that the service cannot be redirected to an arbitrary address.

References

原文:https://www.a8q9.cn/en/article/glib-gdbus-client-authentication-an-untrusted-peer-can-send-an-unbounded-line-e1f884.html

相关文章