CVE-2021-20254

Source
https://cve.org/CVERecord?id=CVE-2021-20254
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20254.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-20254
Downstream
ALPINE (1)
ALSA (1)
AZL (2)
CLEANSTART (1)
DEBIAN (1)
ECHO (1)
MGASA (1)
OESA (1)
openSUSE (3)
RHSA (6)
RLSA (1)
SUSE (11)
UBUNTU (1)
Related
Published
2021-05-05T14:15:07Z
Modified
2026-10-24T10:30:34Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "cpes": [
                "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "range": [
                        {
                            "introduced": "9.0"
                        },
                        {
                            "last_affected": "9.0"
                        }
                    ],
                    "source": "CPE_STRING"
                }
            ],
            "vendor_product": "debian:debian_linux"
        },
        {
            "cpes": [
                "cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*",
                "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "range": [
                        {
                            "introduced": "32"
                        },
                        {
                            "last_affected": "32"
                        },
                        {
                            "introduced": "33"
                        },
                        {
                            "last_affected": "33"
                        }
                    ],
                    "source": "CPE_STRING"
                }
            ],
            "vendor_product": "fedoraproject:fedora"
        },
        {
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "range": [
                        {
                            "introduced": "7.0"
                        },
                        {
                            "last_affected": "7.0"
                        },
                        {
                            "introduced": "8.0"
                        },
                        {
                            "last_affected": "8.0"
                        }
                    ],
                    "source": "CPE_STRING"
                }
            ],
            "vendor_product": "redhat:enterprise_linux"
        }
    ]
}
References

Affected packages

Git / github.com/samba-team/samba

Affected ranges

Type
GIT
Repo
https://github.com/samba-team/samba
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "3.6.0"
                },
                {
                    "fixed": "4.12.15"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "4.13.0"
                },
                {
                    "fixed": "4.13.8"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "4.14.0"
                },
                {
                    "fixed": "4.14.4"
                }
            ],
            "source": "CPE_RANGE"
        }
    ]
}

Affected versions

ldb-2.*
ldb-2.2.1
samba-4.*
samba-4.13.0
samba-4.13.2
samba-4.13.3
samba-4.13.4
samba-4.13.5
samba-4.13.6
samba-4.13.7
samba-4.14.0
samba-4.14.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20254.json"