Out-of-bounds read in Dnsmasq - CVE-2026-5172
Published: May 12, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to out-of-bounds read in extract_addresses() when parsing a DNS resource record with a falsified rdlen value. A remote attacker can send a specially crafted DNS packet to cause a denial of service.
The issue occurs because extract_name() can advance the record pointer past the calculated end of the resource record, causing the remaining-length calculation to underflow.
Affected software
Debian Linux
Gentoo Linux
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Ubuntu
Anolis OS
openEuler
dnsmasq (Ubuntu package)
dnsmasq
dnsmasq-utils
dnsmasq-doc
dnsmasq-langpack
dnsmasq (Red Hat package)
dnsmasq-help
dnsmasq-debugsource
dnsmasq-debuginfo
net-dns/dnsmasq
dnsmasq (Debian package)
How to mitigate CVE-2026-5172
dnsmasq (Ubuntu package) - addressed in versions 2.90-0ubuntu0.16.04.1+esm3, 2.90-0ubuntu0.18.04.1+esm3, 2.90-0ubuntu0.20.04.1+esm2, 2.90-0ubuntu0.22.04.3, 2.90-2ubuntu0.3, 2.91-1ubuntu0.2, 2.92-1ubuntu0.2
dnsmasq - update to 2.90-2
dnsmasq-utils - update to 2.90-2
dnsmasq-doc - update to 2.90-2
dnsmasq-langpack - update to 2.90-2
dnsmasq (Red Hat package) - update to 2.90-4.el10_0.1
dnsmasq-help - addressed in versions 2.90-8, 2.90-9
dnsmasq-debugsource - addressed in versions 2.90-8, 2.90-9
dnsmasq-debuginfo - addressed in versions 2.90-8, 2.90-9
dnsmasq - addressed in versions 2.90-8, 2.90-9
net-dns/dnsmasq - update to 2.66
dnsmasq (Debian package) - addressed in versions 2.90-4~deb12u2, 2.91-1+deb13u1
External References
Related Security Bulletins
- Multiple vulnerabilities in Dnsmasq
- Debian update for dnsmasq
- Ubuntu update for dnsmasq
- Anolis OS update for dnsmasq
- openEuler 24.03 LTS SP3 update for dnsmasq
- openEuler 24.03 LTS update for dnsmasq
- openEuler 24.03 LTS SP1 update for dnsmasq
- Gentoo update for Dnsmasq
- Red Hat Enterprise Linux 10 update for dnsmasq