CVE-2021-20316
published 2022-08-23CVE-2021-20316: A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share…
PriorityP336medium6.8CVSS 3.1
AVNACHPRLUINSUCHIHAN
EPSS
0.76%
51.2th percentile
A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.
Affected
16 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | samba | < samba 2:4.16.0+dfsg-2 (bookworm) | samba 2:4.16.0+dfsg-2 (bookworm) |
| msrc | azl3_samba_4.18.3-1_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux_aus | — | — |
| redhat | enterprise_linux_eus | — | — |
| redhat | enterprise_linux_tus | — | — |
| redhat | virtualization_host | — | — |
| samba | samba | < 4.15.0 | 4.15.0 |
| samba | samba | — | — |
| samba | samba | >= 0 < 2:4.16.0+dfsg-2 | 2:4.16.0+dfsg-2 |
| samba | samba | >= 0 < 2:4.16.0+dfsg-2 | 2:4.16.0+dfsg-2 |
| samba | samba | >= 0 < 2:4.16.0+dfsg-2 | 2:4.16.0+dfsg-2 |
CVSS provenance
nvdv3.16.8MEDIUMCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
osv6.8MEDIUM
vendor_debian6.8MEDIUM
vendor_msrc6.8MEDIUM
vendor_redhat6.8MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Microsoft
A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata to perform this operation outside of the
vendor_msrc·2022-08-09·CVSS 6.8
CVE-2021-20316 [MEDIUM] CWE-362 A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata to perform this operation outside of the
A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata to perform this operation outside of the share.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will upd
Red Hat
samba: Symlink race error can allow metadata read and modify outside of the exported share
vendor_redhat·2022-01-10·CVSS 6.8
CVE-2021-20316 [MEDIUM] CWE-362 samba: Symlink race error can allow metadata read and modify outside of the exported share
samba: Symlink race error can allow metadata read and modify outside of the exported share
A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.
A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.
Statement: As per upstream, "Prior to Samba 4.15.0, patches for this are not possible due to the prior design of the Samba VFS layer, which used pathname-based calls for most meta-data operations.
A two and a half year effort was undertaken to completely re-write the Samba VFS layer to s
Debian
CVE-2021-20316: samba - A flaw was found in the way Samba handled file/directory metadata. This flaw all...
vendor_debian·2021·CVSS 6.8
CVE-2021-20316 [MEDIUM] CVE-2021-20316: samba - A flaw was found in the way Samba handled file/directory metadata. This flaw all...
A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.
Scope: local
bookworm: resolved (fixed in 2:4.16.0+dfsg-2)
bullseye: open
forky: resolved (fixed in 2:4.16.0+dfsg-2)
sid: resolved (fixed in 2:4.16.0+dfsg-2)
trixie: resolved (fixed in 2:4.16.0+dfsg-2)
GHSA
GHSA-88fw-cm3w-8cq5: A flaw was found in the way Samba handled file/directory metadata
ghsa_unreviewed·2022-08-24
CVE-2021-20316 [MEDIUM] CWE-362 GHSA-88fw-cm3w-8cq5: A flaw was found in the way Samba handled file/directory metadata
A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.
OSV
CVE-2021-20316: A flaw was found in the way Samba handled file/directory metadata
osv·2022-08-23·CVSS 6.8
CVE-2021-20316 [MEDIUM] CVE-2021-20316: A flaw was found in the way Samba handled file/directory metadata
A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://access.redhat.com/security/cve/CVE-2021-20316https://bugzilla.redhat.com/show_bug.cgi?id=2009673https://bugzilla.samba.org/show_bug.cgi?id=14842https://security-tracker.debian.org/tracker/CVE-2021-20316https://security.gentoo.org/glsa/202309-06https://www.samba.org/samba/security/CVE-2021-20316.htmlhttps://access.redhat.com/security/cve/CVE-2021-20316https://bugzilla.redhat.com/show_bug.cgi?id=2009673https://bugzilla.samba.org/show_bug.cgi?id=14842https://security-tracker.debian.org/tracker/CVE-2021-20316https://security.gentoo.org/glsa/202309-06https://www.samba.org/samba/security/CVE-2021-20316.html
2022-08-23
Published