CVEfocus › CVE database › CVE-2021-20316

CVE-2021-20316

EPSS 1.1% (higher than 65% of CVEs)Published 2022-08-23Updated 2024-08-03Assigner: redhat

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.

CWE-362

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

54Fixed
3Fix pending
58Will not fix
42Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04sambaNot affected
vulnerable_code_not_present
Ubuntu 25.10sambaNot affected
vulnerable_code_not_present
Ubuntu 24.04sambaNot affected
vulnerable_code_not_present
Ubuntu 22.04sambaWill 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.04sambaFix pendingUBUNTU-CVE-2021-20316
Ubuntu 18.04sambaFix pendingUBUNTU-CVE-2021-20316
Ubuntu 16.04sambaWill 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.04sambaFix pendingUBUNTU-CVE-2021-20316
Debian 14sambaFixed2:4.16.0+dfsg-2DEBIAN-CVE-2021-20316
Debian 13sambaFixed2:4.16.0+dfsg-2DEBIAN-CVE-2021-20316
Debian 12sambaFixed2:4.16.0+dfsg-2DEBIAN-CVE-2021-20316
Red Hat Enterprise Linux 9ctdbNot affected
Red Hat Enterprise Linux 9ldb-toolsNot affected
Red Hat Enterprise Linux 9libldbNot affected
Red Hat Enterprise Linux 9libldb-develNot affected
Red Hat Enterprise Linux 9libnetapiNot affected
Red Hat Enterprise Linux 9libnetapi-develNot affected
Red Hat Enterprise Linux 9libsmbclientNot affected
Red Hat Enterprise Linux 9libsmbclient-develNot affected
Red Hat Enterprise Linux 9libwbclientNot affected
Red Hat Enterprise Linux 9libwbclient-develNot affected
Red Hat Enterprise Linux 9python3-ldbNot affected
Red Hat Enterprise Linux 9python3-sambaNot affected
Red Hat Enterprise Linux 9python3-samba-dcNot affected
Red Hat Enterprise Linux 9python3-samba-develNot affected
Red Hat Enterprise Linux 9python3-samba-testNot affected
Red Hat Enterprise Linux 9sambaNot affected
Red Hat Enterprise Linux 9samba-clientNot affected
Red Hat Enterprise Linux 9samba-client-libsNot affected
Red Hat Enterprise Linux 9samba-commonNot affected
Red Hat Enterprise Linux 9samba-common-libsNot affected
Red Hat Enterprise Linux 9samba-common-toolsNot affected
Red Hat Enterprise Linux 9samba-dc-libsNot affected
Red Hat Enterprise Linux 9samba-dcerpcNot affected
Red Hat Enterprise Linux 9samba-develNot affected
Red Hat Enterprise Linux 9samba-gpupdateNot affected
Red Hat Enterprise Linux 9samba-krb5-printingNot affected
Red Hat Enterprise Linux 9samba-ldb-ldap-modulesNot affected
Red Hat Enterprise Linux 9samba-libsNot affected
Red Hat Enterprise Linux 9samba-pidlNot affected
Red Hat Enterprise Linux 9samba-testNot affected
Red Hat Enterprise Linux 9samba-test-libsNot affected
Red Hat Enterprise Linux 9samba-toolsNot affected
Red Hat Enterprise Linux 9samba-usersharesNot affected
Red Hat Enterprise Linux 9samba-vfs-iouringNot affected
Red Hat Enterprise Linux 9samba-winbindNot affected
Red Hat Enterprise Linux 9samba-winbind-clientsNot affected
Red Hat Enterprise Linux 9samba-winbind-krb5-locatorNot affected
Red Hat Enterprise Linux 9samba-winbind-modulesNot affected
Red Hat Enterprise Linux 9samba-winexeNot affected
Red Hat Enterprise Linux 8ctdbFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8libsmbclientFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8libsmbclient-develFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8libwbclientFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8libwbclient-develFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8python3-sambaFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8python3-samba-testFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8sambaFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-clientFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-client-libsFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-commonFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-common-libsFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-common-toolsFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-develFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-krb5-printingFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-libsFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-pidlFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-testFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-test-libsFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-vfs-iouringFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-winbindFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-winbind-clientsFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-winbind-krb5-locatorFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-winbind-modulesFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 8samba-winexeFixed0:4.15.5-5.el8RHSA-2022:2074
Red Hat Enterprise Linux 7ctdbWill not fix
Out of support scope
Red Hat Enterprise Linux 7ctdb-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7ctdb-testsWill not fix
Out of support scope
Red Hat Enterprise Linux 7libsmbclientWill not fix
Out of support scope
Red Hat Enterprise Linux 7libsmbclient-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7libwbclientWill not fix
Out of support scope
Red Hat Enterprise Linux 7libwbclient-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7sambaWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-clientWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-client-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-common-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-common-toolsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-dcWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-dc-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-krb5-printingWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-pidlWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-python-testWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-testWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-test-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-test-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-vfs-glusterfsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-winbindWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-winbind-clientsWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-winbind-krb5-locatorWill not fix
Out of support scope
Red Hat Enterprise Linux 7samba-winbind-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 6libsmbclientWill not fix
Out of support scope
Red Hat Enterprise Linux 6libsmbclient-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6sambaWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-clientWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-docWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-domainjoin-guiWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-glusterfsWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-swatWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-winbindWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-winbind-clientsWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-winbind-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba-winbind-krb5-locatorWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4Will not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-clientWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-dcWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-dc-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-pidlWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-swatWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-testWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-winbindWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-winbind-clientsWill not fix
Out of support scope
Red Hat Enterprise Linux 6samba4-winbind-krb5-locatorWill not fix
Out of support scope
AlmaLinux 8ctdbFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8libsmbclientFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8libsmbclient-develFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8libwbclientFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8libwbclient-develFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8python3-sambaFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8python3-samba-testFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8sambaFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-clientFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-client-libsFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-commonFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-common-libsFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-common-toolsFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-develFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-krb5-printingFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-libsFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-pidlFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-testFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-test-libsFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-vfs-iouringFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-winbindFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-winbind-clientsFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-winbind-krb5-locatorFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-winbind-modulesFixed4.15.5-5.el8ALSA-2022:2074
AlmaLinux 8samba-winexeFixed4.15.5-5.el8ALSA-2022:2074
Rocky Linux 8sambaFixed0:4.15.5-5.el8RLSA-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.

Vendor advisories:

References

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.