[krbdev.mit.edu #9268] git commit
Greg Hudson via RT
rt at krbdev.mit.edu
Mon Nov 9 12:02:06 EST 2026
<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9268 >
Fix leak on error in krb5_ktkdb_get_entry()
Decrypt the keyblock into a local variable. On success, transfer
memory ownership to entry->key. On failure, free it in the cleanup
handler.
[ghudson at mit.edu: minor style edits]
CVE-2026-112317:
krb5_ktkdb_get_entry() in lib/kdb/keytab.c in MIT Kerberos 5 (aka
krb5) 1.2.8 and later does not free decrypted key material when a
post-decryption check fails, which allows remote attackers to cause a
denial of service (memory leak in the KDC or kadmind) via requests
that repeatedly trigger key decryption failures.
(cherry picked from commit 5d79291d7d6732b31a759493a5c0365ed208521a)
https://github.com/krb5/krb5/commit/f2cc346aed8643cc38aabe5ad15f4f72113b52af
Author: Julien Rische <jrische at redhat.com>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: f2cc346aed8643cc38aabe5ad15f4f72113b52af
Branch: krb5-1.22
src/lib/kdb/keytab.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
More information about the krb5-bugs
mailing list