Debian Codegraph @

doc/changelog/changelog-9.20.20.rst

raw
1 .. Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2 ..
3 .. SPDX-License-Identifier: MPL-2.0
4 ..
5 .. This Source Code Form is subject to the terms of the Mozilla Public
6 .. License, v. 2.0. If a copy of the MPL was not distributed with this
7 .. file, you can obtain one at https://mozilla.org/MPL/2.0/.
8 ..
9 .. See the COPYRIGHT file distributed with this work for additional
10 .. information regarding copyright ownership.
11
12 BIND 9.20.20
13 ------------
14
15 Feature Changes
16 ~~~~~~~~~~~~~~~
17
18 - Record query time for all dnstap responses. ``f4fdcee03f1``
19
20 Not all DNS responses had the query time set in their corresponding
21 dnstap messages. This has been fixed. :gl:`#3695` :gl:`!11534`
22
23 - Implement Fisher-Yates shuffle for nameserver selection.
24 ``dd453590a0e``
25
26 Replace the two-pass "random start index and wrap around" logic in
27 fctx_getaddresses_nameservers() with a statistically sound partial
28 Fisher-Yates shuffle.
29
30 The previous implementation picked a random starting node and did two
31 passes over the linked list to find query candidates. The new logic
32 introduces fctx_getaddresses_nsorder() to perform an in-place
33 randomization of indices into a bounded, stack-allocated lookup array
34 (nsorder) representing the "winning" fetch slots.
35
36 The nameserver dataset is now traversed in exactly one sequential
37 pass: 1. Every nameserver is evaluated for local cached data. 2. If
38 the current nameserver's sequential index exists in the randomized
39 nsorder array, it is permitted to launch an outgoing network fetch. 3.
40 If not, it is restricted to local lookups via DNS_ADBFIND_NOFETCH.
41
42 This guarantees a fair random distribution for outbound queries while
43 maximizing local cache hits, entirely within O(1) memory and without
44 the overhead of linked-list pointer shuffling or dynamic allocation.
45 :gl:`#5695` :gl:`!11606`
46
47 - Invalid NSEC3 can cause OOB read of the isdelegation() stack.
48 ``e6f234169e2``
49
50 When .next_length is longer than NSEC3_MAX_HASH_LENGTH, it causes a
51 harmless out-of-bound read of the isdelegation() stack. This has been
52 fixed. :gl:`#5749` :gl:`!11594`
53
54 - Optimize the TCP source port selection on Linux. ``d4426f85b36``
55
56 Enable a socket option on the outgoing TCP sockets to allow faster
57 selection of the source <address,port> tuple for different destination
58 <address,port> tuples when nearing over 70-80% of the source port
59 utilization. :gl:`!11573`
60
61 Bug Fixes
62 ~~~~~~~~~
63
64 - Fix errors when retrying over TCP in notify_send_toaddr.
65 ``a1232333196``
66
67 If the source address is not available do not attempt to retry over
68 TCP otherwise clear the TSIG key from the message prior to retrying.
69 :gl:`#5457` :gl:`!11567`
70
71 - Fetch loop detection improvements. ``892c3e78926``
72
73 Fixes a case where an in-domain NS with an expired glue would fail to
74 resolve.
75
76 Let's consider the following parent-side delegation (both for
77 `foo.example.` and `dnshost.example.`
78
79 ``` foo.example. 3600 NS ns.dnshost.example.
80 dnshost.example. 3600 NS ns.dnshost.example.
81 ns.dnshost.example. 3600 A 1.2.3.4 ``` Then the
82 child-side of `dnshost.example.`:
83
84 ``` dnshost.example. 300 NS ns.dnshost.example.
85 ns.dnshost.example. 300 A 1.2.3.4 ``` And then the
86 child-side of `foo.example.`:
87
88 ``` foo.example 3600 NS ns.dnshost.example.
89 a.foo.example 300 A 5.6.7.8 ```
90
91 While there is a zone misconfiguration (the TTL of the delegation and
92 glue doesn't match in the parent and the child), it is possible to
93 resolve `a.foo.example` on a cold-cache resolver. However, after the
94 `ns.dnshost.example.` glue expires, the resolution would have failed
95 with a "fetch loop detected" error. This is now fixed. :gl:`#5588`
96 :gl:`!11547`
97
98 - Remove deterministic selection of nameserver. ``c6c6e490fd8``
99
100 When selecting nameserver addresses to be looked up we where always
101 selecting them in dnssec name order from the start of the nameserver
102 rrset. This could lead to resolution failure despite there being
103 address that could be resolved for the other names. Use a random
104 starting point when selecting which names to lookup. :gl:`#5695`
105 :gl:`#5745` :gl:`!11600`
106
107 - DNSTAP wasn't logging forwarded queries correctly. ``0a5922bcf7a``
108
109 :gl:`#5724` :gl:`!11555`
110
111 - Fix read UAF in BIND9 dns_client_resolve() via DNAME Response.
112 ``c0c4bf526a1``
113
114 An attacker controlling a malicious DNS server returns a DNAME record,
115 and the we stores a pointer to resp->foundname, frees the response
116 structure, then uses the dangling pointer in dns_name_fullcompare()
117 possibly causing invalid match. Only the `delv`is affected. This has
118 been fixed. :gl:`#5728` :gl:`!11571`
119
120 - Clear serve-stale flags when following the CNAME chains.
121 ``68fb2312948``
122
123 A stale answer could have been served in case of multiple upstream
124 failures when following the CNAME chains. This has been fixed.
125 :gl:`#5751` :gl:`!11583`
126
127 - Fail DNSKEY validation when supported but invalid DS is found.
128 ``2e1971873a1``
129
130 A regression was introduced when adding the EDE code for unsupported
131 DNSKEY and DS algorithms. When the parent has both supported and
132 unsupported algorithm in the DS record, the validator would treat the
133 supported DS algorithm as insecure when validating DNSKEY records
134 instead of BOGUS. This has not security impact as the rest of the
135 child zone correctly ends with BOGUS status, but it is incorrect and
136 thus the regression has been fixed. :gl:`#5757` :gl:`!11590`
137
138 - Importing invalid SKR file might corrupt stack memory. ``9869a14ce3a``
139
140 If an BIND 9 administrator imports an invalid SKR file, local stack in
141 the import function might overflow. This could lead to a memory
142 corruption on the stack and ultimately server crash. This has been
143 fixed.
144
145 ISC would like to thank mcsky23 for bringing this bug to our
146 attention. :gl:`#5758` :gl:`!11598`
147
148 - Do not update the case on unchanged rdatasets. ``8931f82dc8b``
149
150 Fix assertion failure on unchanged rdataset during IXFR. :gl:`#5759`
151 :gl:`!11587`
152
153 - Return FORMERR for ECS family 0. ``8ac316bf0f6``
154
155 RFC 7871 only defines family 1 (IPv4) and 2 (IPv6). Additionally it
156 requires FORMERR to be returned for all unknown families. :gl:`!11565`
157
158