[17150] in Kerberos-V5-bugs
[krbdev.mit.edu #9274] git commit
daemon@ATHENA.MIT.EDU (Greg Hudson via RT)
Sat Oct 31 02:21:30 2026
From: "Greg Hudson via RT" <rt-comment@krbdev.mit.edu>
In-Reply-To:
Message-ID: <rt-4.4.3-2-1884236-1793427684-297.9274-4-0@mit.edu>
To: "AdminCc of krbdev.mit.edu Ticket #9274":;
Date: Sat, 31 Oct 2026 02:21:24 -0400
MIME-Version: 1.0
Reply-To: rt-comment@krbdev.mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krb5-bugs-bounces@mit.edu
Sat Oct 31 02:21:24 2026: Request 9274 was acted upon.
Transaction: Ticket created by ghudson@mit.edu
Queue: krb5
Subject: git commit
Owner: ghudson@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@mit.edu: updated notice.rst/NOTICE for test program license]
https://github.com/krb5/krb5/commit/41a1ebfd4d6a74995908f151a0c593311f5c6d83
Author: Alejandro Pacheco <alepacheco99@gmail.com>
Committer: Greg Hudson <ghudson@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(-)
_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs