[krbdev.mit.edu #9239] git commit

Greg Hudson via RT rt at krbdev.mit.edu
Mon Nov 9 12:02:46 EST 2026


<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9239 >


Check type of otherName value in PKINIT SAN code

In crypto_retrieve_X509_sans(), when we process a general name of type
AnotherName, check the ASN.1 type of the value before retrieving the
sequence or string pointer and length.  Otherwise the function may
dereference a null or invalid pointer and crash.  Discovered by
Alexandru-Ionut Jipa using Claude.

(cherry picked from commit f59a89c297045376f2a2f758d32e010d8d7b497c)

https://github.com/krb5/krb5/commit/abbc3e34f15fcfe0dbf7fd531242dceb84690c1b
Author: Greg Hudson <ghudson at mit.edu>
Commit: abbc3e34f15fcfe0dbf7fd531242dceb84690c1b
Branch: krb5-1.22
 src/plugins/preauth/pkinit/pkinit_crypto_openssl.c | 24 ++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)



More information about the krb5-bugs mailing list