← Vulnerability feed

Vulnerability record · CVE-2021-44142 · published 21 February 2022

CVE-2021-44142: Samba vfs_fruit heap out-of-bounds read/write enables code execution

Samba · Samba

Samba's vfs_fruit module mishandles extended file attributes (xattr), allowing out-of-bounds heap reads and writes when specially crafted EAs are processed. The flaw affects Samba versions prior to 4.13.17, 4.14.12 and 4.15.5 when vfs_fruit is configured, and it matters because it can lead to remote code execution as smbd, typically root.

8.8 CVSS 3.1 High EPSS 73% · top 0.5% CWE-125 · Out-of-bounds readCWE-787 · Out-of-bounds write
8.8CVSS 3.1 base score, v2 9.0
73%EPSS exploitation probability, 30 days
NoNot in CISA KEV
23Affected product versions listed by NVD
11References
17 Jun 2026Last modified by NVD

Description

The Samba vfs_fruit module uses extended file attributes (EA, xattr) to provide "...enhanced compatibility with Apple SMB clients and interoperability with a Netatalk 3 AFP fileserver." Samba versions prior to 4.13.17, 4.14.12 and 4.15.5 with vfs_fruit configured allow out-of-bounds heap read and write via specially crafted extended file attributes. A remote attacker with write access to extended file attributes can execute arbitrary code with the privileges of smbd, typically root.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityRemote code execution as root with a high EPSS score and public technical detail, though not currently in CISA KEV.

What it is

Samba's vfs_fruit module mishandles extended file attributes (xattr), allowing out-of-bounds heap reads and writes when specially crafted EAs are processed. The flaw affects Samba versions prior to 4.13.17, 4.14.12 and 4.15.5 when vfs_fruit is configured, and it matters because it can lead to remote code execution as smbd, typically root.

Impact

An attacker with write access to extended file attributes can corrupt heap memory and execute arbitrary code with the privileges of smbd, typically root. This gives full control of the Samba server process and potentially the underlying host.

Attack surface

Reached remotely over SMB against a Samba server with vfs_fruit enabled; the CVSS vector indicates network access with low privileges required and no user interaction. The attacker must be able to write extended file attributes, so some level of authenticated write access to a share is needed.

Exploitation

Not listed in CISA KEV, but EPSS is very high (0.73864, 99.45th percentile) and a public ZDI blog details the bug as demonstrated at Pwn2Own Austin, indicating public technical detail and elevated exploitation likelihood. No ransomware group usage is documented in the record.

What to do

  • Patch Samba to 4.13.17, 4.14.12, 4.15.5 or later as soon as possible.
  • If vfs_fruit is not required, disable or remove it from the Samba configuration.
  • Restrict SMB share write access and xattr write permissions to trusted users only.
  • Apply vendor updates for affected distributions and appliances (Debian, Ubuntu, Fedora, Red Hat, Synology).
  • Monitor Samba security advisories and CERT/CC guidance for follow-up fixes.

Detection

  • Review Samba configurations for vfs_fruit usage and inventory unpatched Samba versions.
  • Monitor SMB server logs and file system activity for unusual extended attribute writes or crashes in smbd.
  • Watch for unexpected smbd process behavior, restarts, or child processes indicative of code execution.
  • Use host or network detection to flag exploitation attempts against SMB services on affected hosts.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

23 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-44142 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2021-44142), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.