CVE-2021-20254: Samba - Out of Bounds Read and Write
- Cve: CVE-2021-20254
- Name: Samba - Out of Bounds Read and Write
- Description: 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.
- Impact: Attackers could read out-of-bounds data, potentially leading to data disclosure or corruption.
- Remediation: Update Samba to the latest version where this issue is fixed.
- Vulnerability type: out_of_bounds_rw
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.8
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.01616
- Epss percentile: 0.76519
- Assignee: [email protected]
- Published at: 2021-05-05T14:15:07Z
- Age in days: 2029
- Modified at: 2026-06-17T03:33:33Z
- Patch available: yes
- References total: 7
- Products total: 4
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-20254
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-125 | Out-of-bounds Read |
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| samba:samba | >= 4.14.0, < 4.14.4; >= 4.13.0, < 4.13.8; >= 3.6.0, < 4.12.15 | /v1/products/samba/samba |
| debian:debian_linux | = 9.0 | /v1/products/debian/debian_linux |
| fedoraproject:fedora | = 33, = 32 | /v1/products/fedoraproject/fedora |
| redhat:enterprise_linux | = 8.0, = 7.0 | /v1/products/redhat/enterprise_linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports