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
Related
Published
2021-05-05T14:15:07.883Z
Modified
2026-03-15T14:42:41.024205Z
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.

References

Affected packages

Git / github.com/samba-team/samba

Affected ranges

Type
GIT
Repo
https://github.com/samba-team/samba
Events
Database specific
{
    "versions": [
        {
            "introduced": "3.6.0"
        },
        {
            "fixed": "4.12.15"
        },
        {
            "introduced": "4.13.0"
        },
        {
            "fixed": "4.13.8"
        },
        {
            "introduced": "4.14.0"
        },
        {
            "fixed": "4.14.4"
        }
    ]
}

Affected versions

ldb-2.*
ldb-2.2.1
ldb-2.3.0
samba-4.*
samba-4.13.0
samba-4.13.1
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.1
samba-4.14.2
samba-4.14.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20254.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "32"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "33"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "8.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "9.0"
            }
        ]
    }
]