Skip to content
OpenAdvisories
Unscored Public exploit CVE-2016-2118 EUVD-2016-3221GHSA-9r74-96x3-hvq9

The MS-SAMR and MS-LSAD protocol implementations in Samba 3.x and 4.x before 4.2.11, 4.3.x before 4.3.8, and 4.4.x before 4.4.2 mishandle D…

Published Apr 12, 2016 · Updated Aug 5, 2024 · Assigned by redhat

Description

The MS-SAMR and MS-LSAD protocol implementations in Samba 3.x and 4.x before 4.2.11, 4.3.x before 4.3.8, and 4.4.x before 4.4.2 mishandle DCERPC connections, which allows man-in-the-middle attackers to perform protocol-downgrade attacks and impersonate users by modifying the client-server data stream, aka "BADLOCK."

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 samba 2:4.3.7+dfsg-1 —
Debian 13 samba 2:4.3.7+dfsg-1 —
Debian 12 samba 2:4.3.7+dfsg-1 —
Debian 8 samba 2:4.2.10+dfsg-0+deb8u1 DSA-3548-1
Debian 7 samba 2:3.6.6-6+deb7u9 DSA-3548-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS samba 2:4.3.8+dfsg-0ubuntu1 —
Ubuntu 14.04 LTS samba 2:4.3.8+dfsg-0ubuntu0.14.04.2 USN-2950-1
ReleasePackageFixed inAdvisory
RHEL 7 ctdb +26 4.2.10-6.el7_2 RHSA-2016:0612
RHEL 7 ipa +6 4.2.0-15.el7_2.6.1 RHSA-2016:0612
RHEL 7 libtdb +3 1.3.8-1.el7_2 RHSA-2016:0612
RHEL 7 libtevent +2 0.9.26-1.el7_2 RHSA-2016:0612
RHEL 7 openchange +3 2.0-10.el7_2 RHSA-2016:0612
RHEL 7 pyldb +4 1.1.25-1.el7_2 RHSA-2016:0612
RHEL 7 pytalloc +3 2.1.5-1.el7_2 RHSA-2016:0612
RHEL 6 ipa +6 3.0.0-47.el6_7.2 RHSA-2016:0612
RHEL 6 libtdb +3 1.3.8-1.el6_7 RHSA-2016:0612
RHEL 6 libtevent +2 0.9.26-2.el6_7 RHSA-2016:0612
RHEL 6 openchange +3 1.0-7.el6_7 RHSA-2016:0612
RHEL 6 pyldb +4 1.1.25-2.el6_7 RHSA-2016:0612
RHEL 6 pytalloc +3 2.1.5-1.el6_7 RHSA-2016:0612
RHEL 6 samba +12 3.6.23-30.el6_7 RHSA-2016:0611
RHEL 6 samba4 +12 4.2.10-6.el6_7 RHSA-2016:0612
RHEL 5 samba +5 3.0.33-3.41.el5_11 RHSA-2016:0621
RHEL 5 samba3x +7 3.6.23-12.el5_11 RHSA-2016:0613
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhel Mission Critical 6 evolution-mapi +1 0.28.3-8.el6_2 RHSA-2016:0620
Red Hat Rhel Mission Critical 6 openchange +3 1.0-1.el6_2 RHSA-2016:0620
Red Hat Rhel Mission Critical 6 pyldb +4 1.1.25-2.el6_2 RHSA-2016:0620
Red Hat Rhel Mission Critical 6 samba +11 3.6.23-30.el6_2 RHSA-2016:0619
Red Hat Rhel Mission Critical 6 samba4 +3 4.2.10-6.el6_2 RHSA-2016:0620
Red Hat Rhel Mission Critical 6 sssd +5 1.5.1-66.el6_2.5 RHSA-2016:0620
Red Hat Rhel Mission Critical 5 samba +5 3.0.33-3.30.el5_6 RHSA-2016:0623
Red Hat Rhel Mission Critical 5 samba3x +7 3.6.23-12.el5_6 RHSA-2016:0624
RHEL 7.1 EUS ctdb +25 4.2.10-5.ael7b_1 RHSA-2016:0618
RHEL 7.1 EUS ipa +2 4.1.0-18.ael7b_1.6 RHSA-2016:0618
RHEL 7.1 EUS ipa-server +2 4.1.0-18.el7_1.6 RHSA-2016:0618
RHEL 7.1 EUS libtdb +3 1.3.8-1.ael7b_1 RHSA-2016:0618
RHEL 7.1 EUS libtevent +2 0.9.26-1.ael7b_1 RHSA-2016:0618
RHEL 7.1 EUS openchange +3 2.0-4.ael7b_1.1 RHSA-2016:0618
RHEL 7.1 EUS pyldb +4 1.1.25-1.ael7b_1 RHSA-2016:0618
RHEL 7.1 EUS pytalloc +3 2.1.5-1.ael7b_1 RHSA-2016:0618
RHEL 7.1 EUS samba-vfs-glusterfs 4.2.10-5.el7_1 RHSA-2016:0618
RHEL 6.6 EUS ipa +6 3.0.0-42.el6_6.1 RHSA-2016:0620
RHEL 6.6 EUS openchange +3 1.0-7.el6_6 RHSA-2016:0620
RHEL 6.6 EUS pyldb +4 1.1.25-2.el6_6 RHSA-2016:0620
RHEL 6.6 EUS samba +12 3.6.23-30.el6_6 RHSA-2016:0619
RHEL 6.6 EUS samba4 +12 4.2.10-6.el6_6 RHSA-2016:0620
RHEL 6.5 AUS ipa +6 3.0.0-37.el6_5.1 RHSA-2016:0620
RHEL 6.5 AUS openchange +3 1.0-7.el6_5 RHSA-2016:0620
RHEL 6.5 AUS pyldb +4 1.1.25-2.el6_5 RHSA-2016:0620
RHEL 6.5 AUS samba +11 3.6.23-30.el6_5 RHSA-2016:0619
RHEL 6.5 AUS samba4 +12 4.2.10-6.el6_5 RHSA-2016:0620
RHEL 6.5 AUS sssd +10 1.9.2-129.el6_5.7 RHSA-2016:0620
RHEL 6.4 AUS ipa +6 3.0.0-26.el6_4.5 RHSA-2016:0620
RHEL 6.4 AUS openchange +3 1.0-5.el6_4 RHSA-2016:0620
RHEL 6.4 AUS pyldb +4 1.1.25-2.el6_4 RHSA-2016:0620
RHEL 6.4 AUS samba +11 3.6.23-30.el6_4 RHSA-2016:0619
RHEL 6.4 AUS samba4 +12 4.2.10-6.el6_4 RHSA-2016:0620
RHEL 6.4 AUS sssd +10 1.9.2-82.12.el6_4 RHSA-2016:0620
RHEL 5.9 AUS samba +5 3.0.33-3.40.el5_9 RHSA-2016:0623
RHEL 5.9 AUS samba3x +7 3.6.23-12.el5_9 RHSA-2016:0624
RHEL 4 ELS samba +3 3.0.33-3.37.el4 RHSA-2016:0625
Red Hat Gluster Storage 3 ctdb +26 4.2.11-2.el6rhs RHSA-2016:0614
Red Hat Gluster Storage 3 libtdb +3 1.3.8-1.el6rhs RHSA-2016:0614
Red Hat Gluster Storage 3 libtevent +2 0.9.26-1.el6rhs RHSA-2016:0614
Red Hat Gluster Storage 3 pyldb +4 1.1.24-1.el6rhs RHSA-2016:0614
Red Hat Gluster Storage 3 pytalloc +3 2.1.5-1.el6rhs RHSA-2016:0614
ReleasePackageFixed inAdvisory
SLES 12 SP1 samba 4.2.4-16.1 SUSE-SU-2016:1024-1
SLES 12 samba 4.2.4-18.17.1 SUSE-SU-2016:1022-1
SLES 11 SP4 samba 3.6.3-76.1 SUSE-SU-2016:1023-1
SLES 11 SP4 samba-doc 3.6.3-76.2 SUSE-SU-2016:1023-1
SLES 11 SP3 samba 3.6.3-76.1 SUSE-SU-2016:1023-1
SLES 11 SP3 samba-doc 3.6.3-76.2 SUSE-SU-2016:1023-1
SLES 11 SP2 samba +1 3.6.3-52.1 SUSE-SU-2016:1028-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP1 samba 4.2.4-16.1 SUSE-SU-2016:1024-1
SLES for SAP 12 samba 4.2.4-18.17.1 SUSE-SU-2016:1022-1
SLES for SAP 11 SP4 samba 3.6.3-76.1 SUSE-SU-2016:1023-1
SLES for SAP 11 SP4 samba-doc 3.6.3-76.2 SUSE-SU-2016:1023-1
SUSE OpenStack Cloud 5 samba 3.6.3-76.1 SUSE-SU-2016:1023-1
SUSE OpenStack Cloud 5 samba-doc 3.6.3-76.2 SUSE-SU-2016:1023-1
SUSE Manager Proxy 2.1 samba 3.6.3-76.1 SUSE-SU-2016:1023-1
SUSE Manager Proxy 2.1 samba-doc 3.6.3-76.2 SUSE-SU-2016:1023-1
SUSE Manager 2.1 samba 3.6.3-76.1 SUSE-SU-2016:1023-1
SUSE Manager 2.1 samba-doc 3.6.3-76.2 SUSE-SU-2016:1023-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed samba 4.5.0-1.1 openSUSE-SU-2024:10069-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 ctdb +26 4.2.10-6.el7_2 ELSA-2016-0612
Oracle Linux 7 ipa-client +5 4.2.0-15.0.1.el7_2.6.1 ELSA-2016-0612
Oracle Linux 7 ipa-server-selinux 3.0.0-47.el6_7.2 ELSA-2016-0612
Oracle Linux 7 libtdb +3 1.3.8-1.el7_2 ELSA-2016-0612
Oracle Linux 7 libtevent +2 0.9.26-2.el6_7 ELSA-2016-0612
Oracle Linux 7 openchange +3 2.0-10.el7_2 ELSA-2016-0612
Oracle Linux 7 pyldb +4 1.1.25-2.el6_7 ELSA-2016-0612
Oracle Linux 7 pytalloc +3 2.1.5-1.el7_2 ELSA-2016-0612
Oracle Linux 7 samba4 +12 4.2.10-6.el6_7 ELSA-2016-0612

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 19

References