CVE-2021-20277
Vulnerability Summary
Timeline
Description
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.
CVSS Metrics
- v3.1•HIGH•Score: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- v3.1•HIGH•Score: 7.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H
- v2.0•MEDIUM•Score: 5AV:N/AC:L/Au:N/C:N/I:N/A:P
EPSS Trends
Current EPSS score: 4.33%• Percentile: 91%
Techniques & Countermeasures
- CWE-125•Out-of-bounds Read
The product reads data past the end, or before the beginning, of the intended buffer.
- CWE-787•Out-of-bounds Write
The product writes data past the end, or before the beginning, of the intended buffer.
Affected Systems
- alpine•samba
≥ 4.0.0, < 4.12.14-r0 | ≥ 4.0.0, < 4.13.7-r0 | ≥ 4.0.0, < 4.14.2-r0 | ≥ 4.0.0, < 4.14.2-r0 | ≥ 4.0.0, < 4.14.2-r0 | ≥ 4.0.0, < 4.14.2-r0 | ≥ 4.0.0, < 4.14.2-r0 | ≥ 4.0.0, < 4.14.2-r0 | ≥ 4.0.0, < 4.14.2-r0 | ≥ 4.0.0, < 4.14.2-r0 | ≥ 4.0.0, < 4.14.2-r0 | ≥ 4.0.0, < 4.14.2-r0 | ≥ 4.0.0, < 4.14.2-r0
- debian•ldb
< 2:2.2.0-3.1
- debian•samba
all | < 2:4.13.13+dfsg-1 | < 2:4.13.13+dfsg-1 | < 2:4.13.13+dfsg-1
- debian•debian_linux
9.0 | 10.0
- fedoraproject•fedora
32 | 33 | 34
- redhat•ldb-tools
< 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:2.1.3-3.el8_3 | < 0:2.0.7-4.el8_2 | < 0:1.5.4-3.el8_1 | < 0:1.4.2-2.el7_7 | < 0:1.4.2-2.el7_7 | < 0:1.3.4-2.el7_6
- redhat•ldb-tools-debuginfo
< 0:2.1.3-3.el8_3 | < 0:2.0.7-4.el8_2 | < 0:1.5.4-3.el8_1
- redhat•libldb
< 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:2.1.3-3.el8_3 | < 0:2.0.7-4.el8_2 | < 0:1.5.4-3.el8_1 | < 0:1.4.2-2.el7_7 | < 0:1.4.2-2.el7_7 | < 0:1.3.4-2.el7_6
- redhat•libldb-debuginfo
< 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:2.1.3-3.el8_3 | < 0:2.0.7-4.el8_2 | < 0:1.5.4-3.el8_1 | < 0:1.4.2-2.el7_7 | < 0:1.4.2-2.el7_7 | < 0:1.3.4-2.el7_6
- redhat•libldb-debugsource
< 0:2.1.3-3.el8_3 | < 0:2.0.7-4.el8_2 | < 0:1.5.4-3.el8_1
- redhat•libldb-devel
< 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:2.1.3-3.el8_3 | < 0:2.0.7-4.el8_2 | < 0:1.5.4-3.el8_1 | < 0:1.4.2-2.el7_7 | < 0:1.4.2-2.el7_7 | < 0:1.3.4-2.el7_6
- redhat•pyldb
< 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:1.4.2-2.el7_7 | < 0:1.4.2-2.el7_7 | < 0:1.3.4-2.el7_6
- redhat•pyldb-devel
< 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:1.5.4-2.el7_9 | < 0:1.4.2-2.el7_7 | < 0:1.4.2-2.el7_7 | < 0:1.3.4-2.el7_6
- redhat•python3-ldb
< 0:2.1.3-3.el8_3 | < 0:2.0.7-4.el8_2 | < 0:1.5.4-3.el8_1
- redhat•python3-ldb-debuginfo
< 0:2.1.3-3.el8_3 | < 0:2.0.7-4.el8_2 | < 0:1.5.4-3.el8_1
- samba•samba
≥ 4.0.0, < 4.12.13 | ≥ 4.13.0, < 4.13.6 | ≥ 4.14.0, < 4.14.1
References (27)
- https://security.netapp.com/advisory/ntap-20210326-0007/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X5J3B6PN5XMXF3OHYBNHDKZ3XFSUGY4L/
- https://lists.debian.org/debian-lts-announce/2021/03/msg00036.html
- https://www.debian.org/security/2021/dsa-4884
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZXP3ONIY6MB4C5LDZV4YL5KJCES3UX24/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VLZ74IF2N75VQSIHBL4B3P5WKWQCXSRY/
- https://bugzilla.redhat.com/show_bug.cgi?id=1941402
- https://www.samba.org/samba/security/CVE-2021-20277.html
- https://security.gentoo.org/glsa/202105-22
- https://access.redhat.com/errata/RHSA-2021:1072
- https://access.redhat.com/security/updates/classification/#important
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_1072.json
- https://access.redhat.com/security/cve/CVE-2021-20277
- https://www.cve.org/CVERecord?id=CVE-2021-20277
- https://nvd.nist.gov/vuln/detail/CVE-2021-20277
- https://access.redhat.com/errata/RHSA-2021:1197
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_1197.json
- https://access.redhat.com/errata/RHSA-2021:1213
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_1213.json
- https://access.redhat.com/errata/RHSA-2021:1214
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_1214.json
- https://access.redhat.com/errata/RHSA-2021:2331
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_2331.json
- https://access.redhat.com/errata/RHSA-2021:2786
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_2786.json
- https://security-tracker.debian.org/tracker/CVE-2021-20277
- https://security.alpinelinux.org/vuln/CVE-2021-20277