CVE-2026-3888: snapd snap-confine/systemd-tmpfiles Local Privilege Escalation
- Vendor
- Canonical
CVE-2026-3888 is a local privilege-escalation vulnerability in snapd’s snap-confine temporary-directory handling on Ubuntu Linux. A privileged snap sandbox setup relies on a Snap-private directory beneath the world-writable /tmp hierarchy being root-owned. systemd-tmpfiles-clean.service can recursively remove that directory after its configured inactivity period without accounting for active namespace references. A low-privileged local user can then recreate the deleted directory under attacker ownership. During a later snap-confine sandbox initialization, snap-confine can use or bind-mount attacker-controlled content as root, enabling a privilege-escalation chain. The issue is a time-of-check/time-of-use race involving unsafe temporary-directory lifecycle and ownership assumptions. Default Ubuntu Desktop installations from 24.04 onward are affected; the CVE record also identifies Ubuntu 16.04 LTS through 24.04 LTS where the relevant systemd-tmpfiles cleanup configuration is present.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A successful local attacker can obtain arbitrary code execution with root privileges and fully compromise the host. The reported CVSS v3.1 vector is CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H, reflecting high confidentiality, integrity, and availability impact with changed scope.
Mitigation
If you can’t patch tonight, do this now.
Until updates can be installed, prevent systemd-tmpfiles from deleting Snap-private temporary directories by adding appropriate exclusions to the snapd tmpfiles policy. Restrict untrusted local interactive access and execution on affected systems, and monitor or limit the ability of low-privileged users to create filesystem objects beneath /tmp. These measures reduce exposure but do not replace the snapd update.
Remediation
Patch, then assume compromise.
Install Canonical-provided snapd security updates. Fixed releases reported for affected channels include snapd 2.73+ubuntu24.04.2 for Ubuntu 24.04 and later, with upstream snapd fixed in 2.75 or later. Verify the installed package version and that the deployed tmpfiles configuration excludes Snap-private temporary paths from automated cleanup.
Exploits
8 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-3888 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-3888 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-3888?
- Yes. Mallory tracks 8 public exploits or proofs of concept for CVE-2026-3888, the earliest disclosed Mar 18, 2026.
- Is there a patch for CVE-2026-3888?
- Install Canonical-provided snapd security updates. Fixed releases reported for affected channels include snapd 2.73+ubuntu24.04.2 for Ubuntu 24.04 and later, with upstream snapd fixed in 2.75 or later.
- What products are affected by CVE-2026-3888?
- Canonical Ubuntu Linux.
- How severe is CVE-2026-3888?
- CVE-2026-3888 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 1.4% (73rd percentile) as of Sep 25, 2026.
Recent activity
159 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.