Out-of-bounds Read in Dnsmasq
CVE-2026-5172
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.027, 86.1th percentile (scored ); up from 0.007 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.007 · newest: 0.027 · change: +0.020
Affected products
- Dnsmasq — versions 0, 2.93, 2.92rel2
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- lottiedeyan/CVE20265172poc (last pushed 2026-05-27): CVE-2026-5172: buffer overflow in extract_addresses() on crafted resource record PoC
References
- thekelleys.org.uk/dnsmasq/
- www.kb.cert.org/vuls/id/471747
- lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2026q2/018471.html
- thekelleys.org.uk/dnsmasq/CVE/
- github.com/NixOS/nixpkgs/pull/519082
- github.com/NixOS/nixpkgs/pull/519093
- github.com/pi-hole/FTL/releases/tag/v6.6.2
- access.redhat.com/errata/RHSA-2026:19158
- access.redhat.com/security/cve/CVE-2026-5172
- bugzilla.redhat.com/show_bug.cgi
This CVE has public exploit evidence. See the latest CVEs with public exploits.