heimdal: Fix NULL deref
authorCy Schubert <cy@FreeBSD.org>
Thu, 15 Feb 2024 15:41:07 +0000 (07:41 -0800)
committerCy Schubert <cy@FreeBSD.org>
Thu, 15 Feb 2024 21:27:55 +0000 (13:27 -0800)
commitfc773115fa2dbb6c01377f2ed47dabf79a4e361a
treefccf3eec03dfd4395fa9200f42f1976ac0b30990
parent60616b445eb5b01597092fef5b14549f95000130
heimdal: Fix NULL deref

A flawed logical condition allows a malicious actor to remotely
trigger a NULL pointer dereference using a crafted negTokenInit
token.

Upstream notes:

    Reported to Heimdal by Michał Kępień <michal@isc.org>.

    From the report:

    Acknowledgement
    ---------------

    This flaw was found while working on addressing ZDI-CAN-12302: ISC BIND
    TKEY Query Heap-based Buffer Overflow Remote Code Execution
    Vulnerability, which was reported to ISC by Trend Micro's Zero Day

Security: CVE-2022-3116
Obtained from: upstream 7a19658c1
MFC after: 1 week
crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c