CVE-2026-5172: Heap out-of-bounds read in dnsmasq extract_addresses()
- Vendor
- Thekelleys
CVE-2026-5172 is a heap out-of-bounds read vulnerability in dnsmasq's extract_addresses() function during DNS response processing. A malformed resource-record data length (rdlen) allows extract_name() to advance a pointer beyond the end of the record, resulting in an out-of-bounds heap read. Processing a specially crafted DNS response can crash dnsmasq and cause denial of service.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can terminate the dnsmasq process, interrupting DNS resolution for dependent clients. Arbitrary code execution, privilege escalation, cache poisoning, and externally observable memory disclosure are not established for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Reduce exposure to untrusted DNS data paths until patched versions can be deployed. Limit dnsmasq use as a resolver for untrusted upstream responses where feasible, restrict which upstream DNS servers are permitted, and apply vendor firmware or package updates promptly. In embedded or appliance deployments, install the vendor-provided firmware release that includes the dnsmasq fix.
Remediation
Patch, then assume compromise.
Upgrade to dnsmasq 2.92rel2, which includes backported fixes, or version 2.93 or a later supported release. Alternatively, install a vendor package explicitly fixing CVE-2026-5172; corrected RHEL builds include 2.90-7.el10_2 and, for RHEL 10.0 extended-support offerings, 2.90-4.el10_0.1. Bundled-component fixes include ADS-TEC IRF1000/IRF3000 firmware 2.3.0, OpenWrt 24.10.8, and GitHub Enterprise Server 3.21.2; use currently supported releases where applicable.
Exploits
2 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-5172 exploited in the wild?
- As of Nov 10, 2026, Mallory has no reports of CVE-2026-5172 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-5172?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2026-5172, the earliest disclosed May 27, 2026.
- Is there a patch for CVE-2026-5172?
- Upgrade to dnsmasq 2.92rel2, which includes backported fixes, or version 2.93 or a later supported release. Alternatively, install a vendor package explicitly fixing CVE-2026-5172; corrected RHEL builds include 2.90-7.el10_2 and, for RHEL 10.0 extended-support offerings, 2.90-4.el10_0.1.
- What products are affected by CVE-2026-5172?
- Thekelleys Dnsmasq.
- How severe is CVE-2026-5172?
- CVE-2026-5172 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 2.7% (86th percentile) as of Nov 10, 2026.
Recent activity
19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.