# CVE-2021-20254: A flaw was found in samba.

- Severity: Medium 6.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.62%, higher than 76% of CVEs (2026-12-01)
- Published: 2021-05-05T13:36:32.000Z
- Modified: 2026-06-17T03:33:33.100Z
- Weaknesses: CWE-125
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- samba: samba 4.14.1, samba 4.13.6, samba 4.12.13
- samba samba: from 3.6.0 before 4.12.15; from 4.13.0 before 4.13.8; from 4.14.0 before 4.14.4
- fedoraproject fedora: 32; 33
- redhat enterprise_linux: 7.0; 8.0
- debian debian_linux: 9.0

## Every score

- NVD: 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`
- NVD: CVSS:2.0 4.9 Medium `AV:N/AC:M/Au:S/C:P/I:P/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1949442> (issue-tracking, third-party-advisory)
- <https://www.samba.org/samba/security/CVE-2021-20254.html> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20210430-0001/> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3EP2VJ73OVBPVSOSTVOMGIEQA3MWF6F7/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZAF6L2M6CNAJ2YYYGXPWETTW5YLCWTVT/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202105-22> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/05/msg00023.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2021-20254](https://www.cve.org/CVERecord?id=CVE-2021-20254), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-20254](https://nvd.nist.gov/vuln/detail/CVE-2021-20254), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-20254 · Whole record: https://cve.day/CVE-2021-20254.json · Rebuilt by cve.day 2026-11-25T22:58:01.140Z
