CVE-2026-3888 - Ubuntu Desktop Snap Local Privilege Escalation

Ubuntu Desktop Local Privilege Escalation snapd
Overview
CVE-2026-3888 is a local privilege escalation vulnerability affecting Ubuntu Desktop 24.04 LTS through the snapd stack. The flaw allows a local unprivileged user to escalate privileges to root under exploitable timing conditions.
The issue is tied to unsafe interaction between snap-confine and systemd-tmpfiles, where /tmp/.snap can be removed and maliciously recreated before later root-privileged processing.
Technical Specifications
| Field | Details |
|---|---|
| Identifier | CVE-2026-3888 |
| CVSS Score | 7.8(High) |
| Affected Platform | Ubuntu Desktop 24.04 LTS (reported) |
| Vulnerable Component | snapd (snap-confine) |
| Flaw Type | Race condition + logic error around /tmp/.snap handling |
| Exploitation Requirement | Local low-privilege access and timing control |
| Potential Outcome | Root privilege escalation and arbitrary code execution |
Affected Products
- Ubuntu Desktop systems using vulnerable
snapd/snap-confinebehavior. - Multi-user systems where local unprivileged accounts are present.
- Environments with limited monitoring of temporary-directory and mount activity.
The following snapd package versions are vulnerable. Organizations should upgrade immediately to the listed patched releases:
- Ubuntu 24.04 LTS: snapd versions prior to 2.73+ubuntu24.04.2
- Ubuntu 25.10 LTS: snapd versions prior to 2.73+ubuntu25.10.1
- Ubuntu 26.04 LTS (Dev): snapd versions prior to 2.74.1+ubuntu26.04.1
- Upstream snapd: versions prior to 2.75
Technical Details
systemd-tmpfilescan clean up/tmp/.snapduring normal maintenance operations.- An attacker can race to recreate
/tmp/.snapwith malicious controlled content. snap-confinesubsequently processes/mounts attacker-controlled files as root.- This behavior can convert local access into full root compromise.
- Exploit reliability depends on local access and precise operation timing.
Attack Scenario
- Attacker obtains local low-privilege access (for example via compromised account or breakout scenario).
- Attacker waits for cleanup of
/tmp/.snapbysystemd-tmpfiles. - The directory is recreated with malicious content under attacker control.
- A Snap execution path triggers
snap-confineprocessing. snap-confinemounts/uses malicious content with root privileges.- Attacker gains full root-level control of the host.
Impact Assessment
Successful exploitation can grant full root access and arbitrary command execution on affected hosts.
Attackers may establish persistence, steal credentials, tamper with logs, and disable defensive tooling.
Compromise of a single host can enable broader enterprise movement and complete endpoint trust failure.
Mitigation Strategies
- Apply official Ubuntu security updates for
snapdimmediately. - Restrict and audit local user access on sensitive endpoints.
- Monitor
/tmpand related paths for suspicious recreation or tampering behavior. - Enable
auditdand file-integrity monitoring for privileged file and mount operations. - Alert on anomalous Snap execution patterns and unusual mount activity.
Resources
Open-Source Reporting
- CVE-2026-3888: Ubuntu Desktop 24.04+ vulnerable to Root exploit
- NVD - CVE-2026-3888
- Ubuntu CVE-2026-3888 Bug Lets Attackers Gain Root via systemd Cleanup Timing Exploit
- New Ubuntu Flaw Enables Local Attackers to Gain Root Access - Infosecurity Magazine
- CVE-2026-3888: Important Snap Flaw Enables Local Privilege Escalation to Root | Qualys
Last Updated: March 26, 2026