[krbdev.mit.edu #9238] git commit
Greg Hudson via RT
rt at krbdev.mit.edu
Mon Nov 9 12:02:41 EST 2026
<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9238 >
Prevent null deref in KDC dispatch corner case
If a KDC request matches an entry in the lookaside cache, we transmit
the reply without decoding the request, and therefore without looking
up the applicable realm. But if the cached reply is longer than
kdc_max_dgram_reply_size, we need the applicable realm's TGS server
principal to construct a KRB_ERR_RESPONSE_TOO_BIG KRB-ERROR message.
Currently this results in a null derefernce. This case is unlikely to
happen with the default kdc_max_dgram_reply_size value of 65536, but
may be triggerable by an unauthenticated attacker if the value is
lowered. Prevent a null dereference in this scenario by setting an
initial guess at the realm before checking the lookaside cache.
Reported by AWS Security.
(cherry picked from commit 47d220edc71c8229e5fd7a36f3231273c8f06595)
https://github.com/krb5/krb5/commit/e86ffb1de73ede86e48add92786dbdc08bb1b850
Author: Greg Hudson <ghudson at mit.edu>
Commit: e86ffb1de73ede86e48add92786dbdc08bb1b850
Branch: krb5-1.22
src/kdc/dispatch.c | 4 ++++
1 file changed, 4 insertions(+)
More information about the krb5-bugs
mailing list