Ravie LakshmananJul 22, 2026Linux / Vulnerability
Cybersecurity researchers have disclosed details of a new local privilege escalation (LPE) vulnerability in snap-confine that an unprivileged user can trigger to obtain root access and gain complete control of a target environment.
The high-severity flaw, tracked as CVE-2026-8933 (CVSS score: 7.8), impacts default installations of Ubuntu Desktop 24.04, 25.10, and 26.04. The disclosure comes as 442 security flaws in Linux have been publicized over the past three days.
"The issue stems from a security hardening change that inadvertently introduced a race condition during sandbox initialization," Saeed Abbasi, head of Threat Research Unit (TRU) and director of product at Qualys, said.
Snap-confine is a program used internally by snapd to construct the execution environment for snap applications. Snapd is the background service or daemon that manages snap packages on Linux systems. Snaps are nothing but a software packaging format devised by Canonical that allows an application to run securely in an isolated sandbox across most Linux distributions.
"Snapd runs a sub-process called snap-confine, which is responsible for creating the necessary confinement for the snap," according to Canonical.
Although recent Ubuntu releases make use of the set-capabilities model to enforce the principle of least privilege (PoLP) as a way to minimize the attack surface, the changes allow snap-confine to be executed with the effective UID of the calling user, at the same time still retaining near-root capabilities.
"During sandbox setup, the binary creates temporary directories and files under /tmp that are initially owned by the unprivileged user," Qualys explained. "Ownership is transferred to the root shortly after, but a narrow window remains during which the caller retains full control."
The problem identified by the cybersecurity vendor is the result of two concurrent race conditions -
- An attacker mounts a malicious FUSE file system over the temporary scratch directory immediately after creation, bypassing the mount namespace isolation applied by snap-confine and keeping the directory accessible outside the sandbox.
- The attacker creates a symbolic link (aka symlink) pointing to an arbitrary target file, effectively redirecting file operations to sensitive system locations.
By manipulating file permissions before the system transfers ownership, the attacker can inject malicious rules into system directories and gain root code execution, Qualys noted.
"When snap-confine attempts to create a sandbox file, the open() call follows the symlink and writes to the target," Abbasi said. "A second race condition allows the attacker to widen file permissions to 0666 before snap-confine calls fchown() to transfer ownership to root."
"To bypass AppArmor confinement, the exploit targets the /run/udev/** path, which permits read-write access. By dropping a malicious .rules file in /run/udev/rules.d/ and triggering a FUSE mount/unmount cycle, the attacker forces systemd-udevd to execute arbitrary commands as root."
To counter the risk posed by CVE-2026-8933, organizations must apply the latest snapd updates as soon as possible.
"An attacker still needs user-level access or code execution, but CVE-2026-8933 can turn that foothold into full control of the host," Jason Soroko, Senior Fellow at Sectigo, said in a statement. "Its presence on default Ubuntu Desktop installations makes employee workstations, developer systems, and administrative endpoints part of the response scope."
"Ubuntu 24.04 is notable because updated systems can carry the affected snap-confine variant, showing why administrators must verify the installed snapd version instead of relying on release age or prior patch status. With fixes available, rapid deployment and confirmation should take priority."
This is not the first time security flaws have been uncovered in the snap-confine component. In February 2022, Qualys detailed another local privilege escalation flaw dubbed Oh Snap! More Lemmings (CVE-2021-44731) that could be abused to gain root privileges by exploiting a race condition in snap-confine's setup_private_mount().
Since then, several other vulnerabilities have come to light, including CVE-2022-3328 (CVSS score: 7.8) and CVE-2026-3888 (CVSS score: 7.8).
Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.


0 Comments
Log in to join the conversation.No comments yet. Be the first to share your thoughts.