CVE-2021-20254: Medium severity samba vulnerability

Published Apr 14, 2021
·
Updated

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.

Other sources

As per upstream:

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.

Most commonly this flaw caused the calling code to crash, but an alert user (Peter Eriksson, IT Department, Linköping University) found this flaw by noticing an unprivileged user was able to delete a file within a network share that they should have been disallowed access to.

Analysis of the code paths has not allowed us to discover a way for a remote user to be able to trigger this flaw reproducibly or on demand, but this CVE has been issued out of an abundance of caution.

Red Hat

Affected Software

11 affected componentsFixes available
redhat/samba<4.14.4
4.14.4
redhat/samba<4.13.8
4.13.8
redhat/samba<4.12.15
4.12.15
Samba Samba>=3.6.0<4.12.15
Samba Samba>=4.13.0<4.13.8
Samba Samba>=4.14.0<4.14.4
Fedoraproject Fedora=32
Fedoraproject Fedora=33
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
Debian Debian Linux=9.0

Event History

May 5, 2021
CVE Published
via MITRE·01:36 PM
Data Sourced
via MITRE·01:36 PM
DescriptionWeakness

Frequently Asked Questions

1

What is CVE-2021-20254?

CVE-2021-20254 is a vulnerability found in Samba that allows the smbd file server to read data beyond the end of the array in the case of a negative cache entry.

2

What is the severity of CVE-2021-20254?

The severity of CVE-2021-20254 is medium, with a CVSS score of 6.8.

3

Which software versions are affected by CVE-2021-20254?

Samba versions 3.6.0 to 4.12.15, 4.13.0 to 4.13.8, and 4.14.0 to 4.14.4 are affected by CVE-2021-20254.

4

How can I fix CVE-2021-20254?

To fix CVE-2021-20254, update Samba to version 4.14.4, 4.13.8, or 4.12.15, depending on the version you are using.

5

What is the Common Weakness Enumeration (CWE) ID for CVE-2021-20254?

The CWE ID for CVE-2021-20254 is 125.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203