Original description
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.
Affected software
- Samba ≥ 4.3.0 < 4.7.12≥ 4.9.0 < 4.9.3≥ 4.8.0 < 4.8.7 Fixed in: 4.7.12, 4.9.3, 4.8.7 exact match
Details
- Published
- 2018-11-28
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H- CWE
- CWE-416, CWE-415
- EPSS (30-day exploit probability)
- 4.59% (percentile 92)
References
- cve.org/CVE-2018-16841
- nvd.nist.gov/vuln/detail/CVE-2018-16841
- www.securityfocus.com/bid/106023
- bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16841
- security.gentoo.org/glsa/202003-52
- security.netapp.com/advisory/ntap-20181127-0001/
- usn.ubuntu.com/3827-1/
- usn.ubuntu.com/3827-2/
- www.debian.org/security/2018/dsa-4345
- www.samba.org/samba/security/CVE-2018-16841.html
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.