]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.18] [CVE-2026-3039] sec: usr: Fix GSS-API resource leak
authorOndřej Surý <ondrej@isc.org>
Fri, 1 May 2026 06:39:39 +0000 (08:39 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 7 May 2026 11:21:59 +0000 (13:21 +0200)
commit03ce21cf3099bd461f95ac1f4f22cce80ae1ba65
treee9b31af0095f607a74bdfa876f166602c7b219c2
parent5abfbc2663023e0c6f2a08ee6a7986f2a404f2f6
parentd273e3def097fbd186f23bcbb146c3ffb4f47301
[9.18] [CVE-2026-3039] sec: usr: Fix GSS-API resource leak

Fixed a memory leak where each GSS-API TKEY negotiation leaked a security context inside the GSS library. An unauthenticated attacker could exhaust server memory by sending repeated TKEY queries to a server with tkey-gssapi-keytab configured. The leaked memory was allocated by the GSS library, bypassing BIND's memory accounting.

Multi-round GSS-API negotiation (GSS_S_CONTINUE_NEEDED) is now rejected, as BIND never supported it correctly and Kerberos/SPNEGO completes in a single round.

Also implemented missing RFC 3645 requirement: the client now verifies that mutual authentication and integrity flags are granted by the GSS-API mechanism (Section 3.1.1).

Closes: https://gitlab.isc.org/isc-projects/bind9/-/issues/5752
Backport of !965

Merge branch 'backport-5752-fix-memory-leak-in-TKEY-negotiation-9.18' into 'security-bind-9.18'

See merge request isc-private/bind9!975