]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix off-by-one bug in ISC SPNEGO implementation
authorOndřej Surý <ondrej@isc.org>
Thu, 7 Jan 2021 09:44:46 +0000 (10:44 +0100)
committerMichał Kępień <michal@isc.org>
Wed, 17 Feb 2021 21:46:14 +0000 (22:46 +0100)
commitabed9404d11049a9e6db5fcf9c13b986f6bfe5f2
tree552313d2aef468c763f4edce0e0a9311f8f7b175
parent68dfe7bf570503811ccf61c4cc5e489871749cab
Fix off-by-one bug in ISC SPNEGO implementation

The ISC SPNEGO implementation is based on mod_auth_kerb code.  When
CVE-2006-5989 was disclosed, the relevant fix was not applied to the
BIND 9 codebase, making the latter vulnerable to the aforementioned flaw
when "tkey-gssapi-keytab" or "tkey-gssapi-credential" is set in
named.conf.

The original description of CVE-2006-5989 was:

    Off-by-one error in the der_get_oid function in mod_auth_kerb 5.0
    allows remote attackers to cause a denial of service (crash) via a
    crafted Kerberos message that triggers a heap-based buffer overflow
    in the component array.

Later research revealed that this flaw also theoretically enables remote
code execution, though achieving the latter in real-world conditions is
currently deemed very difficult.

This vulnerability was responsibly reported as ZDI-CAN-12302 ("ISC BIND
TKEY Query Heap-based Buffer Overflow Remote Code Execution
Vulnerability") by Trend Micro Zero Day Initiative.
lib/dns/spnego.c