CVE-2020-27840

NameCVE-2020-27840
DescriptionA flaw was found in samba. Spaces used in a string around a domain name (DN), while supposed to be ignored, can cause invalid DN strings with spaces to instead write a zero-byte into out-of-bounds memory, resulting in a crash. 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 Bugs985936

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 (security), buster, buster (lts)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+deb8u16vulnerable
stretch (security)2:4.5.16+dfsg-1+deb9u4vulnerable
stretch (lts), stretch2:4.5.16+dfsg-1+deb9u5vulnerable
buster (security), buster, buster (lts)2:4.9.5+dfsg-5+deb10u5vulnerable
bullseye (security), bullseye2:4.13.13+dfsg-1~deb11u6vulnerable
bookworm (security), bookworm2:4.17.12+dfsg-0+deb12u1fixed
trixie2:4.21.2+dfsg-3fixed
sid2:4.21.2+dfsg-4fixed

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.1985936
sambasource(unstable)2:4.13.13+dfsg-1unimportant

Notes

https://www.samba.org/samba/security/CVE-2020-27840.html
https://bugzilla.samba.org/show_bug.cgi?id=14595
https://git.samba.org/?p=samba.git;a=commitdiff;h=1996b79f376b459bb964a6344ca5f264e7d6e2ec
https://git.samba.org/?p=samba.git;a=commitdiff;h=dbb3e65f7e382adf5fa6a6afb3d8684aca3f201a
https://git.samba.org/?p=samba.git;a=commitdiff;h=9532c44baea130db74f866e1472cb871936cd3dd
Samba uses the System ldb library

Search for package or bug name: Reporting problems