CVE-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 metadata, to perform this operation outside of the share.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | samba | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | samba | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | samba | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | samba | Will not fix per upstream, fixing this required a whole rewrite of the VFS layer and there is no reasonable way to fix this in older versions. Marking this CVE as ignored… | UBUNTU-CVE-2021-20316 | |
| Ubuntu 20.04 | samba | Fix pending | UBUNTU-CVE-2021-20316 | |
| Ubuntu 18.04 | samba | Fix pending | UBUNTU-CVE-2021-20316 | |
| Ubuntu 16.04 | samba | Will not fix per upstream, fixing this required a whole rewrite of the VFS layer and there is no reasonable way to fix this in older versions. Marking this CVE as ignored… | UBUNTU-CVE-2021-20316 | |
| Ubuntu 14.04 | samba | Fix pending | UBUNTU-CVE-2021-20316 | |
| Debian 14 | samba | Fixed | 2:4.16.0+dfsg-2 | DEBIAN-CVE-2021-20316 |
| Debian 13 | samba | Fixed | 2:4.16.0+dfsg-2 | DEBIAN-CVE-2021-20316 |
| Debian 12 | samba | Fixed | 2:4.16.0+dfsg-2 | DEBIAN-CVE-2021-20316 |
| Red Hat Enterprise Linux 9 | ctdb | Not affected | ||
| Red Hat Enterprise Linux 9 | ldb-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | libldb | Not affected | ||
| Red Hat Enterprise Linux 9 | libldb-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libnetapi | Not affected | ||
| Red Hat Enterprise Linux 9 | libnetapi-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 9 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 9 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ldb | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba-dc | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba-test | Not affected | ||
| Red Hat Enterprise Linux 9 | samba | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-dcerpc | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-gpupdate | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-ldb-ldap-modules | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-usershares | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-vfs-iouring | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winexe | Not affected | ||
| Red Hat Enterprise Linux 8 | ctdb | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | libsmbclient | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | libsmbclient-devel | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | libwbclient | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | libwbclient-devel | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | python3-samba | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | python3-samba-test | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-client | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-client-libs | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-common | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-common-libs | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-common-tools | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-devel | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-krb5-printing | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-libs | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-pidl | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-test | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-test-libs | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-vfs-iouring | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-winbind | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-winbind-clients | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-winbind-krb5-locator | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-winbind-modules | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 8 | samba-winexe | Fixed | 0:4.15.5-5.el8 | RHSA-2022:2074 |
| Red Hat Enterprise Linux 7 | ctdb | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ctdb-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ctdb-tests | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libsmbclient | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libsmbclient-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libwbclient | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libwbclient-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-client | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-client-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-common-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-common-tools | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-dc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-dc-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-krb5-printing | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-pidl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-python | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-python-test | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-test | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-test-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-test-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-vfs-glusterfs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-winbind | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-winbind-clients | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-winbind-krb5-locator | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | samba-winbind-modules | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libsmbclient | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libsmbclient-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba-client | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba-domainjoin-gui | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba-glusterfs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba-swat | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba-winbind | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba-winbind-clients | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba-winbind-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba-winbind-krb5-locator | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-client | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-dc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-dc-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-pidl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-python | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-swat | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-test | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-winbind | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-winbind-clients | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | samba4-winbind-krb5-locator | Will not fix Out of support scope | ||
| AlmaLinux 8 | ctdb | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | libsmbclient | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | libsmbclient-devel | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | libwbclient | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | libwbclient-devel | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | python3-samba | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | python3-samba-test | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-client | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-client-libs | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-common | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-common-libs | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-common-tools | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-devel | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-krb5-printing | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-libs | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-pidl | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-test | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-test-libs | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-vfs-iouring | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-winbind | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-winbind-clients | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-winbind-krb5-locator | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-winbind-modules | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| AlmaLinux 8 | samba-winexe | Fixed | 4.15.5-5.el8 | ALSA-2022:2074 |
| Rocky Linux 8 | samba | Fixed | 0:4.15.5-5.el8 | RLSA-2022:2074 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- samba: affected: Affects samba file server before v4.15.0, Fixed in samba v4.15.0
Vendor advisories:
- https://security.gentoo.org/glsa/202309-06 (vendor-advisory)
References
- https://bugzilla.samba.org/show_bug.cgi?id=14842
- https://www.samba.org/samba/security/CVE-2021-20316.html
- https://bugzilla.redhat.com/show_bug.cgi?id=2009673
- https://access.redhat.com/security/cve/CVE-2021-20316
- https://security-tracker.debian.org/tracker/CVE-2021-20316
- https://security.gentoo.org/glsa/202309-06
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.