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.
Security readout for executives and security teams
Plain-English summary
CVE-2026-5172 is a dnsmasq crash vulnerability. A malformed DNS response can make dnsmasq read beyond a heap buffer and terminate, disrupting DNS service. The business impact is availability: affected DNS forwarders can fail without authentication or user interaction.
Executive priority
Treat this as a high-priority availability issue for DNS infrastructure. Prioritize internet-facing, shared, or business-critical dnsmasq deployments, especially where DNS outage would interrupt authentication, service discovery, or customer-facing systems.
Technical view
The issue is in dnsmasq extract_addresses(). A malformed DNS response can cause extract_name() to advance a parsing pointer past the record end, leading to a heap out-of-bounds read and crash. The provided CVSS is 7.5, network exploitable, low complexity, unauthenticated, with high availability impact only.
Likely exposure
Exposure is likely wherever dnsmasq processes DNS responses from untrusted or attacker-influenced sources. The bundle does not provide a precise affected version range, so teams should rely on vendor package advisories for applicability.
Exploitation context
The source bundle does not show CISA KEV listing or cited evidence of active exploitation. The described attack path is remote and unauthenticated, but the documented outcome is service crash rather than data theft or code execution.
Researcher notes
The bundle supports a denial-of-service conclusion from heap out-of-bounds read behavior. It does not support active exploitation, code execution, confidentiality impact, or a universal affected version range. Vendor-specific packaging evidence should drive final exposure decisions.
Mitigation direction
Review dnsmasq upstream CVE guidance for affected versions and fixes.
Apply relevant vendor updates, including distro advisories such as Red Hat RHSA-2026:19158.
Review Pi-hole FTL v6.6.2 guidance if using Pi-hole-provided dnsmasq components.
Track NixOS advisory or package updates if using nixpkgs builds.
Restrict DNS service exposure where operationally possible.
Validation and detection
Inventory hosts, containers, and appliances running dnsmasq.
Compare installed dnsmasq packages against vendor advisory status.
Confirm whether DNS responses can originate from untrusted networks.
Verify patched package or vendor release installation after remediation.
Monitor dnsmasq crash logs and service restarts for suspicious malformed-response activity.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-125: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-125 · source CWE mapping
Out-of-bounds Read
Out-of-bounds Read represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Out-of-bounds Write represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.