Original 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.
Affected software
- Samba ≥ 4.13.0 < 4.13.8≥ 3.6.0 < 4.12.15≥ 4.14.0 < 4.14.4 Fixed in: 4.13.8, 4.12.15, 4.14.4 exact match
Details
- Published
- 2021-05-05
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N- CWE
- CWE-125
- EPSS (30-day exploit probability)
- 1.62% (percentile 76)
References
- cve.org/CVE-2021-20254
- nvd.nist.gov/vuln/detail/CVE-2021-20254
- bugzilla.redhat.com/show_bug.cgi?id=1949442
- lists.debian.org/debian-lts-announce/2021/05/msg00023.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z...
- security.gentoo.org/glsa/202105-22
- security.netapp.com/advisory/ntap-20210430-0001/
- www.samba.org/samba/security/CVE-2021-20254.html
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.