CVE-2018-16841
Samba from version 4.3.0 and before versions 4.7.12, 4.8.7 and 4.9.3 are vulnerable to a denial of service. When configured to accept smart-card authentication, Samba's KDC will call talloc_free() twice on the same memory if the principal in a validly signed certificate does not match the principal in the AS-REQ. This is only possible after authentication with a trusted certificate. talloc is robust against further corruption from a double-free with talloc_free() and directly calls abort(), terminating the KDC process.
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 18.04 | samba | Fixed | 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 | UBUNTU-CVE-2018-16841 |
| Ubuntu 16.04 | samba | Fixed | 2:4.3.11+dfsg-0ubuntu0.16.04.18 | UBUNTU-CVE-2018-16841 |
| Ubuntu 14.04 | samba | Fixed | 2:4.3.11+dfsg-0ubuntu0.14.04.19 | UBUNTU-CVE-2018-16841 |
| Debian 14 | samba | Fixed | 2:4.9.2+dfsg-2 | DEBIAN-CVE-2018-16841 |
| Debian 13 | samba | Fixed | 2:4.9.2+dfsg-2 | DEBIAN-CVE-2018-16841 |
| Debian 12 | samba | Fixed | 2:4.9.2+dfsg-2 | DEBIAN-CVE-2018-16841 |
| Red Hat Enterprise Linux 8 | ctdb | Not affected | ||
| Red Hat Enterprise Linux 8 | ctdb-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | libnetapi | Not affected | ||
| Red Hat Enterprise Linux 8 | libnetapi-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 8 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 8 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba-dc | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba-test | Not affected | ||
| Red Hat Enterprise Linux 8 | samba | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-dcerpc | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-ldb-ldap-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-usershares | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-vfs-iouring | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winexe | Not affected | ||
| 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 | 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 | ||
| Alpine Linux 3.24 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.23 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.22 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.21 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.20 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.19 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.18 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.17 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.16 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.15 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.14 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.13 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.12 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.11 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.10 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.9 | samba | Fixed | 4.8.7-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.8 | samba | Fixed | 4.8.8-r0 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.7 | samba | Fixed | 4.7.6-r2 | ALPINE-CVE-2018-16841 |
| Alpine Linux 3.6 | samba | Fixed | 4.6.16-r2 | ALPINE-CVE-2018-16841 |
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: 4.7.12, 4.8.7, 4.9.3
Vendor advisories:
- https://usn.ubuntu.com/3827-2/ (vendor-advisory)
- https://usn.ubuntu.com/3827-1/ (vendor-advisory)
- https://www.debian.org/security/2018/dsa-4345 (vendor-advisory)
- https://security.gentoo.org/glsa/202003-52 (vendor-advisory)
References
- http://www.securityfocus.com/bid/106023
- https://usn.ubuntu.com/3827-2/
- https://usn.ubuntu.com/3827-1/
- https://security.netapp.com/advisory/ntap-20181127-0001/
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16841
- https://www.debian.org/security/2018/dsa-4345
- https://www.samba.org/samba/security/CVE-2018-16841.html
- https://security.gentoo.org/glsa/202003-52
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.