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
A malformed DNS response can crash dnsmasq, disrupting DNS and potentially DHCP-dependent services. Exploitation requires no privileges or user interaction and is network-reachable, supporting the supplied high severity. The provided affected-version entry is incomplete, so organizations should confirm exposure through their operating-system, appliance, or embedded-product vendor.
Executive priority
Prioritize systems providing shared DNS, DHCP, branch, or appliance services because one crash can affect many users. Patch promptly after validating vendor applicability. Escalate critical infrastructure and repeatedly crashing systems, while avoiding unsupported claims of active attacks or remote code execution.
Technical view
In dnsmasq’s extract_addresses(), malformed DNS record data can cause extract_name() to advance beyond the record boundary, producing a heap out-of-bounds read and process crash. The supplied CVSS 3.1 score is 7.5, reflecting remotely triggerable availability impact without demonstrated confidentiality or integrity impact.
Likely exposure
Potentially exposed systems include dnsmasq deployments that process attacker-influenced DNS responses, including packaged or embedded copies. Actual exposure cannot be determined from the supplied version value “0.” Internet accessibility is not necessarily required if an attacker can influence responses reaching the service.
Exploitation context
The bundle does not establish active exploitation, and CVE-2026-5172 is not listed as KEV. It supports a remotely triggerable denial-of-service condition, but provides no evidence here of code execution, data theft, or persistence. Treat claims beyond service crashing as unverified.
Researcher notes
The source bundle describes a heap out-of-bounds read caused by DNS name parsing crossing a record boundary and maps CWE-125 and CWE-787. The demonstrated consequence is a crash. Exact upstream affected and fixed version ranges are absent from the supplied data; downstream advisories and releases should control package-level determinations.
Mitigation direction
Inventory dnsmasq across servers, appliances, routers, containers, and embedded products.
Apply the relevant vendor security update, including Red Hat’s advisory where applicable.
Update Pi-hole FTL to the cited fixed release where applicable.
Check upstream dnsmasq guidance when your distributor has not published an update.
Restrict untrusted DNS response paths where operationally feasible until patched.
Validation and detection
Record installed dnsmasq and vendor package versions on every identified system.
Compare each package against its vendor advisory, not the incomplete version entry.
Confirm updated services restarted successfully and provide DNS functionality.
Monitor dnsmasq crashes, unexpected restarts, and DNS availability failures.
Recheck embedded products whose dnsmasq version is hidden by vendor firmware.
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.