CVE-2021-44142: High severity Samba Samba vulnerability

Published Jan 26, 2022
·
Updated

As per samba upstream advisory:

All versions of Samba prior to 4.13.17 are vulnerable to an out-of-bounds heap read write vulnerability that allows remote attackers to execute arbitrary code as root on affected Samba installations that use the VFS module vfsfruit.

The specific flaw exists within the parsing of EA metadata when opening files in smbd. Access as a user that has write access to a file's extended attributes is required to exploit this vulnerability. Note that this could be a guest or unauthenticated user if such users are allowed write access to file extended attributes.

The problem in vfsfruit exists in the default configuration of the fruit VFS module using fruit:metadata=netatalk or fruit:resource=file. If both options are set to different settings than the default values, the system is not affected by the security issue.

Other sources

The Samba vfsfruit 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 vfsfruit 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 Software

49 affected componentsFixes available
Samba Samba<4.13.17
Samba Samba>=4.14.0<4.14.12
Samba Samba>=4.15.0<4.15.5
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
Canonical Ubuntu Linux=21.10
Synology DiskStation Manager>=6.2<6.2.4-25556.4
Fedoraproject Fedora=34
Fedoraproject Fedora=35
redhat Codeready Linux Builder
redhat Gluster Storage=3.5
redhat Virtualization Host=4.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Eus=8.2
redhat Enterprise Linux Eus=8.4
redhat Enterprise Linux For Ibm Z Systems=7.0
redhat Enterprise Linux For Ibm Z Systems=8.0
redhat Enterprise Linux For Ibm Z Systems Eus=8.2
redhat Enterprise Linux For Ibm Z Systems Eus=8.4
redhat Enterprise Linux For Power Big Endian=7.0
redhat Enterprise Linux For Power Little Endian=7.0
redhat Enterprise Linux For Power Little Endian=8.0
redhat Enterprise Linux For Power Little Endian Eus=8.2
redhat Enterprise Linux For Power Little Endian Eus=8.4
redhat Enterprise Linux For Scientific Computing=7.0
redhat Enterprise Linux Resilient Storage=7.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server=8.1
redhat Enterprise Linux Server Aus=8.2
redhat Enterprise Linux Server Aus=8.4
redhat Enterprise Linux Server Tus=8.2
redhat Enterprise Linux Server Tus=8.4
redhat Enterprise Linux Server Update Services For Sap Solutions=8.1
redhat Enterprise Linux Server Update Services For Sap Solutions=8.2
redhat Enterprise Linux Server Update Services For Sap Solutions=8.4
redhat Enterprise Linux Workstation=7.0
alpine/samba<4.13.17-r0
4.13.17-r0
alpine/samba>=4.14.0<4.14.12-r0
4.14.12-r0
alpine/samba>=4.15.0<4.15.12-r0
4.15.12-r0
alpine/samba>=4.15.0<4.15.12-r0
4.15.12-r0
redhat/samba<4.13.17
4.13.17
redhat/samba<4.14.12
4.14.12
redhat/samba<4.15.4
4.15.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/samba to a version that resolves this vulnerability.

    Fixed in 4.13.17-r0
  2. Upgrade

    Upgrade alpine/samba to a version that resolves this vulnerability.

    Fixed in 4.14.12-r0
  3. Upgrade

    Upgrade alpine/samba to a version that resolves this vulnerability.

    Fixed in 4.15.12-r0
  4. Upgrade

    Upgrade redhat/samba to a version that resolves this vulnerability.

    Fixed in 4.13.17
  5. Upgrade

    Upgrade redhat/samba to a version that resolves this vulnerability.

    Fixed in 4.14.12
  6. Upgrade

    Upgrade redhat/samba to a version that resolves this vulnerability.

    Fixed in 4.15.4
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.13.17
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.14.12
  9. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.15.5
  10. Configuration

    Set both fruit:metadata and fruit:resource to values different from their default values.

    Samba vfs_fruit fruit:metadata and fruit:resource

Event History

Jan 26, 2022
Data Sourced
via Red Hat·10:16 AM
DescriptionSeverityAffected Software
Feb 21, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
CVE Published
via MITRE·02:30 PM
Data Sourced
03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·03:15 PM
DescriptionSeverityAffected Software
Mar 29, 2022
Exploit Published
via GitHub·05:32 PM
Sep 17, 2023
Event
09:15 AM
Apr 23, 2025
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Updated
via NVD·07:15 PM
SeverityAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203