[17167] in Kerberos-V5-bugs
[krbdev.mit.edu #9274] git commit
daemon@ATHENA.MIT.EDU (Greg Hudson via RT)
Tue Nov 3 19:18:16 2026
From: "Greg Hudson via RT" <rt@krbdev.mit.edu>
In-Reply-To:
Message-ID: <rt-4.4.3-2-2372086-1793751491-605.9274-5-0@mit.edu>
To: "AdminCc of krbdev.mit.edu Ticket #9274":;
Date: Tue, 03 Nov 2026 19:18:11 -0500
MIME-Version: 1.0
Reply-To: rt@krbdev.mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krb5-bugs-bounces@mit.edu
<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@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@gmail.com>
Committer: Greg Hudson <ghudson@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(-)
_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs