CVE-2026-3888

7.8

Canonical · snapd

A local privilege escalation vulnerability in snapd allows attackers to gain root access by re-creating private /tmp directories during systemd-tmpfiles cleanup cycles.

Executive summary

A local privilege escalation vulnerability in the snapd package on Ubuntu systems allows an attacker to achieve full root compromise, warranting immediate remediation.

Vulnerability

This is a privilege chaining vulnerability (CWE-268) where an unprivileged local user can exploit the interaction between the snap-confine utility and systemd-tmpfiles. By timing the recreation of a specific temporary directory after a cleanup cycle, an attacker can trick the system into binding malicious files with root privileges.

Business impact

Successful exploitation leads to a total compromise of the host system, granting the attacker full root-level access. This allows for complete data exfiltration, unauthorized system modifications, and persistent backdoors, which poses a severe risk to organizational confidentiality, integrity, and availability. While the CVSS score of 7.8 indicates high severity, the requirement for local access and a specific time-based window for exploitation does not diminish the critical nature of a full root compromise.

Remediation

Immediate Action: Update the snapd package to the latest patched version provided by Canonical using standard package management tools (sudo apt update && sudo apt install --only-upgrade snapd).

Proactive Monitoring: Monitor system logs for unusual execution patterns or unauthorized attempts to access or modify directories within /tmp/snap-private-tmp.

Compensating Controls: Ensure that system configurations for tmpfiles.d are strictly managed and that least-privilege principles are enforced for all local user accounts to limit the potential for initial access.

Exploitation status

Public Exploit Available: Yes, multiple public proofs-of-concept are available via GitHub repositories.

Analyst recommendation

The risk of full root compromise necessitates that all administrators of affected Ubuntu systems apply the provided security patches immediately. While the exploit requires a specific time-based condition, the potential for total system takeover makes this a high-priority update. Ensure that your automated update processes are functioning correctly or perform a manual update to the specified patched versions to mitigate this risk.

More Canonical CVEs

Sources

Originally found and disclosed by Qualys Security Advisory Team, per the CVE Program record.