HomeFreeBSD

heimdal: Resolve hdb_free_entry() SIGSEGV/SIGILL

Description

heimdal: Resolve hdb_free_entry() SIGSEGV/SIGILL

When the client sends kadmind a create principal (kadm_create) request
kadm_s_create_principal() returns an error before zeroing out ent (an
hdb entry structure wrapper -- hdb_entry_ex), resulting in a NULL
reference.

Fix obtained from upstream commit 35ea4955a.

PR: 268059
Reported by: Robert Morris <rtm@lcs.mit.edu>
Obtained from: Heimdal commit 35ea4955a

(cherry picked from commit 6a70e0b4cdc606931555cdc59dc6c8d4a3ab4e3e)

Details

Provenance
cyAuthored on Feb 7 2023, 3:46 PM
Parents
rGf73d4bfc1385: local-unbound-setup: Use default root certificates
Branches
Unknown
Tags
Unknown