Ubuntu Privilege Escalation via `snap-confine` and `systemd-tmpfiles`
Attack Tradecraft · 5 sources · Updated 5mo ago · First seen Mar 18, 2026

Qualys disclosed CVE-2026-3888, a high-severity local privilege escalation flaw affecting default installations of Ubuntu Desktop 24.04 and later. The bug arises from the interaction between snap-confine, the setuid-root component used to build snap sandboxes, and systemd-tmpfiles, which periodically cleans stale data from temporary directories. An unprivileged local attacker can abuse the cleanup of /tmp/.snap, recreate the directory with malicious content, and eventually obtain full root access. The issue is rated CVSS 7.8 and requires low privileges and no user interaction, but exploitation is constrained by a time-based window tied to the system's cleanup schedule.
The vulnerable behavior is present in default Ubuntu Desktop deployments because both components are standard parts of the platform's snap confinement model. Reports note the cleanup interval is typically 30 days on Ubuntu 24.04 and 10 days on later versions, which contributes to the exploit's higher attack complexity. Patched versions include snapd 2.73+ubuntu24.04.1 for Ubuntu 24.04 LTS, 2.73+ubuntu25.10.1 for Ubuntu 25.10 LTS, 2.74.1+ubuntu26.04.1 for Ubuntu 26.04 development builds, and upstream snapd 2.75. A separate report about CVE-2026-32746 in GNU InetUtils telnetd describes a different, unrelated unauthenticated remote code execution issue and does not pertain to the Ubuntu snap-confine flaw.


