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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libsmbclient-devel | 4.14.5-9.el8_5 | ALSA-2022:0332 |
| AlmaLinux:8 | libwbclient-devel | 4.14.5-9.el8_5 | ALSA-2022:0332 |
| AlmaLinux:8 | samba-devel | 4.14.5-9.el8_5 | ALSA-2022:0332 |
| AlmaLinux:8 | samba-vfs-iouring | 4.14.5-9.el8_5 | ALSA-2022:0332 |
| Debian:12 | samba | 2:4.16.0+dfsg-2 | DEBIAN-CVE-2021-44142 |
| Debian:13 | samba | 2:4.16.0+dfsg-2 | DEBIAN-CVE-2021-44142 |
| Debian:14 | samba | 2:4.16.0+dfsg-2 | DEBIAN-CVE-2021-44142 |
| Rocky Linux:8 | samba | 0:4.14.5-9.el8_5 | RLSA-2022:0332 |
Affected products (as reported)
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
- 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 third-party-advisory
- https://bugzilla.samba.org/show_bug.cgi?id=14914
- GLSA-202309-06 vendor-advisory
- https://www.kb.cert.org/vuls/id/119678