GLib GDBus server buffer allocation: a declared message header can exhaust a worker
GLib's GDBus implementation handles D-Bus traffic for a large set of Linux services, desktop components, and embedded management agents. CVE-2026-140063 identifies a resource-consumption flaw in the server-side worker path: a peer can declare a very large D-Bus message before sending the body, causing GLib to allocate a 128 MiB read buffer in advance.
What the flaw changes
The attacker needs an authenticated connection to an application that exposes a GDBus endpoint. That requirement limits the attack surface, but it does not make the flaw harmless. Many local services authenticate the calling user and then accept structured requests from that session. A compromised process, a container escape into a shared bus, or a malicious application with access to a private socket may be enough to create the connection.
Red Hat rates the issue Moderate with a CVSS 3.1 base score of 6.5. The measured impact is availability. A message header is small, while the associated allocation happens before the body arrives. Repeated attempts can therefore consume memory far faster than the bytes crossing the socket would suggest.
Who should look first
Prioritise hosts that run long-lived GLib applications with privileged bus endpoints. Examples include desktop session services, device-management daemons, and container or appliance agents that expose a private D-Bus socket to other local components. The relevant code is in the application using GLib, not in the Linux kernel's network stack.
Inventory the bus configuration as well as the package version. A service reachable only from a hardened system bus has a different risk profile from one that allows a broad set of users or containers to connect. Record which peers can authenticate and what resource controls apply to the service process.
Remediation and containment
Apply the GLib fix supplied by the operating-system vendor. Debian, Red Hat, and downstream distributions track their own backport status, so the package version alone may not match the upstream project release. Restart every process that embeds the old GLib library.
Until patched, constrain the number of concurrent connections, cap process memory, and restrict the socket to the smallest set of users and containers possible. A per-process memory limit can turn a host-wide outage into a failed worker, but it is not a substitute for the code fix. Do not expose a private D-Bus socket on a TCP listener as a workaround.
Verification
Confirm the running library version inside each service process or container. Review socket permissions and bus policy. Then test the patched endpoint with malformed and oversized headers in a controlled environment while monitoring memory use and worker restarts.


