[krbdev.mit.edu #9274] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Sat Oct 31 02:21:24 EDT 2026


Sat Oct 31 02:21:24 2026: Request 9274 was acted upon.
 Transaction: Ticket created by ghudson at mit.edu
       Queue: krb5
     Subject: git commit
       Owner: ghudson at mit.edu
  Requestors: 
      Status: new
 Ticket <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]

https://github.com/krb5/krb5/commit/41a1ebfd4d6a74995908f151a0c593311f5c6d83
Author: Alejandro Pacheco <alepacheco99 at gmail.com>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: 41a1ebfd4d6a74995908f151a0c593311f5c6d83
Branch: master
 .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