Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
Google Account Recovery Gets Selfie Video Feature for Enhanced Security
July 23, 2026
High-Severity Brokering File System Flaw Exposes Windows 11, Server 2025
July 23, 2026
DolphinX Malware Steals Credentials From 300+ Apps, Profiles Victims With AI
July 23, 2026
Home/CyberSecurity News/Ubuntu snap-confine Race Condition CVE-2023-46238 Lets Attackers Gain Root Privileges
CyberSecurity News

Ubuntu snap-confine Race Condition CVE-2023-46238 Lets Attackers Gain Root Privileges

Key Takeaways A local privilege escalation vulnerability (CVE-2023-46238) has been identified in Ubuntu’s snap-confine utility. This flaw allows unprivileged local users to gain root access on...

David kimber
David kimber
July 23, 2026 3 Min Read
2 0

Key Takeaways

  • A local privilege escalation vulnerability (CVE-2023-46238) has been identified in Ubuntu’s snap-confine utility.
  • This flaw allows unprivileged local users to gain root access on certain Ubuntu desktop installations.
  • The vulnerability stems from a race condition during the creation and manipulation of temporary files and directories by snap-confine.
  • Affected versions include Ubuntu Desktop 26.04, 25.10, and updated 24.04, specifically those configured with Linux capabilities.
  • Users are strongly advised to apply security updates released by Canonical to mitigate this critical risk.

A significant local privilege escalation vulnerability has been uncovered in Ubuntu’s snap-confine utility, posing a risk to specific desktop installations. This flaw, tracked as CVE-2023-46238, could allow any local user to gain complete root access on vulnerable systems.

Table Of Content

  • Key Takeaways
  • Understanding the Ubuntu snap-confine Race Condition Flaw
  • Exploitation Mechanism
  • What You Should Do

Researchers at Qualys identified a race condition within snap-confine, a critical helper program used by snapd to establish the runtime environment for snap applications.

In the affected versions, snap-confine no longer functions as a traditional set-user-ID (setuid) root binary. Instead, it leverages Linux capabilities such as cap_setuid, cap_setgid, cap_sys_admin, and cap_sys_ptrace. This architectural shift enables the process to operate under the user’s UID while still retaining elevated privileges, facilitating the temporary creation and manipulation of files initially owned by unprivileged users.

Understanding the Ubuntu snap-confine Race Condition Flaw

The vulnerability primarily impacts snap-confine installations configured with capabilities. This includes default Ubuntu Desktop versions 26.04 and 25.10, along with the most current Ubuntu Desktop 24.04. These specific versions utilize a variant of snap-confine that has these capabilities enabled. Traditional setuid-root installations are not affected by CVE-2026-8933.

The core of the vulnerability lies in how snap-confine constructs a sandbox for a snap. It generates a temporary directory, named snap.rootfs_XXXXXX, under /tmp using mkdtemp(). Following this, it executes several mount operations and duplicates a base root filesystem into this temporary location. Subsequently, it invokes chown() to revert ownership of the directory and its contents back to root.

Crucially, a brief window exists during which this temporary directory and any newly created files remain under the ownership of the unprivileged user, creating the exploitable race condition.

This pattern also extends to regular files. As snap-confine processes the base root filesystem, it uses open() with flags O_CREAT | O_TRUNC on paths within the scratch directory. However, since open() does not specify O_NOFOLLOW, it can resolve user-controlled symbolic links during this time-sensitive period, thereby enabling exploitable race conditions.

Exploitation Mechanism

An attacker can exploit this race condition to achieve arbitrary file creation. Once /tmp/snap.rootfs_XXXXXX is created, the attacker can mount a FUSE filesystem over it. This allows them to unmount any private mount namespaces snap-confine attempts to build, thereby regaining access to their controlled filesystem when snap-confine proceeds to the file-creation phase.

The attacker can then forge a symbolic link within the scratch directory that points to a desired target file, using a filename that snap-confine is expected to create (e.g., default256.png for the Firefox snap). When snap-confine executes open() with its elevated capabilities, it creates the attacker’s chosen file and subsequently changes its ownership to root. The attacker then races to set the file mode to 0666, ensuring they retain write access even after the ownership changes.

While an AppArmor profile imposes restrictions on accessible filesystem locations, limiting arbitrary file creation, one critical writable path is /run/udev/**, which is processed by systemd-udevd. According to a Qualys advisory, the exploit involves placing a specially crafted .rules file in /run/udev/rules.d. This action causes udev to execute a shell command with root privileges, successfully escalating the attacker’s privileges.

What You Should Do

  • Immediately apply all available security updates and patches from Canonical for your Ubuntu system.
  • Verify that your Ubuntu Desktop installation is running the latest stable version to ensure all known vulnerabilities are addressed.
  • Regularly monitor official Ubuntu security advisories and announcements for updates on this and other potential threats.
  • Consider implementing additional security layers, such as robust endpoint detection and response (EDR) solutions, to detect and prevent exploitation attempts.

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackCVEExploitSecurityVulnerability

Share Article

David kimber

David kimber

David is a penetration tester turned security journalist with expertise in mobile security, IoT vulnerabilities, and exploit development. As an OSCP-certified security professional, David brings hands-on technical experience to his reporting on vulnerabilities and security research. His articles often feature detailed technical analysis of exploits and provide actionable defense recommendations. David maintains an active presence in the security research community and has contributed to multiple open-source security tools.

Previous Post

Google’s CodeMender AI Agent Automates Vulnerability Patching

Next Post

DolphinX Malware Steals Credentials From 300+ Apps, Profiles Victims With AI

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts
Kimi K3 AI Agent Discovers Zero-Day Exploits in Redis Server
July 23, 2026
TrickBot Malware Uses DNS for Covert Command and Control
July 23, 2026
Microsoft Defender for O365 Gains Prompt Injection Protection
July 23, 2026
Top Authors
Marcus Rodriguez
Marcus Rodriguez
Emy Elsamnoudy
Emy Elsamnoudy
David kimber
David kimber
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Released to Detect MongoDB Vulnerability(CVE-2025-14847)

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us