CVE-2021-44142 is an out-of-bounds heap read and write in Samba's vfs_fruit module that lets a user with write access to a file's extended attributes run code as root. It affects Samba before 4.13.17, 4.14.12 and 4.15.5 when vfs_fruit is configured, and NVD scores it 8.8; Synology fixed DSM 6.2 in 6.2.4-25556-4.
Vulnerability summary
CVSS base score
8.8
High severity
EPSS score (FIRST)
73.6%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2021-44142 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Samba (smbd, vfs_fruit module) | cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:* | all versions before 4.13.17, 4.14.0 up to 4.14.12 and 4.15.0 up to 4.15.5, when vfs_fruit is configured (fixed in 4.13.17, 4.14.12 and 4.15.5) |
| Synology DiskStation Manager (DSM) 6.2 | cpe:2.3:a:synology:diskstation_manager:*:*:*:*:*:*:*:* | DSM 6.2 before 6.2.4-25556-4; DSM 7.0, DSMUC 3.1, VS960HD and SRM 1.2 not affected (per Synology-SA-22:02) |
| OpenWrt samba4 package | — | samba4 before 4.14.12; OpenWrt 19.07 on Samba 4.11.17 left unfixed (per OpenWrt's statement in CERT/CC VU#119678) |
What does this mean for affected devices?
CVE-2021-44142 is an out-of-bounds read and write (CWE-125, CWE-787) in vfs_fruit, the Samba module that stores Apple metadata in extended attributes for macOS clients and Netatalk interoperability. Samba's announcement places the flaw in the parsing of EA metadata when smbd opens files and says the attacker needs write access to a file's extended attributes, which "could be a guest or unauthenticated user" if guests may write them. The vulnerable path is the module's default configuration, fruit:metadata=netatalk or fruit:resource=file; only a system with both options set to non-default values is unaffected. Samba scores it 9.9 with a changed scope, while NVD's Primary score is 8.8 with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD). The fixes are 4.13.17, 4.14.12 and 4.15.5.
The bug was shown at Pwn2Own Austin 2021, and the Zero Day Initiative write-up notes that "quite a few vendors" incorporate the affected Samba versions in their products and that Samba is often enabled by default for file sharing between devices. CERT/CC's VU#119678, first released on 2022-01-31, lists OpenWrt, Synology, Red Hat, SUSE, Ubuntu and Samba as affected.
NAS firmware is the clearest device case. Synology-SA-22:02 rates the flaw Important for DSM 6.2, fixed in 6.2.4-25556-4, and lists DSM 7.0, DSMUC 3.1, the VS960HD and SRM 1.2 as not affected, so two lines from one vendor can differ. On routers with a USB port, OpenWrt's statement in VU#119678 says the samba4 package was fixed in master and 22.03 by an update to 4.14.12, with a prepared fix for 21.02, and that OpenWrt 19.07 would stay unfixed on Samba 4.11.17. Our Samba vulnerabilities in embedded firmware guide shows how OpenWrt's macOS share option loads catia fruit streams_xattr with fruit:resource left at its default, which meets the affected condition on an unpatched build.
This CVE is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13, CISA KEV), but FIRST EPSS gives it 0.736, the 99.5th percentile, in its 2026-11-15 dataset (FIRST EPSS). Our KEV and EPSS prioritisation guide explains how to rank a CVE with a high EPSS and no KEV listing.
Distribution backports sit below the upstream fix numbers: the Debian tracker lists bullseye fixed at 2:4.13.13+dfsg-1~deb11u3 and buster at 2:4.9.5+dfsg-5+deb10u3 (DSA-5071-1), so a plain version match can report a fixed build as vulnerable. For device makers the fix is a Samba release at or above the fixed versions or a backport of Samba's patch; until then, Samba's workaround is to remove fruit from every vfs objects line, and it warns that switching fruit:metadata or fruit:resource to the unaffected settings makes stored Mac metadata appear lost. Our memory corruption fix guide covers checking that a bounds fix landed in the shipped binary.
Evidence
- Heap out-of-bounds read/write in vfs_fruit EA metadata parsing; guest may exploit if allowed to write EAs; default fruit config affected; Samba CVSS 9.9; fixed in 4.13.17, 4.14.12, 4.15.5; workaround remove fruit from vfs objects. — Samba security announcement
- NVD CVSS v3.1 8.8 (Primary), CWE-125 and CWE-787; Synology DSM CPE 6.2 before 6.2.4-25556.4. — NVD
- DSM 6.2 Important, fixed in 6.2.4-25556-4; DSM 7.0, DSMUC 3.1, VS960HD, SRM 1.2 not affected. — Synology-SA-22:02
- Affected: OpenWrt, Red Hat, Samba, SUSE, Synology, Ubuntu; OpenWrt fixed master/22.03 via 4.14.12, prepared 21.02 fix, 19.07 on 4.11.17 not fixed. — CERT/CC VU#119678
- OpenWrt packages commit updating samba4 to 4.14.12, fixing CVE-2021-44142, 2022-02-01. — OpenWrt packages commit 1fa70d6a
- Demonstrated at Pwn2Own Austin 2021; vendors incorporate older Samba versions in products, often enabled by default. — Zero Day Initiative
- Debian bullseye fixed 2:4.13.13+dfsg-1~deb11u3, buster 2:4.9.5+dfsg-5+deb10u3 (DSA-5071-1). — Debian Security Tracker
- Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
- EPSS 0.73589 (99.5th percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Is my device affected by CVE-2021-44142 if it does not load vfs_fruit?
No. The flaw is in the vfs_fruit module, so a Samba build is affected only when a share lists fruit in its vfs objects line. With fruit loaded, the default fruit:metadata=netatalk or fruit:resource=file settings are vulnerable; only both set to non-default values avoid it (per Samba's announcement).
Which NAS and router firmware is affected by CVE-2021-44142?
Synology-SA-22:02 lists DSM 6.2, fixed in 6.2.4-25556-4, with DSM 7.0, DSMUC 3.1, VS960HD and SRM 1.2 not affected. OpenWrt fixed its samba4 package by moving to 4.14.12 and left 19.07, on Samba 4.11.17, unfixed (per Synology and OpenWrt's statement in CERT/CC VU#119678).
Can a guest exploit CVE-2021-44142?
Yes, if guests may write extended attributes. Samba says the attacker needs write access to a file's extended attributes and that this could be a guest or unauthenticated user when such users have that access, so a guest-writable share with vfs_fruit is the worst case (per Samba's announcement).
Is CVE-2021-44142 in the CISA KEV catalog?
No, it is not listed as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.736, the 99.5th percentile, in the 2026-11-15 dataset, so it still ranks high for patching (per CISA KEV and FIRST EPSS).
Questions about this page?