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-43566

CVE-2021-43566: Samba Race Condition Vulnerability

CVE-2021-43566 is a race condition vulnerability in Samba that allows malicious clients to create directories outside share definitions via SMB1 or NFS. This article covers technical details, affected versions, and mitigations.

Published: February 25, 2026

CVE-2021-43566 Overview

CVE-2021-43566 is a race condition vulnerability affecting all versions of Samba prior to 4.13.16. A malicious client can exploit an SMB1 or NFS race condition to create directories in areas of the server file system that are not exported under the share definition. This vulnerability requires either SMB1 to be enabled or the share to be available via NFS for exploitation to succeed.

Critical Impact

Unauthorized directory creation outside of exported share boundaries could allow attackers to place files in unexpected server locations, potentially enabling further attacks or data integrity issues.

Affected Products

  • Samba versions prior to 4.13.16
  • Systems with SMB1 protocol enabled
  • Systems with NFS shares configured alongside Samba

Discovery Timeline

  • 2022-01-11 - CVE CVE-2021-43566 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-43566

Vulnerability Analysis

This vulnerability is classified as CWE-362 (Race Condition). The flaw exists in how Samba handles concurrent file system operations when serving requests through SMB1 or NFS protocols. Due to improper synchronization between time-of-check and time-of-use operations, an attacker can exploit the timing window to manipulate directory creation operations.

The attack requires local access and specific conditions to be met—SMB1 must be enabled or the share must be accessible via NFS. The exploitation complexity is high due to the precise timing required to win the race condition. If successful, the attacker can create directories outside the intended share boundaries, which could lead to integrity violations on the file system.

Root Cause

The root cause is a Time-of-Check Time-of-Use (TOCTOU) race condition in Samba's file system path handling. When processing directory creation requests, Samba validates the target path against share definitions, but there exists a timing gap between this validation and the actual directory creation operation. A malicious client can exploit this window by manipulating symbolic links or path components during the race window.

Attack Vector

The attack vector requires local access to the system with low privileges. The attacker must have legitimate access to an SMB1 or NFS share and the ability to send carefully timed requests to exploit the race condition. The attack involves:

  1. Establishing a connection to a legitimate Samba share via SMB1 or NFS
  2. Initiating a directory creation request with a crafted path
  3. Racing against the server's path validation to manipulate the target location
  4. Successfully creating a directory outside the exported share boundaries

Due to the complexity of timing the race condition precisely, exploitation requires multiple attempts and favorable conditions. For detailed technical information, refer to the Samba Bugzilla Report #13979.

Detection Methods for CVE-2021-43566

Indicators of Compromise

  • Unexpected directories appearing outside of defined Samba share paths
  • Unusual SMB1 or NFS traffic patterns with rapid repeated requests
  • Log entries showing directory creation failures followed by successes in unusual locations
  • Anomalous file system activity in non-exported areas of the server

Detection Strategies

  • Monitor Samba audit logs for directory creation operations targeting unexpected paths
  • Implement file integrity monitoring (FIM) on the server file system to detect unauthorized directory creation
  • Enable detailed SMB auditing to track all file system operations from connected clients
  • Deploy SentinelOne agents to detect anomalous file system operations and race condition exploitation attempts

Monitoring Recommendations

  • Configure Samba logging to capture all directory creation events with log level = 3 or higher
  • Set up alerts for any directory creation operations outside defined share boundaries
  • Monitor for rapid sequences of similar requests that could indicate race condition exploitation attempts
  • Review NFS and SMB1 connection logs regularly for suspicious client behavior

How to Mitigate CVE-2021-43566

Immediate Actions Required

  • Upgrade Samba to version 4.13.16 or later immediately
  • Disable SMB1 protocol if not required for business operations by setting server min protocol = SMB2 in smb.conf
  • Review and restrict NFS exports to minimize exposure
  • Audit existing share definitions and file system permissions

Patch Information

Samba has released security patches addressing this vulnerability in version 4.13.16 and later. Organizations should update their Samba installations to the latest available version. For detailed patch information and release notes, consult the Samba CVE-2021-43566 Security Advisory.

Additional vendor advisories are available from NetApp Security Advisory for affected NetApp products.

Workarounds

  • Disable SMB1 protocol by adding server min protocol = SMB2 to the [global] section of smb.conf
  • Disable NFS access to Samba shares if not operationally required
  • Implement strict file system permissions to limit the impact of unauthorized directory creation
  • Use chroot or containerization to isolate Samba services from sensitive file system areas
bash
# Configuration example - Disable SMB1 in smb.conf
[global]
    server min protocol = SMB2
    # Additional hardening options
    restrict anonymous = 2
    log level = 3

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

  • Vulnerability Details
  • TypeRace Condition

  • Vendor/TechSamba

  • SeverityLOW

  • CVSS Score2.5

  • EPSS Probability0.36%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-362
  • Technical References
  • NetApp Security Advisory
  • Vendor Resources
  • Samba Bugzilla Report #13979

  • Samba CVE-2021-43566 Details
  • Related CVEs
  • CVE-2021-20251: Samba Race Condition Vulnerability

  • CVE-2025-0620: Samba Authentication Bypass Vulnerability

  • CVE-2024-12087: Samba Rsync Path Traversal Vulnerability

  • CVE-2025-10230: Samba WINS Hook RCE Vulnerability
Default Legacy - Prefooter | 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