Vulnerability · Published Feb 21, 2022 · Assigned by redhat

CVE-2021-44142

High 8.8

In plain English

A high-severity out-of-bounds read in Samba from Samba. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 73.6% (higher than 99.5% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)73.6%top 0.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8libsmbclient-devel4.14.5-9.el8_5ALSA-2022:0332
AlmaLinux:8libwbclient-devel4.14.5-9.el8_5ALSA-2022:0332
AlmaLinux:8samba-devel4.14.5-9.el8_5ALSA-2022:0332
AlmaLinux:8samba-vfs-iouring4.14.5-9.el8_5ALSA-2022:0332
Debian:12samba2:4.16.0+dfsg-2DEBIAN-CVE-2021-44142
Debian:13samba2:4.16.0+dfsg-2DEBIAN-CVE-2021-44142
Debian:14samba2:4.16.0+dfsg-2DEBIAN-CVE-2021-44142
Rocky Linux:8samba0:4.14.5-9.el8_5RLSA-2022:0332

Affected products (as reported)

VendorProductVersions
Samba Samba unspecified – before 4.13.17unspecified – before 4.14.12unspecified – before 4.15.5

Weakness: CWE-125, CWE-787 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References