]> git.ipfire.org Git - thirdparty/bind9.git/commit
Validate DNS message CLASS early in request processing
authorOndřej Surý <ondrej@isc.org>
Wed, 4 Mar 2026 09:46:58 +0000 (10:46 +0100)
committerMichał Kępień <michal@isc.org>
Thu, 7 May 2026 11:21:59 +0000 (13:21 +0200)
commitb247dbb3506ef628a683d184fbc6a99fad45ed94
tree885357285756ff6f20fff9fddb5fff5a0432e995
parent04092ed136c8a6db2b1059dcd32693d57a7bdc24
Validate DNS message CLASS early in request processing

Reject requests with unsupported or misused CLASS values before
further processing.  Only IN, CH, HS, RESERVED0 (for DNS Cookies),
ANY (for TKEY negotiation), and NONE (for DNS UPDATE) are accepted;
all other classes return NOTIMP.  Misuse of NONE or ANY outside
their allowed contexts returns FORMERR.

This adds further protection against bugs of the same general class
as YWH-PGM40640-70 and YWH-PGM40640-73.

(cherry picked from commit 0a687451505037e9f9a850c9cb113aed4995b03f)
bin/tests/system/unknown/tests.sh
lib/ns/client.c