CVE-2026-5172
NVDCVSS scored by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Vulnerability Summary
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.
CVSS v3.1 Base Metrics — Score 7.3 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityLow
IntegrityLow
AvailabilityLow
Affected & Patched Versions
- dnsmasq < 2.92rel2
- dnsmasq 2.92rel2
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run dnsmasq and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- May 11, 2026Published
- Aug 24, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new dnsmasq CVEsYou are reading CVE-2026-5172. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Patchhttps://github.com/NixOS/nixpkgs/pull/519082
- Patchhttps://github.com/NixOS/nixpkgs/pull/519093
- Referencehttps://github.com/pi-hole/FTL/releases/tag/v6.6.2
- Referencehttps://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2026q2/018471.html
- Referencehttps://thekelleys.org.uk/dnsmasq/CVE/
- Advisoryhttps://www.kb.cert.org/vuls/id/471747
- Referencehttps://access.redhat.com/errata/RHSA-2026:19158
- Vendor Advisoryhttps://access.redhat.com/security/cve/CVE-2026-5172
- Issue Trackinghttps://bugzilla.redhat.com/show_bug.cgi?id=2458521
- Referencehttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5172.json
Data last checked: Dec 5, 2026 13:13 UTC