Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.5
CVE-2021-20277: A 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 r...
CVE-2021-20277 · published 5 years ago
Summary
A 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.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| samba | samba |
>= 4.0.0, < 4.12.13 >= 4.13.0, < 4.13.6 >= 4.14.0, < 4.14.1 cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:* |
| debian | debian_linux |
9.0 10.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
| fedoraproject | fedora |
32 33 34 cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* |
Original advisory text
A 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 r...
A 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.
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1941402 Issue Tracking Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/03/msg00036.html Mailing List Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro...
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro...
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro...
- https://security.gentoo.org/glsa/202105-22 Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210326-0007/ Third Party Advisory
- https://www.debian.org/security/2021/dsa-4884 Third Party Advisory
- https://www.samba.org/samba/security/CVE-2021-20277.html Vendor Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-125Out-of-bounds Read
CWE-787Out-of-bounds Write
Timeline
Published12 May 2021
Updated4 Nov 2026
First seen29 Sep 2026
Sources
CVE-2021-20277 · NVD
Track software like this
Free during beta