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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2611-1, DSA-4884-1, ELA-393-1
Debian Bugs985935

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ldb (PTS)jessie, jessie (lts)2:1.1.20-0+deb8u3fixed
stretch (security), stretch (lts), stretch2:1.1.27-1+deb9u2fixed
buster, buster (security)2:1.5.1+really1.4.6-3+deb10u1fixed
bullseye (security), bullseye2:2.2.3-2~deb11u2fixed
samba (PTS)jessie, jessie (lts)2:4.2.14+dfsg-0+deb8u15vulnerable
stretch (security), stretch (lts), stretch2:4.5.16+dfsg-1+deb9u4vulnerable
buster2:4.9.5+dfsg-5+deb10u3vulnerable
buster (security)2:4.9.5+dfsg-5+deb10u4vulnerable
bullseye2:4.13.13+dfsg-1~deb11u5vulnerable
bullseye (security)2:4.13.13+dfsg-1~deb11u6vulnerable
bookworm (security), bookworm2:4.17.12+dfsg-0+deb12u1fixed
trixie2:4.19.5+dfsg-1fixed
sid2:4.19.6+dfsg-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ldbsourcejessie2:1.1.20-0+deb8u3ELA-393-1
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)2:4.13.13+dfsg-1unimportant

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