The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-44730

CVE-2021-44730: Snapd Privilege Escalation Vulnerability

CVE-2021-44730 is a privilege escalation vulnerability in Canonical snapd that allows local attackers to execute arbitrary code with elevated privileges. This article covers technical details, affected versions, and patches.

Published: February 25, 2026

CVE-2021-44730 Overview

CVE-2021-44730 is a privilege escalation vulnerability in Canonical snapd version 2.54.2 that arises from improper validation of the snap-confine binary location. A local attacker with standard user privileges can exploit this flaw by creating a hardlink to the snap-confine binary in an attacker-controlled location, causing the binary to execute arbitrary commands with elevated privileges.

The vulnerability is classified as CWE-59 (Improper Link Resolution Before File Access), commonly known as a hardlink attack or symlink attack. This type of vulnerability occurs when a privileged program follows filesystem links without proper validation, allowing attackers to redirect execution flow to malicious code.

Critical Impact

Local attackers can achieve full root privilege escalation on affected Linux systems by exploiting improper hardlink validation in the snap-confine binary, potentially compromising the entire system.

Affected Products

  • Canonical snapd (versions prior to 2.54.3)
  • Canonical Ubuntu Linux 18.04 LTS, 20.04 LTS, and 21.10
  • Fedora 34 and 35
  • Debian Linux 10.0 and 11.0

Discovery Timeline

  • 2022-02-17 - CVE-2021-44730 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-44730

Vulnerability Analysis

The snap-confine binary is a core component of the snapd package management system that runs with elevated privileges to set up the execution environment for snap applications. This binary is responsible for creating confined sandboxes and managing security namespaces for snap packages.

The vulnerability exists because snapd version 2.54.2 failed to properly validate the filesystem location of the snap-confine binary before execution. In Unix-like operating systems, hardlinks create additional directory entries pointing to the same inode as the original file, inheriting all of its properties including setuid bits.

When an attacker creates a hardlink to snap-confine in a directory they control, they can manipulate the execution environment (such as library paths or configuration files relative to the binary's location) to achieve arbitrary code execution with the privileges of the snap-confine binary—typically root.

Root Cause

The root cause of CVE-2021-44730 is the absence of proper path canonicalization and validation in the snapd service. The snap-confine binary did not verify that it was being executed from its legitimate installation path (/usr/lib/snapd/snap-confine or similar system locations). This oversight allowed local users to create hardlinks to the setuid binary in user-writable directories, bypassing intended security boundaries.

The vulnerability falls under CWE-59 (Improper Link Resolution Before File Access), which describes scenarios where software does not properly handle hardlinks or symbolic links, leading to security bypasses.

Attack Vector

The attack requires local access to a vulnerable system. An attacker with a standard user account can exploit this vulnerability by performing the following actions:

  1. Create a hardlink to the snap-confine binary in a directory under their control
  2. Manipulate the execution environment (e.g., library paths, configuration files) relative to the hardlinked binary location
  3. Execute the hardlinked binary, which runs with elevated privileges
  4. The privileged execution occurs within the attacker-controlled environment, allowing execution of arbitrary code with root privileges

This attack does not require user interaction and can be executed with low complexity once local access is obtained. The scope is changed because the vulnerability allows breaking out of the user's privilege boundary to affect the entire system.

Detection Methods for CVE-2021-44730

Indicators of Compromise

  • Presence of hardlinks to snap-confine binary in non-standard directories (outside /usr/lib/snapd/ or /usr/libexec/snapd/)
  • Unexpected files in user-writable directories with setuid permissions
  • Evidence of privilege escalation attempts in system logs related to snap-confine execution
  • Suspicious snap-confine processes spawned from unusual working directories

Detection Strategies

  • Monitor filesystem events for hardlink creation targeting /usr/lib/snapd/snap-confine or similar system binaries
  • Implement file integrity monitoring (FIM) to detect unauthorized hardlinks to setuid binaries
  • Deploy EDR solutions capable of detecting privilege escalation patterns and anomalous process ancestry
  • Use auditd rules to log link creation events: auditctl -w /usr/lib/snapd/snap-confine -p l -k snap_confine_hardlink

Monitoring Recommendations

  • Enable and monitor snap daemon logs for unusual execution patterns
  • Configure alerts for any setuid binary execution from user home directories or temporary locations
  • Regularly audit hardlink counts for sensitive system binaries using find or similar tools
  • Implement real-time monitoring for privilege escalation attempts using SentinelOne's behavioral AI detection

How to Mitigate CVE-2021-44730

Immediate Actions Required

  • Update snapd to patched versions: 2.54.3+18.04 for Ubuntu 18.04 LTS, 2.54.3+20.04 for Ubuntu 20.04 LTS, or 2.54.3+21.10.1 for Ubuntu 21.10
  • Apply security updates from your distribution's package manager immediately
  • Audit systems for existing hardlinks to snap-confine in non-standard locations
  • Consider temporarily restricting hardlink creation using fs.protected_hardlinks sysctl if patching is delayed

Patch Information

Canonical has released security patches addressing this vulnerability. The fixed versions properly validate the execution path of the snap-confine binary before allowing privileged operations.

DistributionFixed VersionAdvisory
Ubuntu 18.04 LTS2.54.3+18.04USN-5292-1
Ubuntu 20.04 LTS2.54.3+20.04USN-5292-1
Ubuntu 21.102.54.3+21.10.1USN-5292-1
DebianSee advisoryDSA-5080
FedoraSee advisoryFedora Package Announcement

Workarounds

  • Enable hardlink protection system-wide by ensuring fs.protected_hardlinks=1 is set in sysctl configuration
  • Remove the setuid bit from snap-confine temporarily if snap functionality is not critical (note: this will break snap functionality)
  • Restrict user access to systems where patching cannot be immediately applied
  • Implement filesystem restrictions to prevent hardlink creation in user-writable directories pointing to system binaries
bash
# Enable hardlink protection (recommended security hardening)
echo "fs.protected_hardlinks = 1" | sudo tee -a /etc/sysctl.d/99-hardlink-protection.conf
sudo sysctl -p /etc/sysctl.d/99-hardlink-protection.conf

# Verify snapd version after patching
snap version

# Search for suspicious hardlinks to snap-confine
find / -type f -samefile /usr/lib/snapd/snap-confine 2>/dev/null | grep -v "^/usr/lib/snapd/"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechSnapd

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-59
  • Technical References
  • Openwall Security Mailing List Update

  • Openwall Security Mailing List Update

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Debian Security Advisory DSA-5080
  • Vendor Resources
  • Ubuntu Security Notice USN-5292-1
  • Related CVEs
  • CVE-2021-44731: Canonical Snapd Privilege Escalation Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English