Threat reportVulnerabilityTL-2026-1633
CVE-2026-8933: Race Condition in Ubuntu snap-confine Enables Local Privilege Escalation to Root
A dual race-condition (TOCTOU) vulnerability in Ubuntu's snap-confine sandbox launcher, introduced when Canonical hardened snap-confine from a set-uid-root binary to a set-capabilities model in July 2025, lets an unprivileged local user mount a malicious FUSE filesystem over a temporary scratch directory, inject symlinks, and drop a malicious udev rule to gain full root code execution.
Key facts
Detection coverage
As of 2026-07-25, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-1633 across Splunk SPL, Microsoft KQL and Sigma, covering 29 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Symlink Redirect + Permission-Widening Race in snap-confine Scratch Path (CVE-2026-8933 Post-Exploitation)
Detects the second stage of the CVE-2026-8933 chain: a symlink() call planted inside a /tmp/snap.rootfs_* scratch directory pointing outside that directory (especially toward /run/udev/**), combined with or followed by a chmod call widening permissions to 0666 on a file in the same scratch path — evidence of the missing-O_NOFOLLOW open() redirect and the fchown-race permission-widening window (CWE-59 / CWE-367).
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1222.002, T1564.001, T1036, T1140
- Data sources: linux_audit (auditd SYSCALL records for symlink/symlinkat/chmod/fchmodat), sysmon_for_linux, windows_security (DeviceFileEvents equivalent)
- Severity: high
- Confidence: high
Splunk SPL
index=linux_audit sourcetype="linux:audit" type=SYSCALL (syscall="symlink" OR syscall="symlinkat" OR syscall="chmod" OR syscall="fchmodat")
| eval scratch_hit=if(match(name, "^/tmp/snap\.rootfs_"), 1, 0)
| eval udev_target=if(match(name, "/run/udev"), 1, 0)
| where scratch_hit=1 OR udev_target=1
| eval event_kind=case(syscall="symlink" OR syscall="symlinkat", "symlink_plant", syscall="chmod" OR syscall="fchmodat", "perm_widen", 1=1, "other")
| where NOT (match(ppid_comm, "snapd|snap-confine") AND uid="0")
| eval mode_val=coalesce(a2, mode)
| eval suspicious_mode=if(mode_val="0666" OR mode_val="666", 1, 0)
| stats count values(event_kind) as event_kinds values(name) as paths values(mode_val) as modes min(_time) as first_seen max(_time) as last_seen by host, uid, comm, exe
| where count>=1
| eval detection="CVE-2026-8933: symlink redirect and/or 0666 perm-widening race in snap-confine scratch dir"
| table host, uid, comm, exe, event_kinds, paths, modes, first_seen, last_seen, count, detection
| sort -last_seenMicrosoft KQL
DeviceFileEvents
| where Timestamp > ago(24h)
| where (ActionType == "FileSymlinkCreated" and FolderPath has "/tmp/snap.rootfs_")
or (ActionType in ("FilePermissionsChanged") and FolderPath has "/tmp/snap.rootfs_")
| extend TargetsUdev = FileOriginReferrerUrl has "/run/udev" or FolderPath has "/run/udev"
| where InitiatingProcessAccountName != "root"
| project Timestamp, DeviceName, InitiatingProcessAccountName, ActionType, FileName, FolderPath, InitiatingProcessFileName, TargetsUdev
| sort by Timestamp descSigma
title: Symlink Plant or 0666 Permission Race Inside snap-confine Scratch Directory
id: 8f2c9b1e-8933-4c1e-9a2b-cve20268933s2
status: experimental
description: Detects a symlink() call inside a /tmp/snap.rootfs_* directory that resolves outside the directory (especially toward /run/udev/**), or a chmod call widening a file in that directory to 0666 — the CWE-59 / CWE-367 arbitrary-write and permission-race primitives underlying CVE-2026-8933.
references:
- https://blog.qualys.com/vulnerabilities-threat-research/2026/07/21/cve-2026-8933-snap-confine-local-privilege-escalation
- https://cdn2.qualys.com/advisory/2026/07/21/snap-confine-set-capabilities.txt
author: Threadlinqs Team
date: 2026/07/22
tags:
- attack.defense_evasion
- attack.t1222.002
- attack.t1564.001
- attack.t1036
- attack.t1140
- cve.2026.8933
- cwe.59
- cwe.367
logsource:
product: linux
category: syscall
detection:
selection_symlink:
syscall: 'symlink'
target|contains: '/tmp/snap.rootfs_'
selection_chmod:
syscall: 'chmod'
path|contains: '/tmp/snap.rootfs_'
mode: '0666'
filter_root:
uid: 0
condition: (selection_symlink or selection_chmod) and not filter_root
falsepositives:
- snapd's own internal setup routines running as root (excluded via the uid=0 filter)
- Package build/CI systems that legitimately stage temp files under /tmp with 0666 for unrelated multi-user build artifacts not named snap.rootfs_*
level: highKnown false positives:
- Legitimate root-owned snapd internal setup activity (filtered via uid=0 exclusion)
- Unrelated multi-tenant CI/build systems that stage 0666 temp files under /tmp but never inside a snap.rootfs_* named path
Tuning notes: Add explicit correlation requiring both a symlink event AND a chmod-0666 event within the same short (sub-5-second) window on the same scratch-dir path to reduce noise before escalating to a critical-severity alert; whitelist known FUSE-based container runtimes that legitimately create scratch symlinks unrelated to snap-confine.
- [indicator] Scratch Directory Mount Interception (Exploitation Phase, KQL) · unlock with TL Creds
- Hidden Symlink Redirect and Security-Tooling Discovery Around [indicator] Scratch Path (Post-Exploitation, KQL) · unlock with TL Creds
- [indicator] RUN+= Child Process Execution from Attacker-Planted udev Rule (C2/Lateral, KQL) · unlock with TL Creds
- Local Account Mounting Over [indicator] Scratch Directory (Exploitation, Sigma-Primary) · unlock with TL Creds
- Masqueraded/Hidden File Write via Symlink Escape from [indicator] Scratch Directory (Post-Exploitation, Sigma-Primary) · unlock with TL Creds
- [indicator] RUN+= Root Command Execution from Newly Planted Rule File (C2/Lateral, Sigma-Primary) · unlock with TL Creds
- [indicator] Scratch Directory FUSE/Bind Mount Race (CVE-2026-8933 Exploitation) · unlock with TL Creds
- Unauthorized udev Rule Write Triggering [indicator] Root Command Execution (CVE-2026-8933 C2/Lateral) · unlock with TL Creds
Indicators of compromise
As of 2026-07-25, Threadlinqs Intelligence tracks 29 indicators of compromise for TL-2026-1633.
Technical analysis
Discovered by Qualys TRU; publicly disclosed and patched July 21, 2026 with no reported in-the-wild exploitation.
CVE-2026-8933 is a High-severity (CVSS 3.1: 7.8, AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) local privilege escalation vulnerability in snap-confine, the setuid/capabilities-based sandbox launcher that snapd uses to construct the confined execution environment for snap applications on Ubuntu. In July 2025, Canonical moved snap-confine away from a traditional set-uid-root binary model to a 'set-capabilities' model (retaining a narrow set of Linux capabilities such as CAP_SYS_ADMIN instead of full root) as a defense-in-depth hardening measure. That change inadvertently introduced a race-condition window during sandbox initialization.
When snap-confine prepares a snap's execution environment it creates a scratch directory under /tmp (e.g. /tmp/snap.rootfs_XXXXXX) that is briefly owned by the invoking unprivileged user before ownership is transferred to root via fchown(fd, 0, 0). Qualys TRU identified two concurrent, chainable race conditions in this window. First, an attacker mounts a malicious FUSE filesystem over the scratch directory immediately after its creation; because mount-namespace isolation is applied by snap-confine only later in the sequence, the FUSE mount remains externally accessible and can intercept/unmount snap-confine's subsequent operations. Second, when snap-confine opens files in that directory with open(full_path, O_CREAT|O_TRUNC, 0644) without the O_NOFOLLOW flag, an attacker-planted symlink causes the open() call to follow the link and write to an arbitrary attacker-chosen target instead of the intended sandbox file. A further permission-widening race (chmod 0666) can occur before the fchown() ownership transfer completes, extending the writable window.
To turn this arbitrary-write primitive into root code execution, the exploit targets /run/udev/**, a path that AppArmor's snap-confine security profile permits read-write access to. By redirecting the symlink race to write a malicious .rules file into /run/udev/rules.d/ and then triggering a FUSE mount/unmount cycle, the attacker causes systemd-udevd (which runs as root and processes udev events, including RUN+= directives in rule files) to execute an attacker-controlled command with full root privileges — completing the local privilege-escalation chain from unprivileged user to root with no user interaction and low attack complexity.
The flaw affects default installations of Ubuntu Desktop 22.04 LTS, 24.04 LTS, 25.10, and 26.04 running vulnerable snapd releases (approximately snapd 2.75.0 through 2.76.0) that use the set-capabilities snap-confine variant; systems still running the legacy set-uid-root snap-confine configuration are not affected. Qualys TRU (led by Saeed Abbasi) privately disclosed the issue to the Ubuntu Security Team on 2026-04-22; Canonical distributed fixes to the linux-distros coordination list on 2026-07-13 and published a public advisory on 2026-07-14, with full coordinated disclosure and patch release on 2026-07-21 via Ubuntu Security Notice USN-8579-1, which also bundled fixes for two related snapd flaws: CVE-2024-5300 (AppArmor template flaw exposing hashed user passwords via the systemd-userdbd varlink interface, affecting Ubuntu releases back to 16.04 LTS) and CVE-2026-15226 (seccomp template flaw permitting setuid binary creation, enabling escape from confined root to unconfined root). No in-the-wild exploitation or public PoC release has been reported for CVE-2026-8933 as of disclosure; Qualys withheld full working exploit code pending patch adoption. Given that snap is a default packaging format across most modern Ubuntu Desktop and Ubuntu Core installations, and that the vulnerability requires only unprivileged local code execution as a precondition (readily obtainable via a malicious downloaded binary, compromised low-privilege service account, or post-initial-access foothold), this issue warrants priority patching and detection coverage for privilege-escalation chains involving snap-confine, FUSE mounts, and udev rule file writes.
MITRE ATT&CK techniques by tactic:
Defense Evasion
T1036 Masquerading; T1140 Deobfuscate/Decode Files or Information; T1211 Exploitation for Stealth; T1564.001 Hide Artifacts: Hidden Files and Directories
Execution
T1059.004 Command and Scripting Interpreter: Unix Shell; T1569 System Services
Privilege Escalation
T1068 Exploitation for Privilege Escalation; T1078.003 Valid Accounts: Local Accounts; T1548 Abuse Elevation Control Mechanism; T1548.001 Abuse Elevation Control Mechanism: Setuid and Setgid; T1611 Escape to Host
Discovery
T1082 System Information Discovery; T1518.001 Software Discovery: Security Software Discovery
defense-impairment
T1222.002 Linux and Mac Permissions
Persistence
T1546.017 Event Triggered Execution: Udev Rules
Credential Access
Resource Development
Remediation
Patches
- snapd 2.76+ubuntu26.04.3 (Ubuntu 26.04 LTS)
- snapd 2.76+ubuntu24.04.1 (Ubuntu 24.04 LTS)
- snapd 2.76+ubuntu22.04.1 (Ubuntu 22.04 LTS)
- snapd 2.67.1+20.04ubuntu1~esm3 (Ubuntu 20.04 LTS, Ubuntu Pro/ESM required)
- snapd 2.61.4ubuntu0.18.04.1+esm4 (Ubuntu 18.04 LTS, Ubuntu Pro/ESM required)
- snapd 2.61.4ubuntu0.16.04.1+esm4 (Ubuntu 16.04 LTS, Ubuntu Pro/ESM required)
Immediate actions
- Update snapd to the patched version for your Ubuntu release via apt update && apt install --only-upgrade snapd
- Verify installed snapd version explicitly — do not assume patched status from release/update date alone, per Qualys and vendor guidance
- On systems that cannot patch immediately, restrict local unprivileged account creation/logon and monitor for unexpected FUSE mounts under /tmp
Workarounds
- No fully effective workaround without patching; where patching is delayed, restrict unprivileged local access and monitor /run/udev/rules.d and /tmp/snap.rootfs_* for anomalous writes
Longer-term hardening
- Deploy auditd/eBPF-based monitoring for udev rule file writes outside of package-manager-driven changes (auditctl -w /run/udev/rules.d -p wa)
- Deploy EDR/behavioral detection for mount() syscalls targeting snap-confine scratch directories (/tmp/snap.rootfs_*)
- Track Canonical/Ubuntu security notices for snapd and apply patches promptly given snapd's default-installed, high-privilege attack surface
Affected and fixed versions
- Canonical — snapd / snap-confine (Ubuntu Desktop)
Vulnerable versions: Ubuntu Desktop 22.04 LTS (snapd < 2.76+ubuntu22.04.1); Ubuntu Desktop 24.04 LTS (snapd < 2.76+ubuntu24.04.1); Ubuntu Desktop 25.10 (snapd, set-capabilities snap-confine variant); Ubuntu Desktop 26.04 (snapd < 2.76+ubuntu26.04.3); snapd 2.75.0 through 2.76.0 (upstream semver range)
Fixed in: snapd 2.76+ubuntu26.04.3; snapd 2.76+ubuntu24.04.1; snapd 2.76+ubuntu22.04.1; snapd 2.67.1+20.04ubuntu1~esm3 (ESM); snapd 2.61.4ubuntu0.18.04.1+esm4 (ESM); snapd 2.61.4ubuntu0.16.04.1+esm4 (ESM)
Timeline
Last updated · 2 updates · revalidated 2× · latest source
- Historical related snap-confine flaw 'Oh Snap! More Lemmings' (CVE-2021-44731) disclosed, establishing a recurring pattern of race-condition issues in snap-confine's privileged temp-file handling.
- CVE-2022-3328 discloses a related snap-confine race condition, combinable with CVE-2021-44731 for privilege escalation — an additional historical precedent in the recurring snap-confine sandbox-initialization bug pattern.
- Canonical shifts snap-confine from a set-uid-root binary to a set-capabilities model as a security hardening measure, inadvertently introducing the race-condition window later identified as CVE-2026-8933.
- Related snap-confine/systemd-tmpfiles race condition CVE-2026-3888 (CVSS 7.8) disclosed by Qualys, involving a similar cleanup-window privilege escalation; public PoC later published on GitHub.
- Qualys Threat Research Unit privately discloses the snap-confine race-condition vulnerability to the Ubuntu Security Team.
- Canonical distributes patches to the coordinated linux-distros disclosure mailing list ahead of public release.
- Initial public advisory information for the snapd fixes becomes available.
- Ubuntu publishes the official CVE-2026-8933 tracking page confirming Jammy/Noble/Resolute as fixed and Focal/Bionic/Xenial as not affected.
- Qualys Threat Research Unit (Saeed Abbasi) publishes full technical writeup and advisory for CVE-2026-8933, detailing the FUSE/symlink/udev exploit chain.
- Canonical publishes a companion Ubuntu Discourse post ('Snapd - multiple vulnerabilities fixed') summarizing the three bundled CVEs, listing per-release package versions, and instructing users that a system reboot is required after updating snapd.
- Canonical publishes Ubuntu Security Notice USN-8579-1, releasing fixed snapd packages for Ubuntu 16.04 through 26.04 LTS and formally assigning CVE-2026-8933 alongside CVE-2024-5300 and CVE-2026-15226.
- As of this date, CVE-2026-8933 has not been added to the CISA Known Exploited Vulnerabilities (KEV) catalog and no confirmed in-the-wild exploitation has been reported; risk is driven by public PoC availability and broad default-install impact.
- The Hacker News, Infosecurity Magazine, Phoronix, and other outlets publish coverage summarizing the vulnerability and urging patch adoption.
- Runtime-security vendor Exein publishes a detection write-up (Exein Photon) mapping the vulnerable open()-without-O_NOFOLLOW pattern to a blockable eBPF rule.
Update history
- 2026-07-25 — CVE-2026-8933: Local Privilege Escalation in Ubuntu snap-confine via Race Condition: What changed No escalation-eligible field changes. New indicators (9) Indicator values are withheld at this access level. New CVEs (0) None — same single CVE-2026-8933 in both records.
- 2026-07-22 — CVE-2026-8933: Local Privilege Escalation via Race Condition in Ubuntu snap-confine: What changed No severity, exploitability, or status escalation — both reports independently assess HIGH/7.8/POC_PUBLIC/ACTIVE.
Sources cited
- Qualys Security Advisory: snap-confine set-capabilities race condition cdn2.qualys.com · Advisory · 2026-07-21
- USN-8579-1: snapd vulnerabilities ubuntu.com · Advisory · 2026-07-21
- NVD - CVE-2026-8933 NVD (NIST) · Government advisory · 2026-07-21
- CVE-2026-8933: Local Privilege Escalation in Ubuntu snap-confine blog.qualys.com · Vendor report · 2026-07-21
- Snapd - multiple vulnerabilities fixed discourse.ubuntu.com · Vendor report · 2026-07-21
- How to Patch Ubuntu Snap Vulnerabilities (2026) fosslinux.com · Blog · 2026-07-21
- Ubuntu snap-confine flaw could give attackers root access The Hacker News · News · 2026-07-22
- Ubuntu snap-confine Vulnerability Enables Local Root Access infosecurity-magazine.com · News · 2026-07-21
- Three New Ubuntu Snap Vulnerabilities Made Public - One Dates Back To Ubuntu 16.04 LTS phoronix.com · News · 2026-07-21
- Ubuntu snap-confine flaw can give attackers root access securitybrief.co.uk · News · 2026-07-21
Previous and next in vulnerability
Drafted by the Threadlinqs research pipeline from 10 sources; published ; last updated .