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

CVE-2021-44142: Samba vfs_fruit Module RCE Vulnerability

CVE-2021-44142 is a remote code execution vulnerability in Samba's vfs_fruit module that allows attackers to execute arbitrary code with root privileges via crafted extended file attributes. This article covers the technical details, affected versions, impact, and mitigation strategies.

Published: February 25, 2026

CVE-2021-44142 Overview

CVE-2021-44142 is a critical out-of-bounds heap read and write vulnerability in the Samba vfs_fruit module, which provides enhanced compatibility with Apple SMB clients and interoperability with Netatalk 3 AFP fileservers. The vulnerability exists in how Samba handles extended file attributes (EA, xattr) when the vfs_fruit module is configured.

A remote attacker with write access to extended file attributes can exploit this vulnerability to execute arbitrary code with the privileges of the smbd process, which typically runs as root. This makes it an extremely dangerous vulnerability for organizations running Samba file servers with Apple client compatibility enabled.

Critical Impact

Remote attackers with write access to extended file attributes can achieve arbitrary code execution with root privileges on vulnerable Samba servers configured with the vfs_fruit module.

Affected Products

  • Samba versions prior to 4.13.17
  • Samba versions prior to 4.14.12
  • Samba versions prior to 4.15.5
  • Debian Linux 10.0 and 11.0
  • Canonical Ubuntu Linux 14.04 ESM, 16.04 ESM, 18.04 LTS, 20.04 LTS, and 21.10
  • Synology DiskStation Manager
  • Fedora 34 and 35
  • Red Hat Enterprise Linux 7.0 and 8.0 (including various variants)
  • Red Hat Gluster Storage 3.5
  • Red Hat Virtualization Host 4.0

Discovery Timeline

  • 2022-02-21 - CVE-2021-44142 published to NVD
  • 2025-04-23 - Last updated in NVD database

Technical Details for CVE-2021-44142

Vulnerability Analysis

This vulnerability was demonstrated at Pwn2Own Austin, showcasing its severity and exploitability. The flaw resides in the vfs_fruit module, a Samba Virtual File System (VFS) module designed to enable macOS clients to access files stored on Samba servers while preserving Apple-specific file attributes and resource forks.

When processing specially crafted extended file attributes, the vfs_fruit module fails to properly validate the size and boundaries of the data being read and written to heap memory. This allows an attacker to read or write data beyond the allocated buffer boundaries, leading to heap corruption that can be leveraged for arbitrary code execution.

The vulnerability is particularly dangerous because the smbd daemon typically runs with root privileges, meaning successful exploitation grants the attacker complete control over the affected system. Additionally, the attack can be performed remotely over the network by any authenticated user with write access to extended file attributes on a Samba share.

Root Cause

The root cause is insufficient bounds checking when parsing extended file attributes in the vfs_fruit module. Specifically, the module does not properly validate the length fields in extended attribute data structures before performing memory operations. This allows specially crafted extended attributes to trigger both out-of-bounds read (CWE-125) and out-of-bounds write conditions on the heap.

The vulnerable code path is triggered when the vfs_fruit module processes AFP-style extended attributes used for Apple-specific metadata such as Finder information and resource forks.

Attack Vector

The attack requires network access to a Samba server configured with the vfs_fruit module enabled. The attacker must have authenticated access with permission to write extended file attributes on at least one share.

The exploitation process involves crafting malicious extended file attributes that trigger the out-of-bounds heap operations. By carefully controlling the content of these attributes, an attacker can:

  1. Corrupt heap metadata to gain control over memory allocation
  2. Overwrite function pointers or other critical data structures
  3. Redirect execution flow to attacker-controlled code
  4. Achieve arbitrary code execution with the privileges of the smbd process

For detailed technical analysis of the exploitation technique, refer to the ZDI Blog Post on CVE-2021-44142.

Detection Methods for CVE-2021-44142

Indicators of Compromise

  • Unexpected crashes or restarts of the smbd process indicating potential exploitation attempts
  • Anomalous extended file attribute operations in Samba audit logs, particularly on shares accessed by untrusted users
  • Evidence of memory corruption or heap spray patterns in crash dumps
  • Unusual process spawning or network connections originating from the smbd process

Detection Strategies

  • Monitor Samba logs for unusual extended attribute operations, especially those involving AFP-style metadata
  • Implement file integrity monitoring on Samba configuration files and binaries
  • Deploy network intrusion detection rules to identify malformed SMB traffic targeting extended attribute handling
  • Use endpoint detection and response (EDR) solutions to monitor for suspicious process behavior from smbd

Monitoring Recommendations

  • Enable verbose logging for Samba VFS operations to capture extended attribute access patterns
  • Configure alerting on smbd process crashes or unexpected terminations
  • Monitor for privilege escalation attempts originating from Samba-related processes
  • Implement baseline monitoring for extended attribute usage patterns to detect anomalies

How to Mitigate CVE-2021-44142

Immediate Actions Required

  • Upgrade Samba to version 4.13.17, 4.14.12, or 4.15.5 or later immediately
  • If immediate patching is not possible, disable the vfs_fruit VFS module as a temporary mitigation
  • Review Samba share configurations to identify systems with vfs_fruit enabled
  • Restrict write access to extended file attributes to trusted users only

Patch Information

Samba has released patched versions that address this vulnerability. Organizations should upgrade to the following minimum versions:

  • Samba 4.13.x: Upgrade to 4.13.17 or later
  • Samba 4.14.x: Upgrade to 4.14.12 or later
  • Samba 4.15.x: Upgrade to 4.15.5 or later

For detailed patch information, consult the Samba Security CVE-2021-44142 advisory and the Samba Bugzilla Entry #14914.

Linux distribution-specific patches are available from Debian, Ubuntu, Fedora, Red Hat, and other vendors. Refer to the CERT Vulnerability ID #119678 for comprehensive vendor response information.

Workarounds

  • Remove fruit from the vfs objects configuration line in smb.conf to disable the vulnerable module
  • Restrict SMB share access to only trusted authenticated users with a legitimate need
  • Implement network segmentation to limit exposure of Samba servers to untrusted networks
  • Consider disabling extended attribute support if not required for your environment
bash
# Temporary workaround: Disable vfs_fruit module in smb.conf
# Before (vulnerable):
# vfs objects = fruit streams_xattr

# After (mitigated):
vfs objects = streams_xattr

# Then restart Samba service:
systemctl restart smbd

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSamba

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability31.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • Samba Bugzilla Entry #14914

  • CERT Vulnerability ID #119678

  • Gentoo GLSA 202309-06

  • Samba Security CVE-2021-44142

  • ZDI Blog Post on CVE-2021-44142

  • CERT Vulnerability ID #119678
  • Related CVEs
  • CVE-2025-10230: Samba WINS Hook RCE Vulnerability

  • CVE-2022-29154: Samba Rsync RCE Vulnerability

  • CVE-2025-0620: Samba Authentication Bypass Vulnerability

  • CVE-2024-12087: Samba Rsync Path Traversal Vulnerability
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