mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-28 12:40:47 +00:00
11493fe2186f837aeda74e8bf7fae8b92773a498
Dnsmasq limits the number of simultaneous TCP connections, to avoid resource-exhaustion attacks. Once the limit if reached, dnsmasq stops accepting TCP connections from the kernel. When doing dnssec validation, the same resources are used to handle internally generated queries with large answers needed to validate incoming queries which can still arrive via UDP. If a dnsmasq daemon has reached the limit on incoming TCP connections then these queries will fail to validate needlessly. Bump the number of TCP-process resources by 50% when dnssec validation is enabled, and reserve the extra 50% only for internally-generated dnssec validation queries. This allows validation to continue even when dnsmasq is ignoring new TCP requests. Thanks to Lucas Celant <lcelant@redhat.com> for spotting this. CVE-2026-93007 may apply.
Languages
C
94.3%
Perl
2.2%
HTML
1.2%
Shell
1%
Makefile
0.6%
Other
0.6%