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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2022-02-2115:15CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-11-04 03:37 UTCBlock 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| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.15 | ≥ 4.15.0, < 4.15.5 | 4.15.5 | NVD |
| 4.14 | ≥ 4.14.0, < 4.14.12 | 4.14.12 | NVD |
| 4.13 | < 4.13.17 | 4.13.17 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 14.4 | = 14.04 | no fix published | NVD |
| 16.4 | = 16.04 | no fix published | NVD |
| 18.4 | = 18.04 | no fix published | NVD |
| 20.4 | = 20.04 | no fix published | NVD |
| 21.10 | = 21.10 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.1 | = 8.1 | no fix published | NVD |
| 8.2 | = 8.2 | no fix published | NVD |
| 8.4 | = 8.4 | no fix published | NVD |
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.
- SambaAffected
- < 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
samba: Out-of-bounds heap read/write vulnerability in VFS module vfs_fruit allows code execution
Red Hat Security Advisory: samba security update
Red Hat Security Advisory: samba security update
Red Hat Security Advisory: samba security update
Red Hat Security Advisory: samba security update
Red Hat Security Advisory: samba security and bug fix update
4 more advisories
Fix
- Update Samba to 4.15.5 · 4.14.12 · 4.13.17
- 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.
- 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…
- 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
- Proof-of-concept repositories
- 5 repositories, unverifiedhrsman/Samba-CVE-2021-44142horizon3ai/CVE-2021-44142gudyrmik/CVE-2021-44142Nxvh1337/CVE-2021-44142-vulnerable-labneyugNat/Samba_Fruit_Vuln PoC-in-GitHub
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2025-04-23
- OpenCVESSVC decisionnone—
- CISA-ADPCVSS 3.18.82025-04-23
- NVDCVSS 3.18.8read 2026-10-23
- NVDCVSS 2.09read 2026-10-23
- CNAweakness (CWE)CWE-125, CWE-787known since 2026-10-23
- NVDweakness (CWE)CWE-125, CWE-787read 2026-10-23
- FIRST EPSSEPSS score73.6 %read 2026-11-03
- PoC-in-GitHubproof of concept5read 2026-11-03
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-37008same flawAzure Linux · MIT
- AZL-8611same flawAzure Linux · MIT
- EUVD-2021-30995same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-mpfw-9wp5-hfffsame flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2022:0332advisory covering several CVEsAlmaLinux · MIT
- DSA-5071-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2022-0054advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2022-1524advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2022:0283-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11807-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2022:0328advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0329advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0330advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0331advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0332advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0457advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0458advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0663advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0664advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:0332advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2022:0251-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0252-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0271-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0283-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0284-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0287-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0323-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0361-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5260-1advisory covering several CVEsUbuntu
- USN-5260-2advisory covering several CVEsUbuntu
- USN-5260-3advisory covering several CVEsUbuntu
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?
Is CVE-2021-44142 actively exploited?
What is the CVSS score for CVE-2021-44142?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-mpfw-9wp5-hfff
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0