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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Samba | Samba | unspecified – < 4.13.17, unspecified – < 4.14.12, unspecified – < 4.15.5 | 4.13.17 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | samba | 2:4.16.0+dfsg-2 | — |
| Debian 13 | samba | 2:4.16.0+dfsg-2 | — |
| Debian 12 | samba | 2:4.16.0+dfsg-2 | — |
| Debian 11 | samba | 2:4.13.13+dfsg-1~deb11u3 | DSA-5071-1 |
| Debian 10 | samba | 2:4.9.5+dfsg-5+deb10u3 | DSA-5071-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | samba | 2:4.13.17~dfsg-0ubuntu0.21.04.1 | USN-5260-1 |
| Ubuntu 18.04 LTS | samba | 2:4.7.6+dfsg~ubuntu-0ubuntu2.28 | USN-5260-2 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | samba | 2:4.3.11+dfsg-0ubuntu0.16.04.34+esm1 | USN-5260-3 |
| Ubuntu Pro 14.04 LTS | samba | 2:4.3.11+dfsg-0ubuntu0.14.04.20+esm12 | USN-5260-3 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | ctdb +24 | 4.14.5-9.el8_5 | RHSA-2022:0332 |
| RHEL 7 | ctdb +26 | 4.10.16-18.el7_9 | RHSA-2022:0328 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.4 EUS | ctdb +24 | 4.13.3-9.el8_4 | RHSA-2022:0331 |
| RHEL 8.2 EUS | ctdb +22 | 4.11.2-19.el8_2 | RHSA-2022:0330 |
| RHEL 8.1 E4S | ctdb +20 | 4.10.4-103.el8_1 | RHSA-2022:0329 |
| RHEL 7.7 TUS | samba +24 | 4.9.1-12.el7_7 | RHSA-2022:0664 |
| RHEL 7.7 E4S | samba +24 | 4.9.1-12.el7_7 | RHSA-2022:0664 |
| RHEL 7.7 AUS | samba +24 | 4.9.1-12.el7_7 | RHSA-2022:0664 |
| RHEL 7.6 TUS | samba +24 | 4.8.3-7.el7_6 | RHSA-2022:0663 |
| RHEL 7.6 E4S | samba +23 | 4.8.3-7.el7_6 | RHSA-2022:0663 |
| RHEL 7.6 AUS | samba +24 | 4.8.3-7.el7_6 | RHSA-2022:0663 |
| Red Hat Gluster Storage 3 | ctdb +20 | 4.11.6-116.el7rhgs | RHSA-2022:0458, RHSA-2022:0457 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | samba-devel +3 | 4.14.5-9.el8_5 | ALSA-2022:0332 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | samba | 4.14.5-9.el8_5 | RLSA-2022:0332 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | apparmor | 2.13.6-150300.3.11.2 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | krb5 | 1.19.2-150300.8.3.2 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | ldb | 2.4.1-150300.3.10.1 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | libapparmor | 2.13.6-150300.3.11.1 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | samba | 4.15.4+git.324.8332acf1a63-150300.3.25.3 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | sssd | 1.16.1-150300.23.17.3 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | talloc | 2.3.3-150300.3.3.2 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | talloc-man | 2.3.3-150300.3.3.1 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | tdb | 1.4.4-150300.3.3.2 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | tevent | 0.11.0-150300.3.3.2 | SUSE-SU-2022:0283-1 |
| SLES 15 SP3 | tevent-man | 0.11.0-150300.3.3.1 | SUSE-SU-2022:0283-1 |
| SLES 15 SP2 | samba | 4.11.14+git.319.91d693db37c-4.35.1 | SUSE-SU-2022:0287-1 |
| SLES 15 SP1 | samba | 4.9.5+git.483.212a7ebca6b-3.64.1 | SUSE-SU-2022:0284-1 |
| SLES 15 | samba | 4.7.11+git.365.5e9f8cc5fa0-4.63.1 | SUSE-SU-2022:0251-1 |
| SLES 12 SP5 | apparmor | 2.8.2-56.6.3 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | ca-certificates | 1_201403302107-15.3.3 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | gnutls | 3.4.17-8.4.1 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | libnettle | 3.1-21.3.2 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | p11-kit | 0.23.2-8.3.2 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | samba | 4.15.4+git.324.8332acf1a63-3.54.1 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | sssd | 1.16.1-7.28.9 | SUSE-SU-2022:0323-1 |
| SLES 12 SP5 | yast2-samba-client | 3.1.23-3.3.1 | SUSE-SU-2022:0323-1 |
Show 25 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP4 | samba | 4.6.16+git.320.a2d80a7efef-3.70.1 | SUSE-SU-2022:0271-1 |
| SLES 12 SP3 | samba | 4.6.16+git.320.a2d80a7efef-3.70.1 | SUSE-SU-2022:0271-1 |
| SLES 12 SP2 | samba | 4.4.2-38.48.1 | SUSE-SU-2022:0252-1 |
| SLES 2 | samba | 4.15.4+git.324.8332acf1a63-150300.3.25.3 | SUSE-SU-2022:0283-1 |
| SLES for SAP 15 SP2 | samba | 4.11.14+git.319.91d693db37c-4.35.1 | SUSE-SU-2022:0287-1 |
| SLES for SAP 15 SP1 | samba | 4.9.5+git.483.212a7ebca6b-3.64.1 | SUSE-SU-2022:0284-1 |
| SLES for SAP 15 | samba | 4.7.11+git.365.5e9f8cc5fa0-4.63.1 | SUSE-SU-2022:0251-1 |
| SLES for SAP 12 SP5 | apparmor | 2.8.2-56.6.3 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | ca-certificates | 1_201403302107-15.3.3 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | gnutls | 3.4.17-8.4.1 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | libnettle | 3.1-21.3.2 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | p11-kit | 0.23.2-8.3.2 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | samba | 4.15.4+git.324.8332acf1a63-3.54.1 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | sssd | 1.16.1-7.28.9 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP5 | yast2-samba-client | 3.1.23-3.3.1 | SUSE-SU-2022:0323-1 |
| SLES for SAP 12 SP4 | samba | 4.6.16+git.320.a2d80a7efef-3.70.1 | SUSE-SU-2022:0271-1 |
| SLES for SAP 12 SP3 | samba | 4.6.16+git.320.a2d80a7efef-3.70.1 | SUSE-SU-2022:0271-1 |
| SLE Real Time 15 SP2 | samba | 4.11.14+git.319.91d693db37c-4.35.1 | SUSE-SU-2022:0287-1 |
| SLE Micro 5.1 | apparmor | 2.13.6-150300.3.11.2 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | krb5 | 1.19.2-150300.8.3.2 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | ldb | 2.4.1-150300.3.10.1 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | libapparmor | 2.13.6-150300.3.11.1 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | sssd | 1.16.1-150300.23.17.3 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | talloc | 2.3.3-150300.3.3.2 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | tdb | 1.4.4-150300.3.3.2 | SUSE-SU-2022:0283-1 |
| SLE Micro 5.1 | tevent | 0.11.0-150300.3.3.2 | SUSE-SU-2022:0283-1 |
| SLE HPC 15 SP2 | samba | 4.11.14+git.319.91d693db37c-4.35.1 | SUSE-SU-2022:0287-1 |
| SLE HPC 15 SP1 | samba | 4.9.5+git.483.212a7ebca6b-3.64.1 | SUSE-SU-2022:0284-1 |
| SLE HPC 15 | samba | 4.7.11+git.365.5e9f8cc5fa0-4.63.1 | SUSE-SU-2022:0251-1 |
| SUSE OpenStack Cloud Crowbar 9 | samba | 4.6.16+git.320.a2d80a7efef-3.70.1 | SUSE-SU-2022:0271-1 |
| SUSE OpenStack Cloud Crowbar 8 | samba | 4.6.16+git.320.a2d80a7efef-3.70.1 | SUSE-SU-2022:0271-1 |
| SUSE OpenStack Cloud 9 | samba | 4.6.16+git.320.a2d80a7efef-3.70.1 | SUSE-SU-2022:0271-1 |
| SUSE OpenStack Cloud 8 | samba | 4.6.16+git.320.a2d80a7efef-3.70.1 | SUSE-SU-2022:0271-1 |
| SUSE Manager Server 4.1 | samba | 4.11.14+git.319.91d693db37c-4.35.1 | SUSE-SU-2022:0287-1 |
| SUSE Manager Retail Branch Server 4.1 | samba | 4.11.14+git.319.91d693db37c-4.35.1 | SUSE-SU-2022:0287-1 |
| SUSE Manager Proxy 4.1 | samba | 4.11.14+git.319.91d693db37c-4.35.1 | SUSE-SU-2022:0287-1 |
| SUSE HPE Helion OpenStack 8 | samba | 4.6.16+git.320.a2d80a7efef-3.70.1 | SUSE-SU-2022:0271-1 |
| SUSE Enterprise Storage 7 | ldb | 2.2.2-4.6.1 | SUSE-SU-2022:0361-1 |
| SUSE Enterprise Storage 7 | samba | 4.11.14+git.319.91d693db37c-4.35.1 | SUSE-SU-2022:0361-1, SUSE-SU-2022:0287-1 |
| SUSE Enterprise Storage 6 | samba | 4.9.5+git.483.212a7ebca6b-3.64.1 | SUSE-SU-2022:0284-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | samba | 4.15.5+git.328.f1f29505d84-1.1 | openSUSE-SU-2024:11807-1 |
| openSUSE Leap 15.3 | apparmor | 2.13.6-150300.3.11.2 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | krb5 +1 | 1.19.2-150300.8.3.2 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | ldb | 2.4.1-150300.3.10.1 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | libapparmor | 2.13.6-150300.3.11.1 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | samba | 4.15.4+git.324.8332acf1a63-150300.3.25.3 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | sssd | 1.16.1-150300.23.17.3 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | talloc | 2.3.3-150300.3.3.2 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | talloc-man | 2.3.3-150300.3.3.1 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | tdb | 1.4.4-150300.3.3.2 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | tevent | 0.11.0-150300.3.3.2 | openSUSE-SU-2022:0283-1 |
| openSUSE Leap 15.3 | tevent-man | 0.11.0-150300.3.3.1 | openSUSE-SU-2022:0283-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.16 | samba | 4.15.12-r0 | — |
| Alpine v3.15 | samba | 4.15.12-r0 | — |
| Alpine v3.14 | samba | 4.14.12-r0 | — |
| Alpine v3.13 | samba | 4.13.17-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | ctdb +26 | 4.10.16-18.amzn2.0.1 | ALAS2-2022-1746 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | samba | 4.18.3-1 | — |
| Azure Linux 2 (CBL-Mariner) | samba | No fix yet | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | ctdb +24 | 4.14.5-9.el8_5 | ELSA-2022-0332 |
| Oracle Linux 7 | ctdb +26 | 4.10.16-18.el7_9 | ELSA-2022-0328 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 5 repositories
-
horizon3ai/CVE-2021-44142 ★ 10 · Mar 29, 2022
-
Nxvh1337/CVE-2021-44142-vulnerable-lab ★ 3 · Oct 27, 2025
CVE-2021-44142 vulnerable lab
-
gudyrmik/CVE-2021-44142 ★ 1 · Apr 22, 2022
-
neyugNat/Samba_Fruit_Vuln ★ 0 · Oct 31, 2026
CVE-2021-44142 — Samba vfs_fruit heap OOB read/write lab demo (educational)
-
hrsman/Samba-CVE-2021-44142 ★ 0 · Mar 29, 2022
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 32
- ALSA-2022:0332 Critical: samba security and bug fix update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2022-0432 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 11, 2026
- WID-SEC-2022-0302 Xerox FreeFlow Print Server: Mehrere Schwachstellen ermöglichen Ausführen von beliebigem Programmcode mit Administratorrechten BSI CERT-Bund (WID) · Oct 11, 2026
- RHSA-2022:0663 Red Hat Security Advisory: samba security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2022:0664 Red Hat Security Advisory: samba security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2022:0458 Red Hat Security Advisory: samba security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2022:0457 Red Hat Security Advisory: samba security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2022:0331 Red Hat Security Advisory: samba security and bug fix update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2022:0332 Red Hat Security Advisory: samba security and bug fix update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2022:0330 Red Hat Security Advisory: samba security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2022:0328 Red Hat Security Advisory: samba security and bug fix update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2022:0329 Red Hat Security Advisory: samba security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- USN-5260-3 samba vulnerability Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-5260-1 samba vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- USN-5260-2 samba vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-5071-1 samba - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2022:0332 Critical: samba security and bug fix update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2022:0271-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:0283-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0287-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0251-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0252-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0283-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0323-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11807-1 ctdb-4.15.5+git.328.f1f29505d84-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0284-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0361-1 Security update for ldb, samba SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-1335 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 6, 2025
- WID-SEC-2022-0466 Samba: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 21, 2023
- ALAS2-2022-1746 Critical: samba security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Mar 7, 2022
- ELSA-2022-0328 Critical: samba security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Feb 1, 2022
- ELSA-2022-0332 Critical: samba security and bug fix update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Feb 1, 2022
References
- https://www.samba.org/samba/security/CVE-2021-44142.html
- https://www.zerodayinitiative.com/blog/2022/2/1/cve-2021-44142-details-on-a-samba-code-execution-bug-demonstrated-at-pwn2own-austin
- https://kb.cert.org/vuls/id/119678 third-party-advisory
- https://bugzilla.samba.org/show_bug.cgi?id=14914
- GLSA-202309-06 vendor-advisory