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.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
The product calls free() twice on the same memory address.
Link | Tags |
---|---|
http://www.securityfocus.com/bid/106023 | third party advisory vdb entry |
https://usn.ubuntu.com/3827-2/ | third party advisory vendor advisory |
https://usn.ubuntu.com/3827-1/ | third party advisory vendor advisory |
https://security.netapp.com/advisory/ntap-20181127-0001/ | third party advisory |
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16841 | third party advisory issue tracking |
https://www.debian.org/security/2018/dsa-4345 | third party advisory vendor advisory |
https://www.samba.org/samba/security/CVE-2018-16841.html | patch vendor advisory |
https://security.gentoo.org/glsa/202003-52 | third party advisory vendor advisory |