[krbdev.mit.edu #9271] git commit
Greg Hudson via RT
rt at krbdev.mit.edu
Tue Nov 3 19:17:54 EST 2026
<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9271 >
Fix leaks on error in PKINIT signed-data creation
In cms_signeddata_create(), free more allocated variables in the
cleanup label to prevent them from leaking on error paths. Also check
the result of X509_STORE_CTX_get1_chain() before using it, to prevent
a null dereference on allocation failure. Reported by Brian Knoll.
(cherry picked from commit f01d35b8df208e6b338b82269c1f82829e083220)
https://github.com/krb5/krb5/commit/ebbfc6eecb0be9559da4f682ab67ec9d49a3eabf
Author: Greg Hudson <ghudson at mit.edu>
Commit: ebbfc6eecb0be9559da4f682ab67ec9d49a3eabf
Branch: krb5-1.22
src/plugins/preauth/pkinit/pkinit_crypto_openssl.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
More information about the krb5-bugs
mailing list