lib/kadm5/kadm_rpc_xdr.c in MIT Kerberos 5 (aka krb5) before 1.20.2 and 1.21.x before 1.21.1 frees an uninitialized pointer. A remote authenticated user can trigger a kadmind crash. This occurs because _xdr_kadm5_principal_ent_rec does not validate the relationship between n_key_data and the key_data array count. References: https://web.mit.edu/kerberos/www/advisories/ https://github.com/krb5/krb5/compare/krb5-1.20.1-final...krb5-1.20.2-final https://github.com/krb5/krb5/commit/ef08b09c9459551aabbe7924fb176f1583053cdd https://github.com/krb5/krb5/compare/krb5-1.21-final...krb5-1.21.1-final
Created krb5 tracking bugs for this issue: Affects: fedora-all [bug 2230179]
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2023:6699 https://access.redhat.com/errata/RHSA-2023:6699