cve.bz

CVE-2021-20254 Out-of-bounds Read

6.8 mediumEPSS 1.6%

Medium (6.8). EPSS 1.6% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in samba. The Samba smbd file server must map Windows group identities (SIDs) into unix group ids (gids). The code that performs this had a flaw that could allow it to read data beyond the end of the array in the case where a negative cache entry had been added to the mapping cache. This could cause the calling code to return those values into the process token that stores the group membership for a user. The highest threat from this vulnerability is to data confidentiality and integrity.

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20254 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20254?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20254?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20254 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
samba:sambafrom 3.6.0 before 4.12.15
samba:sambafrom 4.13.0 before 4.13.8
samba:sambafrom 4.14.0 before 4.14.4
fedoraproject:fedora32
fedoraproject:fedora33
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9samba2:4.5.16+dfsg-1+deb9u4DLA-2668-1
Debian12, 13, 14samba2:4.13.5+dfsg-2DEBIAN-CVE-2021-20254
Ubuntu16.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.16.04.34UBUNTU-CVE-2021-20254 USN-4930-1
Ubuntu18.04:LTSsamba2:4.7.6+dfsg~ubuntu-0ubuntu2.23UBUNTU-CVE-2021-20254 USN-4930-1
Ubuntu20.04:LTSsamba2:4.11.6+dfsg-0ubuntu1.8UBUNTU-CVE-2021-20254 USN-4930-1
UbuntuPro:14.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.14.04.20+esm11UBUNTU-CVE-2021-20254 USN-4931-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::workstationsamba, samba-dc, samba-libs and 23 more0:4.10.16-15.el7_9RHSA-2021:2313
Red Hatenterprise_linux:7::computenodesamba, samba-dc, samba-pidl and 12 more0:4.10.16-15.el7_9RHSA-2021:2313
Red Hatenterprise_linux:7::serverctdb, samba, samba-dc and 25 more0:4.10.16-15.el7_9RHSA-2021:2313
Red Hatenterprise_linux:8::baseosctdb, samba, ctdb-tests and 40 more0:4.13.3-5.el8_4RHSA-2021:4058
Red Hatenterprise_linux:8::crbsamba-devel, ctdb-debuginfo, samba-debuginfo and 21 more0:4.13.3-5.el8_4RHSA-2021:4058
Red Hatrhel_aus:7.7::server, rhel_tus:7.7::serversamba, samba-dc, samba-libs and 23 more0:4.9.1-11.el7_7RHSA-2021:3988
Red Hatrhel_e4s:7.7::serversamba, samba-dc, samba-libs and 22 more0:4.9.1-11.el7_7RHSA-2021:3988
Red Hatrhel_eus:8.2::baseosctdb, samba, ctdb-tests and 38 more0:4.11.2-15.el8_2RHSA-2021:4866
Red Hatrhel_eus:8.2::crbctdb-debuginfo, samba-debuginfo, libwbclient-devel and 19 more0:4.11.2-15.el8_2RHSA-2021:4866
Red Hatstorage:3.5:samba:el7ctdb, samba, samba-libs and 19 more0:4.11.6-112.el7rhgsRHSA-2021:3723
Red Hatstorage:3.5:samba:el8ctdb, samba, samba-libs and 39 more0:4.14.5-201.el8rhgsRHSA-2021:3724
SUSEEnterprise Storage 6, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 7 moresamba4.9.5+git.432.d9b18c4f390-3.50.1SUSE-SU-2021:1498-1
SUSEEnterprise Storage 7ldb2.2.1-4.3.1SUSE-SU-2021:1440-1
SUSEEnterprise Storage 7ldb2.2.2-4.6.1SUSE-SU-2022:0361-1
SUSEEnterprise Storage 7samba4.13.13+git.545.5897c2d94f3-3.12.1SUSE-SU-2022:0361-1
SUSEEnterprise Storage 7samba4.13.6+git.211.555d60b24ba-3.9.1SUSE-SU-2021:1440-1
SUSEHPE Helion OpenStack 8, Linux Enterprise High Availability Extension 12 SP3, Linux Enterprise High Availability Extension 12 SP4 and 9 moresamba4.6.16+git.282.cfafed5922a-3.61.1SUSE-SU-2021:1492-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 1 moresamba4.10.18+git.269.dd608524c88-3.27.1SUSE-SU-2021:1438-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS and 2 moresamba4.7.11+git.316.432f0218290-4.54.1SUSE-SU-2021:1445-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Python 2 15 SP2samba4.11.14+git.247.8c858f7ee14-4.19.1SUSE-SU-2021:1444-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Python 2 15 SP3samba4.13.6+git.211.555d60b24ba-3.7.1SUSE-SU-2021:3187-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSsamba, samba-doc3.6.3-94.34.1SUSE-SU-2021:14709-1
SUSELinux Enterprise Server 12 SP2-BCLsamba4.2.4-28.39.1SUSE-SU-2021:1442-1
1 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2samba4.11.14+git.247.8c858f7ee14-lp152.3.19.1openSUSE-SU-2021:0636-1
openSUSELeap 15.3samba4.13.6+git.211.555d60b24ba-3.7.1openSUSE-SU-2021:3187-1
openSUSETumbleweedsamba4.14.6+git.182.2205d5224e3-1.1openSUSE-SU-2024:11365-1
AlmaLinux8samba-devel, libwbclient-devel, libsmbclient-devel4.13.3-5.el8_4ALSA-2021:4058
Rocky Linux8samba0:4.13.3-5.el8_4RLSA-2021:4058
Alpinev3.12samba4.12.15-r0ALPINE-CVE-2021-20254
Alpinev3.13samba4.13.8-r0ALPINE-CVE-2021-20254
Alpinev3.14, v3.15, v3.16 and 8 moresamba4.14.4-r0ALPINE-CVE-2021-20254
Azure Linux2sambano fix listedAZL-7352
Azure Linux3samba4.18.3-1AZL-36999

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7samba-0:4.10.16-15.el7_9Fixed 2021-06-08RHSA-2021:2313
Red Hat Enterprise Linux 7.7 Advanced Update Supportsamba-0:4.9.1-11.el7_7Fixed 2021-10-26RHSA-2021:3988
Red Hat Enterprise Linux 7.7 Telco Extended Update Supportsamba-0:4.9.1-11.el7_7Fixed 2021-10-26RHSA-2021:3988
Red Hat Enterprise Linux 7.7 Update Services for SAP Solutionssamba-0:4.9.1-11.el7_7Fixed 2021-10-26RHSA-2021:3988
Red Hat Enterprise Linux 8samba-0:4.13.3-5.el8_4Fixed 2021-11-02RHSA-2021:4058
Red Hat Enterprise Linux 8.2 Extended Update Supportsamba-0:4.11.2-15.el8_2Fixed 2021-11-30RHSA-2021:4866
Red Hat Gluster Storage 3.5 for RHEL 7samba-0:4.11.6-112.el7rhgsFixed 2021-10-05RHSA-2021:3723
Red Hat Gluster Storage 3.5 for RHEL 8samba-0:4.14.5-201.el8rhgsFixed 2021-10-05RHSA-2021:3724
Red Hat Enterprise Linux 6sambaOut of support scope
Red Hat Enterprise Linux 6samba4Out of support scope
Red Hat Enterprise Linux 9sambaNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20254.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON