| 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.5 |
| 13 |
----------- |
| 14 |
|
| 15 |
Security Fixes |
| 16 |
~~~~~~~~~~~~~~ |
| 17 |
|
| 18 |
- [CVE-2024-12705] DNS-over-HTTP(s) flooding fixes. ``51900adf29c`` |
| 19 |
|
| 20 |
Fix DNS-over-HTTP(S) implementation issues that arise under heavy |
| 21 |
query load. Optimize resource usage for :iscman:`named` instances that |
| 22 |
accept queries over DNS-over-HTTP(S). |
| 23 |
|
| 24 |
Previously, :iscman:`named` would process all incoming HTTP/2 data at |
| 25 |
once, which could overwhelm the server, especially when dealing with |
| 26 |
clients that send requests but don't wait for responses. That has been |
| 27 |
fixed. Now, :iscman:`named` handles HTTP/2 data in smaller chunks and |
| 28 |
throttles reading until the remote side reads the response data. It |
| 29 |
also throttles clients that send too many requests at once. |
| 30 |
|
| 31 |
Additionally, :iscman:`named` now carefully processes data sent by |
| 32 |
some clients, which can be considered "flooding." It logs these |
| 33 |
clients and drops connections from them. :gl:`#4795` |
| 34 |
|
| 35 |
In some cases, :iscman:`named` could leave DNS-over-HTTP(S) |
| 36 |
connections in the `CLOSE_WAIT` state indefinitely. That also has been |
| 37 |
fixed. ISC would like to thank JF Billaud for thoroughly investigating |
| 38 |
the issue and verifying the fix. :gl:`#5083` :gl:`#4795` :gl:`#5083` |
| 39 |
|
| 40 |
- [CVE-2024-11187] Limit the additional processing for large RDATA sets. |
| 41 |
``4d3d17c344f`` |
| 42 |
|
| 43 |
When answering queries, don't add data to the additional section if |
| 44 |
the answer has more than 13 names in the RDATA. This limits the number |
| 45 |
of lookups into the database(s) during a single client query, reducing |
| 46 |
query processing load. :gl:`#5034` |
| 47 |
|
| 48 |
New Features |
| 49 |
~~~~~~~~~~~~ |
| 50 |
|
| 51 |
- Add Extended DNS Error Code 22 - No Reachable Authority. |
| 52 |
``ee77a192091`` |
| 53 |
|
| 54 |
When the resolver is trying to query an authority server and |
| 55 |
eventually timed out, a SERVFAIL answer is given to the client. Add |
| 56 |
the Extended DNS Error Code 22 - No Reachable Authority to the |
| 57 |
response. :gl:`#2268` :gl:`!9814` |
| 58 |
|
| 59 |
- Add a new option to configure the maximum number of outgoing queries |
| 60 |
per client request. ``844a5310532`` |
| 61 |
|
| 62 |
The configuration option 'max-query-count' sets how many outgoing |
| 63 |
queries per client request is allowed. The existing |
| 64 |
'max-recursion-queries' is the number of permissible queries for a |
| 65 |
single name and is reset on every CNAME redirection. This new option |
| 66 |
is a global limit on the client request. The default is 200. |
| 67 |
|
| 68 |
This allows us to send a bit more queries while looking up a single |
| 69 |
name. The default for 'max-recursion-queries' is changed from 32 to |
| 70 |
50. :gl:`#4980` :gl:`#4921` :gl:`!9832` |
| 71 |
|
| 72 |
Removed Features |
| 73 |
~~~~~~~~~~~~~~~~ |
| 74 |
|
| 75 |
- Drop single-use RETERR macro. ``87f70696c87`` |
| 76 |
|
| 77 |
If the RETERR define is only used once in a file, just drop the macro. |
| 78 |
:gl:`!9885` |
| 79 |
|
| 80 |
Feature Changes |
| 81 |
~~~~~~~~~~~~~~~ |
| 82 |
|
| 83 |
- Update picohttpparser.{c,h} with upstream repository. ``3c9657a3f48`` |
| 84 |
|
| 85 |
:gl:`#4485` :gl:`!9863` |
| 86 |
|
| 87 |
- The configuration clauses parental-agents and primaries are renamed to |
| 88 |
remote-servers. ``b483cd4638c`` |
| 89 |
|
| 90 |
The top blocks 'primaries' and 'parental-agents' are no longer |
| 91 |
preferred and should be renamed to 'remote-servers'. The zone |
| 92 |
statements 'parental-agents' and 'primaries' are still used, and may |
| 93 |
refer to any 'remote-servers' top block. :gl:`#4544` :gl:`!9911` |
| 94 |
|
| 95 |
- Add none parameter to query-source and query-source-v6 to disable IPv4 |
| 96 |
or IPv6 upstream queries. ``e260eb39c56`` |
| 97 |
|
| 98 |
Add a none parameter to named configuration option `query-source` |
| 99 |
(respectively `query-source-v6`) which forbid usage of IPv4 |
| 100 |
(respectively IPv6) addresses when named is doing an upstream query. |
| 101 |
:gl:`#4981` Turning-off upstream IPv6 queries while still listening to |
| 102 |
downstream queries on IPv6. :gl:`!9727` :gl:`!9775` |
| 103 |
|
| 104 |
- Optimize memory layout of core structs. ``67fa22a7746`` |
| 105 |
|
| 106 |
Reduce memory footprint by: - Reordering struct fields to minimize |
| 107 |
padding. - Using exact-sized atomic types instead of |
| 108 |
`*_least`/`*_fast` variants - Downsizing integer fields where possible |
| 109 |
|
| 110 |
Affected structs: - dns_name_t - dns_slabheader_t - dns_rdata_t - |
| 111 |
qpcnode_t - qpznode_t :gl:`#5022` :gl:`!9793` |
| 112 |
|
| 113 |
- Revert "Fix NSEC3 closest encloser lookup for names with empty |
| 114 |
non-terminals" ``993cb761489`` |
| 115 |
|
| 116 |
Revert the fix for #4950 for 9.20. |
| 117 |
|
| 118 |
This reverts MR !9438. |
| 119 |
|
| 120 |
History: A performance improvement for NSEC3 closest encloser lookups |
| 121 |
(#4460) was introduced (in MR !9436) and backported to 9.20 (MR !9438) |
| 122 |
and to 9.18 in (MR !9439). It was released in 9.18.30 (and 9.20.2 and |
| 123 |
9.21.1). |
| 124 |
|
| 125 |
There was a bug in the code (#4950), so we reverted the change in |
| 126 |
!9611, !9613 and !9614. |
| 127 |
|
| 128 |
Then a new attempt was merged in main (MR !9610) and backported to |
| 129 |
9.20 (MR !9631) and 9.18 (MR !9632). The latter should not have been |
| 130 |
backported and was reverted in !9689. |
| 131 |
|
| 132 |
We now also revert the fix for 9.20 :gl:`#5108` :gl:`!9947` |
| 133 |
|
| 134 |
- Add TLS SNI extension to all outgoing TLS connections. ``b14148ac897`` |
| 135 |
|
| 136 |
:gl:`!9933` |
| 137 |
|
| 138 |
- Remove unused maxquerycount. ``d61bfeb91e0`` |
| 139 |
|
| 140 |
Related to #4980 :gl:`!9853` |
| 141 |
|
| 142 |
- Use query counters in validator code. ``d91835160a2`` |
| 143 |
|
| 144 |
Commit af7db8951364a89c468eda1535efb3f53adc2c1f as part of #4141 was |
| 145 |
supposed to apply the 'max-recursion-queries' quota to validator |
| 146 |
queries, but the counter was never actually passed on to |
| 147 |
'dns_resolver_createfetch()'. This has been fixed, and the global |
| 148 |
query counter ('max-query-count', per client request) is now also |
| 149 |
added. |
| 150 |
|
| 151 |
Related to #4980 :gl:`!9866` |
| 152 |
|
| 153 |
Bug Fixes |
| 154 |
~~~~~~~~~ |
| 155 |
|
| 156 |
- Fix nsupdate hang when processing a large update. ``4ca7a5d6011`` |
| 157 |
|
| 158 |
To mitigate DNS flood attacks over a single TCP connection, we |
| 159 |
throttle the connection when the other side does not read the data. |
| 160 |
Throttling should only occur on server-side sockets, but erroneously |
| 161 |
also happened for nsupdate, which acts as a client. When nsupdate |
| 162 |
started throttling the connection, it never attempts to read again. |
| 163 |
This has been fixed. :gl:`#4910` :gl:`!9834` |
| 164 |
|
| 165 |
- Lock and attach when returning zone stats. ``79e6519168e`` |
| 166 |
|
| 167 |
When returning zone statistics counters, the statistics sets are now |
| 168 |
attached while the zone is locked. This addresses Coverity warnings |
| 169 |
CID 468720, 468728 and 468729. :gl:`#4934` :gl:`!9843` |
| 170 |
|
| 171 |
- Fix possible assertion failure when reloading server while processing |
| 172 |
updates. ``41af766cd08`` |
| 173 |
|
| 174 |
:gl:`#5006` :gl:`!9820` |
| 175 |
|
| 176 |
- Preserve cache across reconfig when using attach-cache. |
| 177 |
``826dfa006e2`` |
| 178 |
|
| 179 |
When the `attach-cache` option is used in the `options` block with an |
| 180 |
arbitrary name, it causes all views to use the same cache. Previously, |
| 181 |
this configuration caused the cache to be deleted and a new cache |
| 182 |
created every time the server was reconfigured. This has been fixed. |
| 183 |
:gl:`#5061` :gl:`!9862` |
| 184 |
|
| 185 |
- Resolve the spurious drops in performance due GLUE cache. |
| 186 |
``eb3c66304f3`` |
| 187 |
|
| 188 |
For performance reasons, the returned GLUE records are cached on the |
| 189 |
first use. The current implementation could randomly cause a |
| 190 |
performance drop and increased memory use. This has been fixed. |
| 191 |
:gl:`#5064` :gl:`!9918` |
| 192 |
|
| 193 |
- Fix dnssec-signzone signing non-DNSKEY RRsets with revoked keys. |
| 194 |
``c577c3b544d`` |
| 195 |
|
| 196 |
`dnssec-signzone` was using revoked keys for signing RRsets other than |
| 197 |
DNSKEY. This has been corrected. :gl:`#5070` :gl:`!9840` |
| 198 |
|
| 199 |
- Revert "Lock and attach when returning zone stats" ``d954d9c20b9`` |
| 200 |
|
| 201 |
:gl:`#5082` :gl:`!9860` |
| 202 |
|
| 203 |
- Unknown directive in resolv.conf not handled properly. ``7738fd28c91`` |
| 204 |
|
| 205 |
The line after an unknown directive in resolv.conf could accidentally |
| 206 |
be skipped, potentially affecting dig, host, nslookup, nsupdate, or |
| 207 |
delv. This has been fixed. :gl:`#5084` :gl:`!9877` |
| 208 |
|
| 209 |
- Fix response policy zones and catalog zones with an $INCLUDE statement |
| 210 |
defined. ``cc0cbbe697c`` |
| 211 |
|
| 212 |
Response policy zones (RPZ) and catalog zones were not working |
| 213 |
correctly if they had an $INCLUDE statement defined. This has been |
| 214 |
fixed. :gl:`#5111` :gl:`!9941` |
| 215 |
|
| 216 |
- Finalize removal of memory debug flags size and mctx. ``31918336e8a`` |
| 217 |
|
| 218 |
Commit 4b3d0c66009d30f5c0bc12ee128fc59f1d853f44 has removed them, but |
| 219 |
did not remove few traces in documentation and help. Remove them from |
| 220 |
remaining places. :gl:`!9842` |
| 221 |
|
| 222 |
- Fix m4 macro in configure.ac. ``ae739c80ccb`` |
| 223 |
|
| 224 |
:gl:`!9813` |
| 225 |
|
| 226 |
- Mark loop as shuttingdown earlier in shutdown_cb. ``fed5e55e339`` |
| 227 |
|
| 228 |
:gl:`!9891` |
| 229 |
|
| 230 |
- Use CMM_{STORE,LOAD}_SHARED to store/load glue in gluelist. |
| 231 |
``fa7443d3fd2`` |
| 232 |
|
| 233 |
ThreadSanitizer has trouble understanding that gluelist->glue is |
| 234 |
constant after it is assigned to the slabheader with cmpxchg. Help |
| 235 |
ThreadSanitizer to understand the code by using CMM_STORE_SHARED and |
| 236 |
CMM_LOAD_SHARED on gluelist->glue. :gl:`!9936` |
| 237 |
|
| 238 |
|