
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-40224 is a local privilege escalation vulnerability in systemd-machined affecting systemd versions 259 through 259.x (before 259.3 or 260). The flaw allows an unprivileged user logged into a desktop graphical session to escalate to root by abusing the varlink IPC mechanism to reach the root namespace. It was originally reported via YesWeHack (YWH-PGM9780-96), published on April 10, 2026, and patched in systemd v260 and v259.3. The CVSS v3.1 base score is 6.7 (Moderate), per the official advisory (GitHub Advisory, GHSA-jf3x-2pf6-c45w, Red Hat Bugzilla).
The root cause is classified as CWE-863 (Incorrect Authorization) and CWE-266 (Incorrect Privilege Assignment): systemd-machined fails to properly enforce authorization checks on varlink IPC calls, allowing a low-privileged caller to invoke the org.freedesktop.machine1.register-machine action and reach the root namespace (GitHub Advisory, GHSA-jf3x-2pf6-c45w). Exploitation requires the attacker to be logged into an active desktop graphical session (terminal-only or remote sessions such as SSH are not affected), have low-level local privileges, and trigger some user interaction. Versions older than v259 are not affected, and systemd-machined is typically not installed by default — it is usually part of an optional package such as systemd-container (GitHub Advisory).
Successful exploitation allows a low-privileged user in a graphical desktop session to fully escalate to root, granting complete control over the affected system. This includes the ability to read, modify, or delete sensitive data, install malicious software, create backdoors, and disrupt system availability. The scope is limited to the local system (no scope change), but the confidentiality, integrity, and availability impacts are all rated High (GitHub Advisory, GHSA-jf3x-2pf6-c45w).
As of the time of publication, there is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation (Feedly). The EPSS score is approximately 0.014% (3rd percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is constrained by the requirement for a local graphical desktop session and user interaction, which limits the attack surface (GHSA-jf3x-2pf6-c45w).
systemd-machined installed (e.g., via the systemd-container package) and that the attacker has access to an active desktop graphical session.systemd-machined, typically at /run/systemd/machine/io.systemd.Machine or similar path accessible from the user session.org.freedesktop.machine1.register-machine method, which lacks proper authorization enforcement in the vulnerable versions.systemd-machined processes the request in the root namespace without requiring admin credentials.org.freedesktop.machine1.register-machine in systemd journal logs (journalctl -u systemd-machined) from non-root, non-privileged users; Polkit authorization log entries showing approved machine registration actions for unprivileged users.systemd-machined running as root./etc, /root, /usr) created by a non-root user account; unexpected cron jobs, SSH authorized keys, or SUID binaries added post-exploitation.The primary remediation is to upgrade systemd to version 260 or 259.3, both of which contain the fix (commits e5a5656 for v260 and 90b7cb9 for v259.3) (GitHub Advisory). As a workaround where immediate patching is not possible, restrict access to the register-machine Polkit action by creating /etc/polkit-1/rules.d/machined-register.rules with the following content:
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.machine1.register-machine" &&
subject.user != "root") {
return polkit.Result.AUTH_ADMIN_KEEP;
}
});Additionally, if systemd-machined (typically in the systemd-container package) is not required, removing or disabling it eliminates the attack surface entirely (GitHub Advisory, Red Hat Bugzilla).
The vulnerability was originally reported through the YesWeHack bug bounty platform (reference YWH-PGM9780-96) and disclosed by systemd maintainer bluca via a GitHub Security Advisory (GitHub Advisory). Red Hat opened a tracking bug (Bugzilla #2457325) and assigned it medium priority/severity, reflecting the constrained exploitation conditions (Red Hat Bugzilla). Broader community reaction has been limited given the moderate severity rating and the fact that systemd-machined is not installed by default on most systems.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."