Skip to content
OpenAdvisories
High · 8.8 Public exploit CVE-2021-44142 EUVD-2021-30995GHSA-mpfw-9wp5-hfff

The Samba vfs_fruit module uses extended file attributes (EA, xattr) to provide "...enhanced compatibility with Apple SMB clients and inter…

Published Feb 21, 2022 · Updated Apr 23, 2025 · Assigned by redhat

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 samba-devel +3 4.14.5-9.el8_5 ALSA-2022:0332

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 samba 4.14.5-9.el8_5 RLSA-2022:0332
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Amazon Linux 2 ctdb +26 4.10.16-18.amzn2.0.1 ALAS2-2022-1746

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 samba 4.18.3-1 —
Azure Linux 2 (CBL-Mariner) samba No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 5 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 32

References