Integer underflow in MaraDNS - CVE-2023-31137
Published: May 30, 2023 / Updated: April 28, 2026
MaraDNS
Sam Trenholme
Description
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to integer underflow when handling a DNS packet with an Answer RR of qtype 16 (TXT record) and any qclass. A remote attacker can send a specially crafted request to the server, trigger an integer underflow and perform a denial of service (DoS) attack.
Remediation
External links
- https://github.com/samboy/MaraDNS/security/advisories/GHSA-58m7-826v-9c3c
- https://github.com/samboy/MaraDNS/commit/bab062bde40b2ae8a91eecd522e84d8b993bab58
- https://github.com/samboy/MaraDNS/blob/08b21ea20d80cedcb74aa8f14979ec7c61846663/dns/Decompress.c#L886
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NB7LDZM5AGWC5BHHQHW6CP5OFNBBKFOQ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3VSMLJX25MXGQ6A7UPOGK7VPUVDESPHL/