Thursday, October 15, 2026
CLOUDSUTRA
HIGHCVSS: 7.8

CVE-2026-3888: Ubuntu snapd Local Privilege Escalation via systemd-tmpfiles Timing Race

CVE-2026-3888

A local privilege escalation vulnerability in Ubuntu's snapd package allows low-privileged attackers to gain root access by exploiting a timing window in how systemd-tmpfiles cleans up snap's private /tmp directory. Discovered by Qualys, the flaw affects Ubuntu 16.04 through 25.10 and has been patched in snapd 2.73+.

Published 17 March 2026Updated 19 March 2026Source: Ubuntu Security Team / Qualys Research
Share:

Description

CVE-2026-3888 is a local privilege escalation (LPE) vulnerability affecting the snapd daemon on Ubuntu Linux. The flaw was discovered by researchers at Qualys and stems from improper handling of snap's private /tmp directory when systemd-tmpfiles is configured to periodically clean it up.

When systemd-tmpfiles removes the private /tmp directory as part of its automatic cleanup routine, a race condition is introduced. A local attacker — already present on the system with limited privileges — can exploit this window to re-create the deleted directory with attacker-controlled permissions or symlinks, potentially allowing code execution with root-level privileges.

This type of attack, sometimes called a TOCTOU (time-of-check to time-of-use) or cleanup-timing exploit, is particularly dangerous because it does not require special privileges to trigger — only a standard local account. The Changed scope in the CVSS rating reflects that a successful exploit can break out of the snap confinement boundary and affect the broader host system.

The vulnerability receives a CVSS 3.1 base score of 7.8 (High), with High impact across confidentiality, integrity, and availability. Ubuntu has rated this as High priority.

All currently supported Ubuntu LTS releases are affected, including 20.04 (Focal), 22.04 (Jammy), and 24.04 (Noble), as well as the development release 25.10 (Questing). Older ESM-supported releases 16.04 (Xenial) and 18.04 (Bionic) are also impacted and have received patches under Ubuntu's Extended Security Maintenance programme.

Patches have been released across all affected releases. System administrators should update snapd immediately using their package manager.

Patch Information

References

Vulnerability Details

CVE ID:
CVE-2026-3888
Severity:
HIGH
CVSS Score:
7.8
Vendor:
Canonical / Ubuntu
Product:
snapd
Affected Versions:
Ubuntu 25.10 (Questing) — fixed in snapd 2.73+ubuntu25.10.1 Ubuntu 24.04 LTS (Noble) — fixed in snapd 2.73+ubuntu24.04.2 Ubuntu 22.04 LTS (Jammy) — fixed in snapd 2.73+ubuntu22.04.1 Ubuntu 20.04 LTS (Focal) — fixed in snapd 2.67.1+20.04ubuntu1~esm1 Ubuntu 18.04 LTS (Bionic) — fixed in snapd 2.61.4ubuntu0.18.04.1+esm2 Ubuntu 16.04 LTS (Xenial) — fixed in snapd 2.61.4ubuntu0.16.04.1+esm2
Published:
17 March 2026

Status Indicators

Exploited in Wild: No
Exploit Available: No
Patch Available: Yes

Tags

ubuntusnapdprivilege-escalationsystemdtmpfileslocal-exploitlpequalystoctoulinuxcve-2026-3888