Use After Free in Samba
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.
Vulnerability class: Use-After-Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.046, 91.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Samba
- [Unknown] Samba — versions 4.9.3, 4.8.7, 4.7.12
- Canonical Ubuntu Linux — versions 12.04, 14.04, 16.04
- Debian Linux — versions 9.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cve-scores). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.securityfocus.com/bid/106023 (Third Party Advisory, VDB Entry, vdb-entry)
- USN-3827-2 (vendor-advisory, Third Party Advisory)
- USN-3827-1 (vendor-advisory, Third Party Advisory)
- security.netapp.com/advisory/ntap-20181127-0001/ (Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- DSA-4345 (vendor-advisory, Third Party Advisory)
- www.samba.org/samba/security/CVE-2018-16841.html (Patch, Vendor Advisory)
- GLSA-202003-52 (vendor-advisory, Third Party Advisory)