]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.16] [CVE-2026-3039] sec: usr: Fix GSS-API resource leak
authorOndřej Surý <ondrej@isc.org>
Fri, 1 May 2026 06:41:39 +0000 (08:41 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 1 May 2026 06:41:39 +0000 (08:41 +0200)
commit7f04d7104304fdc6b858c41bb44ad151b2c3e1b7
treed5299b0e94946ca7fc1f4c651cbeb58405b4ac22
parent42fb4c1b7d7381ec8019f9f668d8ee2157b408a3
parent7eef47ce676672f65b4988b1b5c086c4f30a9b70
[9.16] [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.16' into 'security-bind-9.16'

See merge request isc-private/bind9!976