Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 778026 (CVE-2020-27840, CVE-2021-20277) - <net-fs/samba-4.13.7: multiple vulnerabilities (CVE-2020-27840, CVE-2021-20277)
Summary: <net-fs/samba-4.13.7: multiple vulnerabilities (CVE-2020-27840, CVE-2021-20277)
Alias: CVE-2020-27840, CVE-2021-20277
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor with 1 vote (vote)
Assignee: Gentoo Security
Whiteboard: B3 [stable]
Depends on: 778071
  Show dependency tree
Reported: 2021-03-24 21:12 UTC by John Helmert III
Modified: 2021-05-06 07:50 UTC (History)
7 users (show)

See Also:
Package list:
net-fs/samba-4.13.7 amd64 arm arm64 ppc ppc64 sparc x86 net-dns/resolv_wrapper-1.1.7 amd64 arm ppc ppc64 sparc x86 sys-libs/ldb-2.2.1 amd64 arm arm64 ppc ppc64 sparc x86 net-libs/socket_wrapper-1.3.2 amd64 arm arm64 ppc ppc64 sparc x86 sys-libs/talloc-2.3.2 amd64 arm arm64 hppa ppc ppc64 sparc x86
Runtime testing required: ---
nattka: sanity-check+


Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III gentoo-dev Security 2021-03-24 21:12:26 UTC
From URL:


o  CVE-2020-27840:
   An anonymous attacker can crash the Samba AD DC LDAP server by sending easily
   crafted DNs as part of a bind request. More serious heap corruption is likely
   also possible.

o  CVE-2021-20277:
   User-controlled LDAP filter strings against the AD DC LDAP server may crash
   the LDAP server.

Fixed in 4.14.2, 4.13.7, and 4.12.14. Please bump.
Comment 1 Larry the Git Cow gentoo-dev 2021-03-25 08:30:02 UTC
The bug has been referenced in the following commit(s):

commit 794ecf10b2db99d01345ed5ec87085da56f8ef89
Author:     Lars Wendler <>
AuthorDate: 2021-03-25 08:28:15 +0000
Commit:     Lars Wendler <>
CommitDate: 2021-03-25 08:29:29 +0000

    net-fs/samba: Security bump to versions 4.12.13, 4.13.7 and 4.14.2
    Dropped keywords on alpha and sparc due to sys-libs/libunwind dep
    Signed-off-by: Lars Wendler <>

 net-fs/samba/Manifest             |   3 +
 net-fs/samba/samba-4.12.14.ebuild | 329 +++++++++++++++++++++++++++++++++++++
 net-fs/samba/samba-4.13.7.ebuild  | 332 +++++++++++++++++++++++++++++++++++++
 net-fs/samba/samba-4.14.2.ebuild  | 336 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 1000 insertions(+)
Comment 2 Lars Wendler (Polynomial-C) gentoo-dev 2021-03-25 08:31:52 UTC
We haven't met a decision yet which version to stabilize, so please be patient with us :)
Comment 3 Sam James archtester gentoo-dev Security 2021-03-25 11:35:20 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #2)
> We haven't met a decision yet which version to stabilize, so please be
> patient with us :)

Comment 4 Sam James archtester gentoo-dev Security 2021-04-18 00:38:59 UTC
Comment 5 Lars Wendler (Polynomial-C) gentoo-dev 2021-04-19 09:57:47 UTC
Still not sure what to do regarding samba's automagic libunwind dependency and alpha/sparc keywords...

Any suggestions?
Comment 6 Andreas Sturmlechner gentoo-dev 2021-04-19 11:35:48 UTC
!sparc? ( !alpha? ( sys-libs/libunwind:= ) )

It seems pretty safe to assume these arches won't get libunwind keyworded any time soon.
Comment 7 Larry the Git Cow gentoo-dev 2021-04-19 11:52:30 UTC
The bug has been referenced in the following commit(s):

commit 4624c893d68d922a4abb4cbf75cccdaf1bf04d59
Author:     Lars Wendler <>
AuthorDate: 2021-04-19 11:49:26 +0000
Commit:     Lars Wendler <>
CommitDate: 2021-04-19 11:52:06 +0000

    net-fs/samba: Restored ~alpha and ~sparc keywords
    Thanks-to: Andreas Sturmlechner <>
    Signed-off-by: Lars Wendler <>

 net-fs/samba/samba-4.12.14.ebuild | 8 ++++----
 net-fs/samba/samba-4.13.7.ebuild  | 6 +++---
 net-fs/samba/samba-4.14.2.ebuild  | 6 +++---
 3 files changed, 10 insertions(+), 10 deletions(-)
Comment 8 Rolf Eike Beer 2021-04-21 18:56:03 UTC
hppa stable
Comment 9 Sergei Trofimovich gentoo-dev 2021-05-02 22:15:13 UTC
ppc stable
Comment 10 Sergei Trofimovich gentoo-dev 2021-05-06 07:50:03 UTC
ppc64 stable