ArchLinux: 202107-73: powerdns: denial of service
Summary
PowerDNS Authoritative Server 4.5.0 will crash with an uncaught out of
bounds exception if it receives a query with QTYPE 65535. The offending
code was not present in earlier versions, and they are not affected.
Users that cannot upgrade immediately, but do have dnsdist in place,
can use dnsdist to filter such queries before they do harm, with
something like addAction(QTypeRule(65535),
RCodeAction(DNSRCode.REFUSED)).
When the PowerDNS Authoritative Server is run inside a supervisor like
supervisord or systemd, an uncaught exception crash will lead to an
automatic restart, limiting the impact to a somewhat degraded service.
Resolution
Upgrade to 4.5.1-1.
# pacman -Syu "powerdns>=4.5.1-1"
The problem has been fixed upstream in version 4.5.1.
References
https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2021-01.html https://downloads.powerdns.com/patches/2021-01/pdns-4.5.0-2021-01.patch https://github.com/PowerDNS/pdns/commit/96cae2fd21054b383a16c569a363a50f71808cd9 https://security.archlinux.org/CVE-2021-36754
Workaround
Users that cannot upgrade immediately, but do have dnsdist in place,can use dnsdist to filter such queries before they do harm, withsomething like addAction(QTypeRule(65535),RCodeAction(DNSRCode.REFUSED)).