]> 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:36:08 +0000 (22:36 +0100)
commitb04cb88462863d762093760ffcfe1946200e30f5
tree6ce9207a4c3fabcb90d336918f6dca74cf19f967
parent9c90c95774f44ddda12fc4cc8820469f6689e179
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