CVE-2021-44142
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v3.1•HIGH•Score: 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- v2.0•HIGH•Score: 9AV:N/AC:L/Au:S/C:C/I:C/A:C
EPSS Trends
Current EPSS score: 35.70%• Percentile: 97%
Techniques & Countermeasures
- CWE-125•Out-of-bounds Read
The product reads data past the end, or before the beginning, of the intended buffer.
- CWE-787•Out-of-bounds Write
The product writes data past the end, or before the beginning, of the intended buffer.
Affected Systems
- canonical•ubuntu_linux
14.04 | 16.04 | 18.04 | 20.04 | 21.10
- debian•debian_linux
10.0 | 11.0
- fedoraproject•fedora
34 | 35
- redhat•codeready_linux_builder
na
- redhat•enterprise_linux
7.0 | 8.0
- redhat•enterprise_linux_desktop
7.0
- redhat•enterprise_linux_eus
8.2 | 8.4
- redhat•enterprise_linux_for_ibm_z_systems
7.0 | 8.0
- redhat•enterprise_linux_for_ibm_z_systems_eus
8.2 | 8.4
- redhat•enterprise_linux_for_power_big_endian
7.0
- redhat•enterprise_linux_for_power_little_endian
7.0 | 8.0
- redhat•enterprise_linux_for_power_little_endian_eus
8.2 | 8.4
- redhat•enterprise_linux_for_scientific_computing
7.0
- redhat•enterprise_linux_resilient_storage
7.0
- redhat•enterprise_linux_server
7.0 | 8.1
- redhat•enterprise_linux_server_aus
8.2 | 8.4
- redhat•enterprise_linux_server_tus
8.2 | 8.4
- redhat•enterprise_linux_server_update_services_for_sap_solutions
8.1 | 8.2 | 8.4
- redhat•enterprise_linux_workstation
7.0
- redhat•gluster_storage
3.5
- redhat•virtualization_host
4.0
- samba•samba
≥ unspecified, < 4.13.17 | ≥ unspecified, < 4.14.12 | ≥ unspecified, < 4.15.5 | < 4.13.17 | ≥ 4.14.0, < 4.14.12 | ≥ 4.15.0, < 4.15.5
- synology•diskstation_manager
≥ 6.2, < 6.2.4-25556.4
References (6)
- 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
- https://bugzilla.samba.org/show_bug.cgi?id=14914
- https://security.gentoo.org/glsa/202309-06
- https://www.kb.cert.org/vuls/id/119678