You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The API contract for kadm5_init_with_creds and kadm5_init_with_creds_ctx is unclear on whether the kadm5 handle or the caller owns the given ccache.
If the kadm5 handle owns the ccache, then krb5_cc_close is missing from kadm5_c_destroy and it will leak:
Describe the bug
The API contract for kadm5_init_with_creds and kadm5_init_with_creds_ctx is unclear on whether the kadm5 handle or the caller owns the given ccache.
If the kadm5 handle owns the ccache, then krb5_cc_close is missing from kadm5_c_destroy and it will leak:
heimdal/lib/kadm5/destroy_c.c
Lines 43 to 56 in abd35b2
If the caller owns the ccache, then _kadm5_connect -> kadm_connect may free it, leading the caller to use-after-free:
heimdal/lib/kadm5/init_c.c
Line 665 in abd35b2
To Reproduce
Expected behavior
Either the kadm5 handle owns the ccache, or the caller owns the ccache, and the system is clear on which is which.
Screenshots
N/A
Desktop (please complete the following information):
NetBSD 9
Smartphone (please complete the following information):
N/A