CVE-2021-20254: A flaw was found in samba.
Noroxi assessment
Priority: Monitor (action score 27/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 1.6% (FIRST EPSS); higher than 76.3% of all records.
- Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. No user action is required. Special conditions such as timing or configuration are required.
- Fixed version: Azure Linux 3.0 ARM 4.18.3-1; Azure Linux 3.0 x64 4.18.3-1.
- Mentioned 2 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to Azure Linux 3.0 ARM 4.18.3-1; Azure Linux 3.0 x64 4.18.3-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- BDU:2021-03130
- ALSA-2021:4058
- DLA-2668-1
- openSUSE-SU-2021:0636-1
- openSUSE-SU-2021:3187-1
- RHSA-2021:2313
- RHSA-2021:3723
- RHSA-2021:3724
- RHSA-2021:3988
- RHSA-2021:4058
- RHSA-2021:4866
- RLSA-2021:4058
- SUSE-SU-2021:1438-1
- SUSE-SU-2021:1439-1
- SUSE-SU-2021:1440-1
- SUSE-SU-2021:1442-1
- SUSE-SU-2021:1444-1
- SUSE-SU-2021:1445-1
- SUSE-SU-2021:14709-1
- SUSE-SU-2021:1492-1
- Published
- May 5, 2021
- Updated
- Jun 16, 2026
- EPSS
- 1.6% · 76th percentile
- CWE
- CWE-125
Report tools
Action score
27
Low priority for now.
- CVSS
- 27 / 40 · 6.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.6%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| samba | samba | cpe:2.3:a:samba:samba |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| redhat | enterprise linux | cpe:2.3:o:redhat:enterprise_linux |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
n/a samba
- samba 4.14.1, samba 4.13.6, samba 4.12.13affected
Affected versions · NVD (8)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux9.0
- fedoraproject fedora32
- fedoraproject fedora33
- redhat enterprise linux7.0
- redhat enterprise linux8.0
- samba samba4.14.0 and later · before 4.14.4
- samba samba3.6.0 and later · before 4.12.15
- samba samba4.13.0 and later · before 4.13.8
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | libsmbclient-devel | before 4.13.3-5.el8_4 | 4.13.3-5.el8_4 |
| AlmaLinux:8 | libwbclient-devel | before 4.13.3-5.el8_4 | 4.13.3-5.el8_4 |
| AlmaLinux:8 | samba-devel | before 4.13.3-5.el8_4 | 4.13.3-5.el8_4 |
| Alpine:v3.12 | samba | from 3.6.0 · before 4.12.15-r0 | 4.12.15-r0 |
| Alpine:v3.13 | samba | from 3.6.0 · before 4.13.8-r0 | 4.13.8-r0 |
| Alpine:v3.14 | samba | from 3.6.0 · before 4.14.4-r0 | 4.14.4-r0 |
| Debian:12 | samba | before 2:4.13.5+dfsg-2 | 2:4.13.5+dfsg-2 |
| Debian:9 | samba | before 2:4.5.16+dfsg-1+deb9u4 | 2:4.5.16+dfsg-1+deb9u4 |
| openSUSE:Leap 15.2 | samba | before 4.11.14+git.247.8c858f7ee14-lp152.3.19.1 | 4.11.14+git.247.8c858f7ee14-lp152.3.19.1 |
| openSUSE:Leap 15.3 | samba | before 4.13.6+git.211.555d60b24ba-3.7.1 | 4.13.6+git.211.555d60b24ba-3.7.1 |
| Red Hat:enterprise_linux:7::client | libsmbclient | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | libsmbclient-devel | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | libwbclient | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | libwbclient-devel | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | samba | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | samba-client | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | samba-client-libs | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | samba-common | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | samba-common-libs | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | samba-common-tools | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | samba-dc | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | samba-dc-libs | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | samba-debuginfo | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
| Red Hat:enterprise_linux:7::client | samba-devel | before 0:4.10.16-15.el7_9 | 0:4.10.16-15.el7_9 |
+96
Same product
samba: all recordsOther highest-scoring records for the same primary product.
- CVE-2017-7494Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allowing a malicious…KEV99Now
- CVE-2015-0240The Netlogon server implementation in smbd in Samba 3.5.x and 3.6.x before 3.6.25, 4.0.x before 4.0.25, 4.1.x before 4.1.17, and 4.2.x…66This week
- CVE-2003-0085Buffer overflow in the SMB/CIFS packet fragment re-assembly code for SMB daemon (smbd) in Samba before 2.2.8, and Samba-TNG before 0.3.1…66This week
Published before and after this one in the same product
- ← EarlierCVE-2020-14383Dec 1, 2020 · A flaw was found in samba's DNS server.27Monitor
- ← EarlierCVE-2020-14318Dec 3, 2020 · A flaw was found in the way samba handled file and directory permissions.17Monitor
- Later →CVE-2021-20277May 12, 2021 · A flaw was found in Samba's libldb.31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Azure Linux 3.0 ARM | 4.18.3-1 · samba | Microsoft (MSRC) |
| Azure Linux 3.0 x64 | 4.18.3-1 · samba | Microsoft (MSRC) |
| almalinux:libsmbclient-devel | 4.13.3-5.el8_4 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libwbclient-devel | 4.13.3-5.el8_4 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:samba-devel | 4.13.3-5.el8_4 · AlmaLinux:8 | Package registry (OSV) |
| alpine:samba | 4.12.15-r0 · Alpine:v3.12 | Package registry (OSV) |
| debian:samba | 2:4.13.5+dfsg-2 · Debian:12 | Package registry (OSV) |
| opensuse:samba | 4.11.14+git.247.8c858f7ee14-lp152.3.19.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| red hat:libsmbclient | 0:4.10.16-15.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libwbclient | 0:4.10.16-15.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:samba | 0:4.10.16-15.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:samba-client | 0:4.10.16-15.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:samba-client-libs | 0:4.10.16-15.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:samba-common | 0:4.10.16-15.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:samba-common-libs | 0:4.10.16-15.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:samba-common-tools | 0:4.10.16-15.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:samba-debuginfo | 0:4.10.16-15.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:samba-krb5-printing | 0:4.10.16-15.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:samba-libs | 0:4.10.16-15.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:samba-winbind | 0:4.10.16-15.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| rocky linux:samba | 0:4.13.3-5.el8_4 · Rocky Linux:8 | Package registry (OSV) |
| suse:ldb | 2.2.1-4.3.1 · SUSE:Enterprise Storage 7 | Package registry (OSV) |
| suse:samba | 4.10.18+git.269.dd608524c88-3.27.1 · SUSE:Linux Enterprise High Availability Extension 12 SP5 | Package registry (OSV) |
| suse:samba-doc | 3.6.3-94.34.1 · SUSE:Linux Enterprise Point of Sale 11 SP3 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-21-0465 · Jun 10, 2021(RedHat Güvenlik Güncellemesi Yayınladı)
- TR-21-0371 · May 3, 2021(Samba Güvenlik Güncellemesi Yayınladı)
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- A low-privileged account is enough.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- none
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- None
Weakness class (CWE)
CWE-125 · Out-of-bounds ReadCVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (6 more)Show less
- lists.debian.org/debian-lts-announce/2021/05/msg00023.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3EP2VJ73OVBPVSOSTVOMGIEQA3MWF6F7/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZAF6L2M6CNAJ2YYYGXPWETTW5YLCWTVT/
- security.gentoo.org/glsa/202105-22
- security.netapp.com/advisory/ntap-20210430-0001/
- www.samba.org/samba/security/CVE-2021-20254.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.