CVE-2018-16841 heimdal: Fix segfault on PKINIT with mis-matching principal
authorAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2018 04:33:46 +0000 (17:33 +1300)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Nov 2018 07:54:31 +0000 (08:54 +0100)
commitda9eeee6fce920b78e375e7be3993f1c4dbd1c14
tree5157d4f31c8a83bb5eb9881008ca696aa45422e5
parent86ddd7032489053acba6d240db5db7ef49c38429
CVE-2018-16841 heimdal: Fix segfault on PKINIT with mis-matching principal

In Heimdal KRB5_KDC_ERR_CLIENT_NAME_MISMATCH is an enum, so we tried to double-free
mem_ctx.

This was introduced in 9a0263a7c316112caf0265237bfb2cfb3a3d370d for the
MIT KDC effort.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13628

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/kdc/db-glue.c