VDB

CVE-2021-20254

CVE-2021-20254 PUBLISHED

Reported by redhat · Published May 5, 2021

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
samba-libsAmazon Linux4.10.16-15.amzn2.0.1
libsmbclientAmazon Linux4.10.16-15.amzn2.0.1
samba-testAmazon Linux4.10.16-15.amzn2.0.1
samba-common-libsAmazon Linux4.10.16-15.amzn2.0.1
libwbclientAmazon Linux4.10.16-15.amzn2.0.1
samba-winbind-modulesAmazon Linux4.10.16-15.amzn2.0.1
samba-client-libsAmazon Linux4.10.16-15.amzn2.0.1
samba-winbindAmazon Linux4.10.16-15.amzn2.0.1
samba-winbind-krb5-locatorAmazon Linux4.10.16-15.amzn2.0.1
samba-common-toolsAmazon Linux4.10.16-15.amzn2.0.1
sambaUbuntu:18.04:LTS2:4.7.6+dfsg~ubuntu-0ubuntu2.23
sambaUbuntu:16.04:LTS2:4.3.11+dfsg-0ubuntu0.16.04.34

1 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
n/asambasamba 4.14.1, samba 4.13.6, samba 4.12.13
n/asambasamba 4.14.1, samba 4.13.6, samba 4.12.13

Timeline

  • Apr 28, 2021 CVE Published
  • May 6, 2021 EPSS Score (30 in total, the first dated here)
  • Aug 3, 2024 CVE Updated
  • Mar 7, 2026 Distribution Patch (8 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (12 in total, the first dated here)
  • Aug 27, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-20254
vulnetix vdb fixes CVE-2021-20254

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-20254/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›