CVE-2021-20254
publishedsamba: Negative idmap cache entries can cause incorrect group entries in the Samba file server process token
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | sambasamba 4.14.1, samba 4.13.6, samba 4.12.13 | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1680 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | samba | Fixed | 4.14.4-r0 | Package fix record |
| Debian | stretch | samba | Advisory build | 2:4.5.16+dfsg-1+deb9u4 | DLA-2668-1 |
| Oracle Linux | 7 | sambaaarch64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Red Hat Enterprise Linux | RHEL-7 | sambappc64 | Advisory build | 4.10.16-15.el7_9 | RHSA-2021:2313 |
| SUSE / openSUSE | SLE-11-SP3 | sambai586 | Advisory build | 3.6.3-94.34.1 | SUSE-SU-2021:14709-1 |
| Ubuntu | bionic | samba | Advisory build | 2:4.7.6+dfsg~ubuntu-0ubuntu2.23 | USN-4930-1 |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | libsmbclient-devel | Advisory build | 4.13.3-5.el8_4 | ALSA-2021:4058 |
| Alpine Linux | v3.12 | samba | Fixed | 4.12.15-r0 | Package fix record |
| Alpine Linux | v3.13 | samba | Fixed | 4.13.8-r0 | Package fix record |
| Alpine Linux | v3.14 | samba | Fixed | 4.14.4-r0 | Package fix record |
| Alpine Linux | v3.15 | samba | Fixed | 4.14.4-r0 | Package fix record |
| Alpine Linux | v3.16 | samba | Fixed | 4.14.4-r0 | Package fix record |
| Alpine Linux | v3.17 | samba | Fixed | 4.14.4-r0 | Package fix record |
| Alpine Linux | v3.18 | samba | Fixed | 4.14.4-r0 | Package fix record |
| Alpine Linux | v3.19 | samba | Fixed | 4.14.4-r0 | Package fix record |
| Alpine Linux | v3.20 | samba | Fixed | 4.14.4-r0 | Package fix record |
| Alpine Linux | v3.21 | samba | Fixed | 4.14.4-r0 | Package fix record |
| Alpine Linux | v3.22 | samba | Fixed | 4.14.4-r0 | Package fix record |
| Alpine Linux | v3.23 | samba | Fixed | 4.14.4-r0 | Package fix record |
| Alpine Linux | v3.24 | samba | Fixed | 4.14.4-r0 | Package fix record |
| Oracle Linux | 7 | sambax86_64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Oracle Linux | 8 | sambaaarch64 | Advisory build | 0:4.13.3-5.el8_4 | ELSA-2021-4058 |
| Oracle Linux | 8 | sambax86_64 | Advisory build | 0:4.13.3-5.el8_4 | ELSA-2021-4058 |
| Red Hat Enterprise Linux | RHEL-7 | sambappc64le | Advisory build | 4.10.16-15.el7_9 | RHSA-2021:2313 |
| Red Hat Enterprise Linux | RHEL-7 | sambappc64le | Advisory build | 4.9.1-11.el7_7 | RHSA-2021:3988 |
| Red Hat Enterprise Linux | RHEL-7 | sambas390x | Advisory build | 4.10.16-15.el7_9 | RHSA-2021:2313 |
| Red Hat Enterprise Linux | RHEL-7 | sambasrc | Advisory build | 4.10.16-15.el7_9 | RHSA-2021:2313 |
| Red Hat Enterprise Linux | RHEL-7 | sambasrc | Advisory build | 4.9.1-11.el7_7 | RHSA-2021:3988 |
| Red Hat Enterprise Linux | RHEL-7 | sambax86_64 | Advisory build | 4.10.16-15.el7_9 | RHSA-2021:2313 |
| Red Hat Enterprise Linux | RHEL-7 | sambax86_64 | Advisory build | 4.9.1-11.el7_7 | RHSA-2021:3988 |
| Red Hat Enterprise Linux | RHEL-8 | sambaaarch64 | Advisory build | 4.11.2-15.el8_2 | RHSA-2021:4866 |
| Red Hat Enterprise Linux | RHEL-8 | sambaaarch64 | Advisory build | 4.13.3-5.el8_4 | RHSA-2021:4058 |
| Red Hat Enterprise Linux | RHEL-8 | sambappc64le | Advisory build | 4.11.2-15.el8_2 | RHSA-2021:4866 |
| Red Hat Enterprise Linux | RHEL-8 | sambappc64le | Advisory build | 4.13.3-5.el8_4 | RHSA-2021:4058 |
| Red Hat Enterprise Linux | RHEL-8 | sambas390x | Advisory build | 4.11.2-15.el8_2 | RHSA-2021:4866 |
| Red Hat Enterprise Linux | RHEL-8 | sambas390x | Advisory build | 4.13.3-5.el8_4 | RHSA-2021:4058 |
| Red Hat Enterprise Linux | RHEL-8 | sambasrc | Advisory build | 4.11.2-15.el8_2 | RHSA-2021:4866 |
| Red Hat Enterprise Linux | RHEL-8 | sambasrc | Advisory build | 4.13.3-5.el8_4 | RHSA-2021:4058 |
| Red Hat Enterprise Linux | RHEL-8 | sambax86_64 | Advisory build | 4.11.2-15.el8_2 | RHSA-2021:4866 |
| Red Hat Enterprise Linux | RHEL-8 | sambax86_64 | Advisory build | 4.13.3-5.el8_4 | RHSA-2021:4058 |
| SUSE / openSUSE | SLE-11-SP4 | sambai586 | Advisory build | 3.6.3-94.34.1 | SUSE-SU-2021:14709-1 |
| SUSE / openSUSE | SLE-11-SP4 | sambappc64 | Advisory build | 3.6.3-94.34.1 | SUSE-SU-2021:14709-1 |
| SUSE / openSUSE | SLE-11-SP4 | sambas390x | Advisory build | 3.6.3-94.34.1 | SUSE-SU-2021:14709-1 |
| SUSE / openSUSE | SLE-11-SP4 | sambax86_64 | Advisory build | 3.6.3-94.34.1 | SUSE-SU-2021:14709-1 |
| SUSE / openSUSE | SLE-12-SP2 | sambax86_64 | Advisory build | 4.4.2-38.42.1 | SUSE-SU-2021:1439-1 |
| SUSE / openSUSE | SLE-12-SP3 | sambaaarch64 | Advisory build | 4.6.16+git.282.cfafed5922a-3.61.1 | SUSE-SU-2021:1492-1 |
| SUSE / openSUSE | SLE-12-SP3 | sambappc64le | Advisory build | 4.6.16+git.282.cfafed5922a-3.61.1 | SUSE-SU-2021:1492-1 |
| SUSE / openSUSE | SLE-12-SP3 | sambas390x | Advisory build | 4.6.16+git.282.cfafed5922a-3.61.1 | SUSE-SU-2021:1492-1 |
| SUSE / openSUSE | SLE-12-SP3 | sambax86_64 | Advisory build | 4.6.16+git.282.cfafed5922a-3.61.1 | SUSE-SU-2021:1492-1 |
| SUSE / openSUSE | SLE-12-SP4 | sambaaarch64 | Advisory build | 4.6.16+git.282.cfafed5922a-3.61.1 | SUSE-SU-2021:1492-1 |
| SUSE / openSUSE | SLE-12-SP4 | sambappc64le | Advisory build | 4.6.16+git.282.cfafed5922a-3.61.1 | SUSE-SU-2021:1492-1 |
| SUSE / openSUSE | SLE-12-SP4 | sambas390x | Advisory build | 4.6.16+git.282.cfafed5922a-3.61.1 | SUSE-SU-2021:1492-1 |
| SUSE / openSUSE | SLE-12-SP4 | sambax86_64 | Advisory build | 4.6.16+git.282.cfafed5922a-3.61.1 | SUSE-SU-2021:1492-1 |
| SUSE / openSUSE | SLE-12-SP5 | sambaaarch64 | Advisory build | 4.10.18+git.269.dd608524c88-3.27.1 | SUSE-SU-2021:1438-1 |
| SUSE / openSUSE | SLE-12-SP5 | sambappc64le | Advisory build | 4.10.18+git.269.dd608524c88-3.27.1 | SUSE-SU-2021:1438-1 |
| SUSE / openSUSE | SLE-12-SP5 | sambas390x | Advisory build | 4.10.18+git.269.dd608524c88-3.27.1 | SUSE-SU-2021:1438-1 |
| SUSE / openSUSE | SLE-12-SP5 | sambax86_64 | Advisory build | 4.10.18+git.269.dd608524c88-3.27.1 | SUSE-SU-2021:1438-1 |
| SUSE / openSUSE | SLE-15 | sambaaarch64 | Advisory build | 4.7.11+git.316.432f0218290-4.54.1 | SUSE-SU-2021:1445-1 |
| SUSE / openSUSE | SLE-15 | sambappc64le | Advisory build | 4.7.11+git.316.432f0218290-4.54.1 | SUSE-SU-2021:1445-1 |
| SUSE / openSUSE | SLE-15 | sambas390x | Advisory build | 4.7.11+git.316.432f0218290-4.54.1 | SUSE-SU-2021:1445-1 |
| SUSE / openSUSE | SLE-15 | sambax86_64 | Advisory build | 4.7.11+git.316.432f0218290-4.54.1 | SUSE-SU-2021:1445-1 |
| SUSE / openSUSE | SLE-15-SP1 | sambaaarch64 | Advisory build | 4.9.5+git.432.d9b18c4f390-3.50.1 | SUSE-SU-2021:1498-1 |
| SUSE / openSUSE | SLE-15-SP1 | sambappc64le | Advisory build | 4.9.5+git.432.d9b18c4f390-3.50.1 | SUSE-SU-2021:1498-1 |
| SUSE / openSUSE | SLE-15-SP1 | sambas390x | Advisory build | 4.9.5+git.432.d9b18c4f390-3.50.1 | SUSE-SU-2021:1498-1 |
| SUSE / openSUSE | SLE-15-SP1 | sambax86_64 | Advisory build | 4.9.5+git.432.d9b18c4f390-3.50.1 | SUSE-SU-2021:1498-1 |
| SUSE / openSUSE | SLE-15-SP2 | sambaaarch64 | Advisory build | 4.11.14+git.247.8c858f7ee14-4.19.1 | SUSE-SU-2021:1444-1 |
| SUSE / openSUSE | SLE-15-SP2 | sambappc64le | Advisory build | 4.11.14+git.247.8c858f7ee14-4.19.1 | SUSE-SU-2021:1444-1 |
| SUSE / openSUSE | SLE-15-SP2 | sambas390x | Advisory build | 4.11.14+git.247.8c858f7ee14-4.19.1 | SUSE-SU-2021:1444-1 |
| SUSE / openSUSE | SLE-15-SP2 | sambax86_64 | Advisory build | 4.11.14+git.247.8c858f7ee14-4.19.1 | SUSE-SU-2021:1444-1 |
| SUSE / openSUSE | SLE-15-SP3 | sambaaarch64 | Advisory build | 4.13.6+git.211.555d60b24ba-3.7.1 | SUSE-SU-2021:3187-1 |
| SUSE / openSUSE | SLE-15-SP3 | sambappc64le | Advisory build | 4.13.6+git.211.555d60b24ba-3.7.1 | SUSE-SU-2021:3187-1 |
| SUSE / openSUSE | SLE-15-SP3 | sambas390x | Advisory build | 4.13.6+git.211.555d60b24ba-3.7.1 | SUSE-SU-2021:3187-1 |
| SUSE / openSUSE | SLE-15-SP3 | sambax86_64 | Advisory build | 4.13.6+git.211.555d60b24ba-3.7.1 | SUSE-SU-2021:3187-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | sambai586 | Advisory build | 4.11.14+git.247.8c858f7ee14-lp152.3.19.1 | OPENSUSE-SU-2021:0636-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | sambax86_64 | Advisory build | 4.11.14+git.247.8c858f7ee14-lp152.3.19.1 | OPENSUSE-SU-2021:0636-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | sambaaarch64 | Advisory build | 4.13.6+git.211.555d60b24ba-3.7.1 | OPENSUSE-SU-2021:3187-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | sambappc64le | Advisory build | 4.13.6+git.211.555d60b24ba-3.7.1 | OPENSUSE-SU-2021:3187-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | sambas390x | Advisory build | 4.13.6+git.211.555d60b24ba-3.7.1 | OPENSUSE-SU-2021:3187-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | sambax86_64 | Advisory build | 4.13.6+git.211.555d60b24ba-3.7.1 | OPENSUSE-SU-2021:3187-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | sambaaarch64 | Advisory build | 4.14.6+git.182.2205d5224e3-1.1 | OPENSUSE-SU-2024:11365-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | sambappc64le | Advisory build | 4.14.6+git.182.2205d5224e3-1.1 | OPENSUSE-SU-2024:11365-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | sambas390x | Advisory build | 4.14.6+git.182.2205d5224e3-1.1 | OPENSUSE-SU-2024:11365-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | sambax86_64 | Advisory build | 4.14.6+git.182.2205d5224e3-1.1 | OPENSUSE-SU-2024:11365-1 |
| Ubuntu | esm | samba | Advisory build | 2:4.3.11+dfsg-0ubuntu0.14.04.20+esm11 | USN-4931-1 |
| Ubuntu | focal | samba | Advisory build | 2:4.11.6+dfsg-0ubuntu1.8 | USN-4930-1 |
| Ubuntu | xenial | samba | Advisory build | 2:4.3.11+dfsg-0ubuntu0.16.04.34 | USN-4930-1 |
| AlmaLinux | 8 | libwbclient-devel | Advisory build | 4.13.3-5.el8_4 | ALSA-2021:4058 |
| AlmaLinux | 8 | samba-devel | Advisory build | 4.13.3-5.el8_4 | ALSA-2021:4058 |
| Oracle Linux | 7 | ctdbaarch64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Oracle Linux | 7 | ctdbx86_64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Oracle Linux | 7 | ctdb-testsaarch64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Oracle Linux | 7 | ctdb-testsx86_64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Oracle Linux | 7 | libsmbclientaarch64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Oracle Linux | 7 | libsmbclientx86_64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Oracle Linux | 7 | libsmbclient-develaarch64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Oracle Linux | 7 | libsmbclient-develx86_64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Oracle Linux | 7 | libwbclientaarch64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Oracle Linux | 7 | libwbclientx86_64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Oracle Linux | 7 | libwbclient-develaarch64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
| Oracle Linux | 7 | libwbclient-develx86_64 | Advisory build | 0:4.10.16-15.el7_9 | ELSA-2021-2313 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | samba | samba 4.14.1, samba 4.13.6, samba 4.12.13 (affected) | redhat · cna |
Weaknesses
1- CWE-125
References
7- https://bugzilla.redhat.com/show_bug.cgi?id=1949442
- [debian-lts-announce] 20210529 [SECURITY] [DLA 2668-1] samba security update https://lists.debian.org/debian-lts-announce/2021/05/msg00023.html
- FEDORA-2021-1d0807008b https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3EP2VJ73OVBPVSOSTVOMGIEQA3MWF6F7/
- FEDORA-2021-7026246ea9 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZAF6L2M6CNAJ2YYYGXPWETTW5YLCWTVT/
- GLSA-202105-22 https://security.gentoo.org/glsa/202105-22
- https://security.netapp.com/advisory/ntap-20210430-0001/
- https://www.samba.org/samba/security/CVE-2021-20254.html
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 54efc8d1c9e586d7b8aa2ace80b67de8903e101ce054c910a6197cfe3f2c078d
- Ingested
- 23 Sep 2026, 07:52:16 UTC
- Source record
- Official CVE record