cve.bz

CVE-2021-20251 Race Condition

5.9 mediumExploit referenceEPSS 0.8%

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

On this page
A flaw was found in samba. A race condition in the password lockout code may lead to the risk of brute force attacks being successful if special conditions are met.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-03-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
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-20251 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20251?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20251?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-20251 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 4.1.0 before 4.16.8
samba:sambafrom 4.17.0 before 4.17.4
fedoraproject:fedora37

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14samba2:4.17.2+dfsg-3DEBIAN-CVE-2021-20251
Ubuntu20.04:LTSsamba2:4.13.17~dfsg-0ubuntu1.20.04.4USN-5822-1
Ubuntu22.04:LTS, Pro:14.04:LTS, Pro:16.04:LTS and 2 moresambano fix listedUBUNTU-CVE-2021-20251 USN-5822-1
SUSEEnterprise Storage 6, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Performance Computing 15 SP1-LTSS and 2 moresamba4.9.5+git.552.fec1a5e57a-150100.3.73.1SUSE-SU-2023:0222-1
SUSEEnterprise Storage 7samba4.13.13+git.616.557146479a-150200.3.21.1SUSE-SU-2023:0620-1
SUSEEnterprise Storage 7, Linux Enterprise High Availability Extension 15 SP2, Linux Enterprise High Performance Computing 15 SP2-LTSS and 2 moresamba4.11.14+git.384.5dc2c21dce-150200.4.44.1SUSE-SU-2023:0163-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Availability Extension 15 SP3, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 8 moresamba4.15.13+git.591.ab36624310c-150300.3.49.1SUSE-SU-2023:0162-1
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server for SAP Applications 12 SP4 and 2 moresamba4.6.16+git.384.9fec958bed-3.76.1SUSE-SU-2023:0126-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 1 moresamba4.15.13+git.534.0d9f8ece26-3.77.1SUSE-SU-2023:0164-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Micro 5.3, Linux Enterprise Module for Basesystem 15 SP4samba4.15.13+git.591.ab36624310c-150400.3.19.1SUSE-SU-2023:0160-1
SUSELinux Enterprise Server 12 SP2-BCLsamba4.4.2-38.55.1SUSE-SU-2023:0122-1
openSUSELeap 15.4samba4.11.14+git.384.5dc2c21dce-150200.4.44.1SUSE-SU-2023:0163-1
openSUSELeap 15.4samba4.9.5+git.552.fec1a5e57a-150100.3.73.1SUSE-SU-2023:0222-1
openSUSELeap 15.4, Leap Micro 5.3samba4.15.13+git.591.ab36624310c-150400.3.19.1SUSE-SU-2023:0160-1
openSUSELeap Micro 5.2samba4.15.13+git.591.ab36624310c-150300.3.49.1SUSE-SU-2023:0162-1
openSUSETumbleweedsamba4.17.1+git.270.17afe7cb6b-1.1openSUSE-SU-2024:12435-1
Azure Linux2sambano fix listedAZL-27917
Azure Linux3samba4.18.3-1AZL-36998

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6sambaNot affected
Red Hat Enterprise Linux 6samba4Not affected
Red Hat Enterprise Linux 7sambaNot affected
Red Hat Enterprise Linux 8sambaNot affected
Red Hat Enterprise Linux 9sambaNot affected
Red Hat Storage 3sambaNot 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-20251.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

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

References

Check your stackJSON