c-ares: Update to version 1.34.9
Commit Message
- Update from version 1.34.8 to 1.34.9
- Update of rootfile
- 11 GHSA security fixes
- Changelog
1.34.9
Security:
* Memory corruption when an application cancels its lookups after a
connection failure. Please see
https://github.com/c-ares/c-ares/security/advisories/GHSA-wpr3-8q3r-4q8c
* A DNS reply that arrived from a different server than the one queried could
be accepted. Please see
https://github.com/c-ares/c-ares/security/advisories/GHSA-fqh5-3x7m-wp44
* Use-after-free of a lookup after shutting down a failed connection. Please
see https://github.com/c-ares/c-ares/security/advisories/GHSA-97vq-4mxv-7vhm
* Use-after-free when an application cancels lookups from a callback, or shuts
a channel down. Please see
https://github.com/c-ares/c-ares/security/advisories/GHSA-rf6g-ww74-97qh
* Use-after-free of a connection after the socket-state callback returns.
Please see
https://github.com/c-ares/c-ares/security/advisories/GHSA-mw23-pfg6-2x9r
* Use-after-free when an application cancels lookups from a server-state
callback. Please see
https://github.com/c-ares/c-ares/security/advisories/GHSA-v33j-65h4-4ch8
* Use-after-free of a server record when an application changes its DNS
servers from a callback. Please see
https://github.com/c-ares/c-ares/security/advisories/GHSA-pj7p-v3cw-hq66
* Use-after-free of a cached DNS answer while the application is still reading
it. Please see
https://github.com/c-ares/c-ares/security/advisories/GHSA-grv7-fq5q-9vfc
* Buffer overflow when `ares_dup()` or `ares_save_options()` runs while
another thread changes the servers. Please see
https://github.com/c-ares/c-ares/security/advisories/GHSA-ph6c-3cvx-mq6v
* Uninitialized memory returned for a numeric IPv6 name with a prefix length.
Please see
https://github.com/c-ares/c-ares/security/advisories/GHSA-cfcv-8v2j-qj6r
* The query cache could return an answer obtained using different EDNS
options. Please see
https://github.com/c-ares/c-ares/security/advisories/GHSA-wrgc-prmw-27xh
Changes:
* Answers served from the query cache now report their remaining TTL rather
than the TTL originally received.
* `ares_inet_pton()` rejects a "/bits" prefix length and returns 0, rather
than -1, for any input it cannot parse.
* UDP replies must now come from the server's port as well as its address.
Custom `arecvfrom` socket functions (`ares_set_socket_functions_ex()` or
`ares_set_socket_functions()`) must fill in the full source address,
including the port. For compatibility, a reported port of 0 checks only the
address, but such implementations are insecure and should be fixed.
[PR #1370](https://github.com/c-ares/c-ares/pull/1370)
* Document that socket functions and socket, configure and pending-write
callbacks must not call c-ares functions on the same channel.
[PR #1360](https://github.com/c-ares/c-ares/pull/1360)
Bugfixes:
* `ares_dup()`: don't leave the new channel bound to the source channel.
[PR #1333](https://github.com/c-ares/c-ares/pull/1333)
* `ares_init_options()`: don't report the default query cache as a caller-set
option. [PR #1354](https://github.com/c-ares/c-ares/pull/1354)
* Clamp DNS record TTLs to the signed int range used by public APIs.
[PR #1313](https://github.com/c-ares/c-ares/pull/1313)
* `ares_dns_write()`: reject messages larger than 64KB.
[PR #1314](https://github.com/c-ares/c-ares/pull/1314)
* `ares_dns_parse()`: accept legacy compressed RDATA names.
[PR #1326](https://github.com/c-ares/c-ares/pull/1326)
* `ares_parse_a_reply()`/`ares_parse_aaaa_reply()`: ignore a negative
`*naddrttls`. [PR #1302](https://github.com/c-ares/c-ares/pull/1302)
* select event backend: refuse descriptors >= `FD_SETSIZE` instead of
overflowing `fd_set`. [PR #1312](https://github.com/c-ares/c-ares/pull/1312)
* Strip inline comments from resolv.conf values.
[PR #1276](https://github.com/c-ares/c-ares/pull/1276)
* Ignore absurd resolv.conf retry/attempts values.
[PR #1315](https://github.com/c-ares/c-ares/pull/1315)
* Zero-initialize the server config when parsing nameserver URIs.
[PR #1325](https://github.com/c-ares/c-ares/pull/1325)
* URI parsing: roll back the ':' probe when it lands past the '@'.
[PR #1265](https://github.com/c-ares/c-ares/pull/1265)
* Do not assume `gethostname()` NUL-terminates its buffer.
[PR #1269](https://github.com/c-ares/c-ares/pull/1269)
* Combine the hash table seed with XOR instead of OR.
[PR #1330](https://github.com/c-ares/c-ares/pull/1330)
* Turn off stdio buffering when loading a file.
[PR #939](https://github.com/c-ares/c-ares/pull/939)
* Guard `pipe2()` on Apple platforms to prevent unguarded availability
warnings. [PR #1328](https://github.com/c-ares/c-ares/pull/1328)
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
config/rootfiles/packages/c-ares | 2 +-
lfs/c-ares | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
@@ -7,7 +7,7 @@
#usr/lib/libcares.la
#usr/lib/libcares.so
usr/lib/libcares.so.2
-usr/lib/libcares.so.2.19.7
+usr/lib/libcares.so.2.19.8
#usr/lib/pkgconfig/libcares.pc
#usr/share/man/man3/ares_cancel.3
#usr/share/man/man3/ares_create_query.3
@@ -26,7 +26,7 @@ include Config
SUMMARY = Tools for asynchronous name resolves
-VER = 1.34.8
+VER = 1.34.9
THISAPP = c-ares-$(VER)
DL_FILE = $(THISAPP).tar.gz
@@ -34,7 +34,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = c-ares
-PAK_VER = 6
+PAK_VER = 7
DEPS =
@@ -48,7 +48,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = b5a88811d8ee6a0c06737746a356bc1fc7c13416b11a0af3a2e6cab092d97adebb93234cf73b97a12b06b764f8562272a793961dc3367024c4322d923ac43f9f
+$(DL_FILE)_BLAKE2 = b708d8e302f7b2b8dcd9a30b9faa0864506990ced276ad4718b2cc3bbabbd548dcf3493033e777787089ba58c60e65f84d6ff47097a93cf1f3367490a3b00ee8
install : $(TARGET)