cve.bz

CVE-2021-44142 Out-of-bounds Read

8.8 highEPSS 74%

High (8.8). EPSS 74% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
74% (unchanged from 74% a week ago; 74% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-125 Out-of-bounds Read
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-44142 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-44142?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-44142?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-44142 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Sambabefore 4.13.17
Sambabefore 4.14.12
Sambabefore 4.15.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10samba2:4.9.5+dfsg-5+deb10u3DSA-5071-1
Debian11samba2:4.13.13+dfsg-1~deb11u3DSA-5071-1
Debian12, 13, 14samba2:4.16.0+dfsg-2DEBIAN-CVE-2021-44142
Ubuntu18.04:LTSsamba2:4.7.6+dfsg~ubuntu-0ubuntu2.28UBUNTU-CVE-2021-44142 USN-5260-2
Ubuntu20.04:LTSsamba2:4.13.17~dfsg-0ubuntu0.21.04.1UBUNTU-CVE-2021-44142 USN-5260-1
UbuntuPro:14.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.14.04.20+esm12UBUNTU-CVE-2021-44142 USN-5260-3
UbuntuPro:16.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.16.04.34+esm1UBUNTU-CVE-2021-44142 USN-5260-3
Red Hatenterprise_linux:7::client, enterprise_linux:7::workstationsamba, samba-dc, samba-libs and 23 more0:4.10.16-18.el7_9RHSA-2022:0328
Red Hatenterprise_linux:7::computenodesamba, samba-dc, samba-pidl and 12 more0:4.10.16-18.el7_9RHSA-2022:0328
Red Hatenterprise_linux:7::serverctdb, samba, samba-dc and 25 more0:4.10.16-18.el7_9RHSA-2022:0328
Red Hatenterprise_linux:8::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 18 more0:4.14.5-9.el8_5RHSA-2022:0332
Red Hatenterprise_linux:8::baseosctdb, samba, samba-libs and 38 more0:4.14.5-9.el8_5RHSA-2022:0332
Red Hatenterprise_linux:8::crbsamba-devel, ctdb-debuginfo, samba-debuginfo and 20 more0:4.14.5-9.el8_5RHSA-2022:0332
Red Hatrhel_aus:7.6::server, rhel_tus:7.6::serversamba, samba-dc, samba-libs and 23 more0:4.8.3-7.el7_6RHSA-2022:0663
Red Hatrhel_aus:7.7::server, rhel_e4s:7.7::server, rhel_tus:7.7::serversamba, samba-dc, samba-libs and 23 more0:4.9.1-12.el7_7RHSA-2022:0664
Red Hatrhel_e4s:7.6::serversamba, samba-dc, samba-libs and 22 more0:4.8.3-7.el7_6RHSA-2022:0663
Red Hatrhel_e4s:8.1::appstreamsamba-test, ctdb-debuginfo, samba-debuginfo and 18 more0:4.10.4-103.el8_1RHSA-2022:0329
Red Hatrhel_e4s:8.1::baseosctdb, samba, ctdb-tests and 37 more0:4.10.4-103.el8_1RHSA-2022:0329
Red Hatrhel_eus:8.2::baseosctdb, samba, ctdb-tests and 38 more0:4.11.2-19.el8_2RHSA-2022:0330
5 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 4 moresamba4.9.5+git.483.212a7ebca6b-3.64.1SUSE-SU-2022:0284-1
SUSEEnterprise Storage 7ldb2.2.2-4.6.1SUSE-SU-2022:0361-1
SUSEEnterprise Storage 7samba4.13.13+git.545.5897c2d94f3-3.12.1SUSE-SU-2022:0361-1
SUSEEnterprise Storage 7, Linux Enterprise High Availability Extension 15 SP2, Linux Enterprise High Performance Computing 15 SP2-ESPOS and 8 moresamba4.11.14+git.319.91d693db37c-4.35.1SUSE-SU-2022:0287-1
SUSEHPE Helion OpenStack 8, Linux Enterprise High Availability Extension 12 SP3, Linux Enterprise High Availability Extension 12 SP4 and 9 moresamba4.6.16+git.320.a2d80a7efef-3.70.1SUSE-SU-2022:0271-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 1 moresamba4.15.4+git.324.8332acf1a63-3.54.1SUSE-SU-2022:0323-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS and 2 moresamba4.7.11+git.365.5e9f8cc5fa0-4.63.1SUSE-SU-2022:0251-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Python 2 15 SP3samba4.15.4+git.324.8332acf1a63-150300.3.25.3SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3ldb2.4.1-150300.3.10.1SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3libapparmor2.13.6-150300.3.11.1SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3sssd1.16.1-150300.23.17.3SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3talloc2.3.3-150300.3.3.2SUSE-SU-2022:0283-1
14 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3apparmor2.13.6-150300.3.11.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3krb5, krb5-mini1.19.2-150300.8.3.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3ldb2.4.1-150300.3.10.1openSUSE-SU-2022:0283-1
openSUSELeap 15.3libapparmor2.13.6-150300.3.11.1openSUSE-SU-2022:0283-1
openSUSELeap 15.3samba4.15.4+git.324.8332acf1a63-150300.3.25.3openSUSE-SU-2022:0283-1
openSUSELeap 15.3sssd1.16.1-150300.23.17.3openSUSE-SU-2022:0283-1
openSUSELeap 15.3talloc2.3.3-150300.3.3.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3talloc-man2.3.3-150300.3.3.1openSUSE-SU-2022:0283-1
openSUSELeap 15.3tdb1.4.4-150300.3.3.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3tevent0.11.0-150300.3.3.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3tevent-man0.11.0-150300.3.3.1openSUSE-SU-2022:0283-1
openSUSETumbleweedsamba4.15.5+git.328.f1f29505d84-1.1openSUSE-SU-2024:11807-1
AlmaLinux8samba-devel, libwbclient-devel, samba-vfs-iouring and 1 more4.14.5-9.el8_5ALSA-2022:0332
Rocky Linux8samba0:4.14.5-9.el8_5RLSA-2022:0332
Alpinev3.13samba4.13.17-r0ALPINE-CVE-2021-44142
Alpinev3.14samba4.14.12-r0ALPINE-CVE-2021-44142
Alpinev3.15, v3.16samba4.15.12-r0ALPINE-CVE-2021-44142
Azure Linux2sambano fix listedAZL-8611
Azure Linux3samba4.18.3-1AZL-37008

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Critical.

Red Hat's mitigation

As 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 inaccessible and will make it appear to macOS clients as if the information is lost.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7samba-0:4.10.16-18.el7_9Fixed 2022-01-31RHSA-2022:0328
Red Hat Enterprise Linux 7.6 Advanced Update Supportsamba-0:4.8.3-7.el7_6Fixed 2022-02-23RHSA-2022:0663
Red Hat Enterprise Linux 7.6 Telco Extended Update Supportsamba-0:4.8.3-7.el7_6Fixed 2022-02-23RHSA-2022:0663
Red Hat Enterprise Linux 7.6 Update Services for SAP Solutionssamba-0:4.8.3-7.el7_6Fixed 2022-02-23RHSA-2022:0663
Red Hat Enterprise Linux 7.7 Advanced Update Supportsamba-0:4.9.1-12.el7_7Fixed 2022-02-23RHSA-2022:0664
Red Hat Enterprise Linux 7.7 Telco Extended Update Supportsamba-0:4.9.1-12.el7_7Fixed 2022-02-23RHSA-2022:0664
Red Hat Enterprise Linux 7.7 Update Services for SAP Solutionssamba-0:4.9.1-12.el7_7Fixed 2022-02-23RHSA-2022:0664
Red Hat Enterprise Linux 8samba-0:4.14.5-9.el8_5Fixed 2022-01-31RHSA-2022:0332
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionssamba-0:4.10.4-103.el8_1Fixed 2022-01-31RHSA-2022:0329
Red Hat Enterprise Linux 8.2 Extended Update Supportsamba-0:4.11.2-19.el8_2Fixed 2022-01-31RHSA-2022:0330
Red Hat Enterprise Linux 8.4 Extended Update Supportsamba-0:4.13.3-9.el8_4Fixed 2022-01-31RHSA-2022:0331
Red Hat Gluster Storage 3.5 for RHEL 7samba-0:4.11.6-116.el7rhgsFixed 2022-02-07RHSA-2022:0457
Red Hat Gluster Storage 3.5 for RHEL 8samba-0:4.14.5-206.el8rhgsFixed 2022-02-07RHSA-2022:0458
Red Hat Enterprise Linux 6sambaNot affected
Red Hat Enterprise Linux 6samba4Not affected
Red Hat Enterprise Linux 9sambaNot affected
Red Hat Virtualization 4redhat-virtualization-hostNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-44142.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON