CVE-2016-2123
A flaw was found in samba versions 4.0.0 to 4.5.2. The Samba routine ndr_pull_dnsp_name contains an integer wrap problem, leading to an attacker-controlled memory overwrite. ndr_pull_dnsp_name parses data from the Samba Active Directory ldb database. Any user who can write to the dnsRecord attribute over LDAP can trigger this memory corruption. By default, all authenticated LDAP users can write to the dnsRecord attribute on new DNS objects. This makes the defect a remote privilege escalation.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | samba | Fixed | 2:4.3.11+dfsg-0ubuntu0.16.04.3 | UBUNTU-CVE-2016-2123 |
| Ubuntu 14.04 | samba | Fixed | 2:4.3.11+dfsg-0ubuntu0.14.04.4 | UBUNTU-CVE-2016-2123 |
| Debian 14 | samba | Fixed | 2:4.5.2+dfsg-2 | DEBIAN-CVE-2016-2123 |
| Debian 13 | samba | Fixed | 2:4.5.2+dfsg-2 | DEBIAN-CVE-2016-2123 |
| Debian 12 | samba | Fixed | 2:4.5.2+dfsg-2 | DEBIAN-CVE-2016-2123 |
| Red Hat Enterprise Linux 7 | ctdb | Not affected | ||
| Red Hat Enterprise Linux 7 | ctdb-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ctdb-tests | Not affected | ||
| Red Hat Enterprise Linux 7 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 7 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 7 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | samba | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-dc | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-python | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-python-test | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-test-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-vfs-glusterfs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 6 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 6 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | samba | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-doc | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-domainjoin-gui | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-glusterfs | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-swat | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4 | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-client | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-common | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-dc | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-pidl | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-python | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-swat | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-test | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-winbind | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 5 | samba | Not affected | ||
| Red Hat Enterprise Linux 5 | samba3x | Not affected | ||
| Alpine Linux 3.4 | samba | Fixed | 4.4.5-r2 | ALPINE-CVE-2016-2123 |
| Alpine Linux 3.3 | samba | Fixed | 4.2.14-r1 | ALPINE-CVE-2016-2123 |
| Alpine Linux 3.2 | samba | Fixed | 4.2.14-r1 | ALPINE-CVE-2016-2123 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- [UNKNOWN] samba: affected: versions 4.0.0 to 4.5.2
References
- https://www.samba.org/samba/security/CVE-2016-2123.html
- http://www.securityfocus.com/bid/94970
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-2123
- http://www.securitytracker.com/id/1037493
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.