VDB
GCVE-110-CERTCC-2022-119678
GCVE-110-CERTCC-2022-119678
Advisory Published
### Overview
The Samba [vfs_fruit](https://www.samba.org/samba/docs/current/man-html/vfs_fruit.8.html) module allows out-of-bounds heap read and write via extended file attributes (CVE-2021-44142). This vulnerability allows a remote attacker to execute arbitrary code with root privileges.
### Description
The Samba [`vfs_fruit`](https://www.samba.org/samba/docs/current/man-html/vfs_fruit.8.html) module uses extended file attributes (EA, xattr) to provide "...enhanced compatibility with Apple SMB clients and interoperability with a Netatalk 3 AFP fileserver." Samba with `vfs_fruit` configured allows out-of-bounds heap read and write via specially crafted extended file attributes.
For more information, see the Samba announcement for [CVE-2021-44142](https://www.samba.org/samba/security/CVE-2021-44142.html) and bug [14914](https://bugzilla.samba.org/show_bug.cgi?id=14914). Also available for reference is a detailed blog post from [ZDI](https://www.zerodayinitiative.com/blog/2022/2/1/cve-2021-44142-details-on-a-samba-code-execution-bug-demonstrated-at-pwn2own-austin).
### Impact
A remote attacker with write access to extended file attributes can execute arbitrary code with the privileges of `smbd`, typically root.
From the Samba annoucement for [CVE-2021-44142](https://www.samba.org/samba/security/CVE-2021-44142.html):
> 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.
### Solution
#### Apply an update
Samba has [released](https://www.samba.org/samba/security/CVE-2021-44142.html) versions 4.13.17, 4.14.12, and 4.15.5.
#### Disable vfs_fruit
As a workaround, remove 'fruit' from 'vfs objects' lines in Samba configuration files (e.g., `smb.conf`).
### Acknowledgements
Thanks to Orange Tsai of DEVCORE for researching and reporting this vulnerability. Thanks also to Samba, ZDI, and Western Digital for coordination efforts.
This document was written by James Stanley and Art Manion.
References
Browse GCVE Records
74,496 records in the GCVE database · Updated July 23, 2026
No matching records found.
Explore Further
Investigate this vulnerability in the interactive console or download the raw GCVE record.