[krbdev.mit.edu #9274] git commit
Greg Hudson via RT
rt at krbdev.mit.edu
Tue Nov 3 19:18:11 EST 2026
<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9274 >
Check reply length before V4 reply check
In init_creds_validate_reply(), a reply that is not a KRB-ERROR or
AS-REP is examined for a Kerberos 4 error header by checking the first
two bytes. A one-byte reply causes a read past the end of the buffer.
Reject replies shorter than two bytes as the wrong message type before
looking at the second byte.
Add a test program which feeds short and unrecognized replies to
krb5_init_creds_step().
[ghudson at mit.edu: updated notice.rst/NOTICE for test program license]
(cherry picked from commit 41a1ebfd4d6a74995908f151a0c593311f5c6d83)
https://github.com/krb5/krb5/commit/50f585545359541cbfb61819dbaee210b680c8de
Author: Alejandro Pacheco <alepacheco99 at gmail.com>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: 50f585545359541cbfb61819dbaee210b680c8de
Branch: krb5-1.22
.gitignore | 1 +
NOTICE | 30 +++++++++++
doc/notice.rst | 33 ++++++++++++
src/lib/krb5/krb/Makefile.in | 10 +++-
src/lib/krb5/krb/get_in_tkt.c | 3 ++
src/lib/krb5/krb/t_init_creds_step.c | 97 ++++++++++++++++++++++++++++++++++++
6 files changed, 173 insertions(+), 1 deletion(-)
More information about the krb5-bugs
mailing list