]> 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, 3 Feb 2021 22:26:40 +0000 (23:26 +0100)
commit28d78beb6ce59aecbf58b5c0466972e4ac5c1636
tree28c834b0e6110651565a010e264cc22e113d09cc
parentf082ed9d573af49dac73cab088cc1c3a7b771091
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