Skip to content
Race condition Write-up Advanced

CVE-2026-8933: Local Privilege Escalation in Set-Capabilities snap-confine

A local privilege escalation flaw in snap-confine, caused by a race condition during sandbox setup, allows an unprivileged local user to gain root access. The attacker exploits a temporary directory ownership window and a symlink race to write to arbitrary files, then uses a udev rules file to execute commands as root.

Saeed Abbasi Follow

Published on blog.qualys.com

The Qualys Threat Research Unit (TRU) has identified a Local Privilege Escalation (LPE) vulnerability in snap-confine (CVE-2026-8933). This flaw allows an unprivileged local user to gain full root access on default installations of Ubuntu Desktop 24.04, 25.10, and 26.04.

Saeed Abbasi, on blog.qualys.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a race condition during sandbox initialization where temporary files are created with user ownership before being transferred to root, allowing an attacker to manipulate them.

What the attacker needed

Local user account on affected Ubuntu Desktop

The fix

The vulnerability was fixed by Canonical through snapd updates released by the Ubuntu Security Team.

How it was found

  1. Mount a FUSE filesystem over the temporary scratch directory immediately after creation.
  2. Create a symlink pointing to an arbitrary target file.
  3. Widen file permissions to 0666 before snap-confine calls fchown().
  4. Drop a malicious .rules file in /run/udev/rules.d/.
  5. Trigger a FUSE mount/unmount cycle to force systemd-udevd to execute arbitrary commands as root.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

snap-confine is a program that sets up a safe sandbox for snap applications. A race condition means two actions happen at almost the same time, and an attacker can slip in and change things before the program secures them. Here, the attacker tricks snap-confine into writing to a file they control, which eventually lets them run commands as the all-powerful root user.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by Saeed Abbasi

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.