]> 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:09:18 +0000 (13:09 +0200)
commit39a4ad2330fdd4b95e919c398f00694183e6d79f
tree908c7c1abd8d3702efb2769cf12f7404166c93cc
parent134706912f273c04a2e785e4a03b1fa8fa278f77
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