Skip to main content
Public proof of conceptFix available

CVE-2021-44142

A public proof of concept exists; no exploitation attested.

  • Published2022-02-21
  • Fixed in4.15.5 · 4.14.12 · 4.13.17
  • WeaknessCWE-125 · CWE-787

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-02-2115:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-11-04 03:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2021-44142?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2021-44142?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD
Samba
BranchAffectedFixed in
4.15≥ 4.15.0, < 4.15.54.15.5
4.14≥ 4.14.0, < 4.14.124.14.12
4.13< 4.13.174.13.17
Canonical ubuntu linux
BranchAffectedFixed in
14.4= 14.04no fix published
16.4= 16.04no fix published
18.4= 18.04no fix published
20.4= 20.04no fix published
21.10= 21.10no fix published
Redhat enterprise linux server update services for sap solutions
BranchAffectedFixed in
8.1= 8.1no fix published
8.2= 8.2no fix published
8.4= 8.4no fix published

20 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Samba
    Affected
    • < 4.13.17fixed in 4.13.17custom
    • < 4.14.12fixed in 4.14.12custom
    • < 4.15.5fixed in 4.15.5custom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-09-17

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apparmorSUSE:Linux Enterprise Software Development Kit 12 SP5all versions · fixed in 2.8.2-56.6.3
  • apparmorSUSE:Linux Enterprise Server for SAP Applications 12 SP5all versions · fixed in 2.8.2-56.6.3
  • apparmorSUSE:Linux Enterprise Server 12 SP5all versions · fixed in 2.8.2-56.6.3
  • apparmorSUSE:Linux Enterprise Module for Server Applications 15 SP3all versions · fixed in 2.13.6-150300.3.11.2
  • apparmorSUSE:Linux Enterprise Module for Basesystem 15 SP3all versions · fixed in 2.13.6-150300.3.11.2
  • apparmorSUSE:Linux Enterprise Micro 5.1all versions · fixed in 2.13.6-150300.3.11.2
  • apparmoropenSUSE:Leap 15.3all versions · fixed in 2.13.6-150300.3.11.2
  • ca-certificatesSUSE:Linux Enterprise Server for SAP Applications 12 SP5all versions · fixed in 1_201403302107-15.3.3

133 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-44142 Red Hat Product Security1,694 products fixed

    samba: Out-of-bounds heap read/write vulnerability in VFS module vfs_fruit allows code execution

  • RHSA-2022:0664 Red Hat Product Security144 products fixed

    Red Hat Security Advisory: samba security update

  • RHSA-2022:0663 Red Hat Product Security139 products fixed

    Red Hat Security Advisory: samba security update

  • RHSA-2022:0458 Red Hat Product Security43 products fixed

    Red Hat Security Advisory: samba security update

  • RHSA-2022:0457 Red Hat Product Security23 products fixed

    Red Hat Security Advisory: samba security update

  • RHSA-2022:0328 Red Hat Product Security251 products fixed

    Red Hat Security Advisory: samba security and bug fix update

4 more advisories

Full record on NVD

Fix

  1. Update Samba to 4.15.5 · 4.14.12 · 4.13.17
  2. Vendor fix Red Hat Product Security RHSA-2022:0664 · 144 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing this update, the smb service will be restarted automatically.
  3. Vendor fix Red Hat Product Security RHSA-2022:0458 · 43 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing this update, the smb service will be restarted automatically. For details on migrating Samba/CTDB configuration files, refer to: h…
  4. Workaround from the vendor Red Hat Product Security RHSA-2022:0664 · 144 productsAs a workaround remove the "fruit" VFS module from the list of configured VFS objects in any "vfs objects" line in the Samba configuration smb.conf. Note that changing the VFS module settings fruit:metadata or fruit:resource to use the unaffected setting causes all stored information to be inacces…

Detection

read 2026-11-03 22:42 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2022-02-21
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-mpfw-9wp5-hfff

Frequently asked questions

What is CVE-2021-44142?

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.

Is CVE-2021-44142 actively exploited?

Active exploitation of CVE-2021-44142 has not been confirmed. Its EPSS score was 73.6% on 2026-11-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-44142?

CVE-2021-44142 has a CVSS v3 base score of 8.8 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running samba? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record