Vulnerability · Published May 5, 2021 · Assigned by redhat
CVE-2021-20254
Medium 6.8
In plain English
A medium-severity out-of-bounds read in samba. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libsmbclient-devel | 4.13.3-5.el8_4 | ALSA-2021:4058 |
| AlmaLinux:8 | libwbclient-devel | 4.13.3-5.el8_4 | ALSA-2021:4058 |
| AlmaLinux:8 | samba-devel | 4.13.3-5.el8_4 | ALSA-2021:4058 |
| Alpine:v3.20 | samba | 4.14.4-r0 | ALPINE-CVE-2021-20254 |
| Alpine:v3.21 | samba | 4.14.4-r0 | ALPINE-CVE-2021-20254 |
| Alpine:v3.22 | samba | 4.14.4-r0 | ALPINE-CVE-2021-20254 |
| Alpine:v3.23 | samba | 4.14.4-r0 | ALPINE-CVE-2021-20254 |
| Alpine:v3.24 | samba | 4.14.4-r0 | ALPINE-CVE-2021-20254 |
| Debian:12 | samba | 2:4.13.5+dfsg-2 | DEBIAN-CVE-2021-20254 |
| Debian:13 | samba | 2:4.13.5+dfsg-2 | DEBIAN-CVE-2021-20254 |
| Debian:14 | samba | 2:4.13.5+dfsg-2 | DEBIAN-CVE-2021-20254 |
| Rocky Linux:8 | samba | 0:4.13.3-5.el8_4 | RLSA-2021:4058 |
Affected products (as reported)
Weakness: CWE-125
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1949442 x_refsource_MISC
- https://www.samba.org/samba/security/CVE-2021-20254.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210430-0001/ x_refsource_MISC
- FEDORA-2021-1d0807008b vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-7026246ea9 vendor-advisory, x_refsource_FEDORA
- GLSA-202105-22 vendor-advisory, x_refsource_GENTOO
- [debian-lts-announce] 20210529 [SECURITY] [DLA 2668-1] samba security update mailing-list, x_refsource_MLIST