]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
heimdal: Resolve hdb_free_entry() SIGSEGV/SIGILL
authorCy Schubert <cy@FreeBSD.org>
Tue, 7 Feb 2023 15:46:59 +0000 (07:46 -0800)
committerCy Schubert <cy@FreeBSD.org>
Wed, 8 Feb 2023 23:08:54 +0000 (15:08 -0800)
commit6a70e0b4cdc606931555cdc59dc6c8d4a3ab4e3e
tree8780091bf3e57145daa299750846ab1bf7a4e28b
parent0dfaefa975477cee2ec3155c3e0689ba1fcdde9a
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
MFC after: 3 days
crypto/heimdal/lib/kadm5/create_s.c