CVE-2021-20277

NameCVE-2021-20277
DescriptionA flaw was found in Samba's libldb. Multiple, consecutive leading spaces in an LDAP attribute can lead to an out-of-bounds memory write, leading to a crash of the LDAP server process handling the request. The highest threat from this vulnerability is to system availability.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-2611-1, DSA-4884-1
NVD severitymedium
Debian Bugs985935

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ldb (PTS)stretch2:1.1.27-1+deb9u1vulnerable
stretch (security)2:1.1.27-1+deb9u2fixed
buster, buster (security)2:1.5.1+really1.4.6-3+deb10u1fixed
bullseye, sid2:2.2.0-3.1fixed
samba (PTS)stretch2:4.5.16+dfsg-1+deb9u2vulnerable
stretch (security)2:4.5.16+dfsg-1+deb9u4vulnerable
buster2:4.9.5+dfsg-5vulnerable
buster (security)2:4.9.5+dfsg-5+deb10u1vulnerable
bullseye, sid2:4.13.5+dfsg-2vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ldbsourcestretch2:1.1.27-1+deb9u2DLA-2611-1
ldbsourcebuster2:1.5.1+really1.4.6-3+deb10u1DSA-4884-1
ldbsource(unstable)2:2.2.0-3.1985935
sambasource(unstable)(unfixed)unimportant

Notes

https://www.samba.org/samba/security/CVE-2021-20277.html
https://bugzilla.samba.org/show_bug.cgi?id=14655
https://git.samba.org/?p=samba.git;a=commitdiff;h=ea4bd2c437fbb5801fb82e2a038d9cdb5abea4c0
https://git.samba.org/?p=samba.git;a=commitdiff;h=1fe8c790b2294fd10fe9c9c6254ecf2b6c00b709
Samba uses the System ldb library

Search for package or bug name: Reporting problems