Skip to main content
Mallory
← Back to News
privilege-escalation-techniqueendpoint-software-vulnerabilitywidely-deployed-product-advisory

Ubuntu Privilege Escalation via `snap-confine` and `systemd-tmpfiles`

Attack Tradecraft · 5 sources · Updated 5mo ago · First seen Mar 18, 2026

Ubuntu Privilege Escalation via `snap-confine` and `systemd-tmpfiles`

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.

Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Mar 18, 2026
  1. Mar 18, 20268mo ago

    Qualys publicly discloses CVE-2026-3888 in Ubuntu Desktop

    Qualys Threat Research Unit disclosed CVE-2026-3888, a high-severity local privilege escalation vulnerability caused by an interaction between snap-confine and systemd-tmpfiles. The bug lets an attacker abuse cleanup and recreation of /tmp/.snap so attacker-controlled files may be bind-mounted as root, potentially leading to full system compromise.

  2. Mar 18, 20268mo ago

    Canonical releases snapd patches for CVE-2026-3888

    Canonical issued patched snapd releases to address CVE-2026-3888 for Ubuntu 24.04 LTS, Ubuntu 25.10, Ubuntu 26.04 LTS (Dev), and upstream snapd. The flaw affects default Ubuntu Desktop 24.04 and later installations and can allow a low-privileged local user to gain full root access.

  3. Mar 18, 20268mo ago

    Ubuntu mitigates uutils rm race before Ubuntu 25.10 release

    During review of Ubuntu 25.10, Qualys identified a separate race condition in the uutils coreutils rm utility that could enable arbitrary file deletion as root or further privilege escalation. Ubuntu mitigated the issue before the public release of Ubuntu 25.10 by reverting the default rm command to GNU coreutils, and upstream uutils fixes were later applied.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Organizations

1 linked
Canonical
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.