Description
A buffer overflow in dnsmasq’s extract_addresses() function allows an attacker to trigger a heap out-of-bounds read and crash by exploiting a malformed DNS response, enabling extract_name() to advance the pointer past the record’s end.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| dnsmasq | dnsmasq | < 2.92rel2 | 2.92rel2 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | dnsmasq | 2.92-5 | — |
| Debian 13 | dnsmasq | 2.91-1+deb13u1 | — |
| Debian 12 | dnsmasq | 2.90-4~deb12u2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | dnsmasq | 2.92-1ubuntu0.2 | — |
| Ubuntu 25.10 | dnsmasq | 2.91-1ubuntu0.2 | — |
| Ubuntu 24.04 LTS | dnsmasq | 2.90-2ubuntu0.3 | — |
| Ubuntu 22.04 LTS | dnsmasq | 2.90-0ubuntu0.22.04.3 | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | dnsmasq | 2.90-0ubuntu0.20.04.1+esm2 | — |
| Ubuntu Pro 18.04 LTS | dnsmasq | 2.90-0ubuntu0.18.04.1+esm3 | — |
| Ubuntu Pro 16.04 LTS | dnsmasq | 2.90-0ubuntu0.16.04.1+esm3 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10 | dnsmasq +1 | 2.90-7.el10_2 | RHSA-2026:19158 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 10 | dnsmasq +1 | 2.90-7.el10_2 | ALSA-2026:19158 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | dnsmasq | 2.90-7.el10_2 | RLSA-2026:19158 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | dnsmasq | 2.92rel2-18.27.1 | SUSE-SU-2026:2458-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | dnsmasq | 2.92rel2-1.1 | openSUSE-SU-2026:10821-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | dnsmasq | 2.92_p2-r0 | — |
| Alpine v3.23 | dnsmasq | 2.91-r1 | — |
| Alpine v3.22 | dnsmasq | 2.91-r1 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | dnsmasq +1 | 2.90-1.amzn2023.0.3 | ALAS2023-2026-1729 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | dnsmasq | 2.92-1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 10 | dnsmasq +1 | 2.90-7.el10_2 | ELSA-2026-19158 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | dnsmasq +1 | 2.93-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
lottiedeyan/CVE20265172poc ★ 0 · May 27, 2026
CVE-2026-5172: buffer overflow in extract_addresses() on crafted resource record PoC
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 10
- WID-SEC-2026-1468 dnsmasq: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 12, 2026
- ALSA-2026:19158 Important: dnsmasq security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2026:19158 Red Hat Security Advisory: dnsmasq security update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- ALAS2023-2026-1729 Important: dnsmasq security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Aug 24, 2026
- VDE-2026-076 ads-tec Industrial IT: Multiple Vulnerabilities in ADS-TEC IRF Products CERT@VDE · Jul 28, 2026
- VDE-2026-081 Weidmueller: Security routers IE-SR-4TX and IE-SR-4GT are affected by multiple vulnerabilities CERT@VDE · Jul 28, 2026
- ELSA-2026-19158 Important: dnsmasq security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Jul 16, 2026
- SUSE-SU-2026:2458-1 Security update for dnsmasq SUSE / openSUSE Security Updates · Jun 19, 2026
- RLSA-2026:19158 Important: dnsmasq security update Rocky Linux Security Advisories · May 29, 2026
- openSUSE-SU-2026:10821-1 dnsmasq-2.92rel2-1.1 on GA media SUSE / openSUSE Security Updates · May 21, 2026