CVE-2026-5172

CVE-2026-5172

Published May 11, 2026 CVSS 3.1 · 7.3 High EPSS 2.7% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is a buffer overflow in dnsmasq's extract_addresses() function that leads to a heap out‑of‑bounds read. A malicious DNS responder can construct a malformed DNS response that causes the server to read past the end of a record, triggering a crash. This results in a denial of service of the DNS service, affecting the availability of name resolution for clients. The weakness corresponds to CWE‑125, an out‑of‑bounds read.

Affected Systems

The affected product is dnsmasq, an open‑source DNS and DHCP server, typically used on embedded and small‑scale networks. No specific version information is available in the advisory, so any installation that has not yet been updated to a release that patches the bug may be vulnerable.

Risk and Exploitability

The flaw can be exercised over the network by an adversary who can send crafted DNS responses to a dnsmasq server, so broadcast or unicast traffic can trigger the crash. The likely attack vector is inferred from the description that the out‑of‑bounds read is triggered by a malformed DNS response. The CVSS score is 7.3, EPSS 0.02683%, and the vulnerability is not listed in CISA’s KEV catalog, indicating a moderate severity and a very low exploitation probability. However, because a misbehaving DNS server can disrupt service for all clients, the potential impact remains significant, and the lack of a patch or mitigation increases the risk for exposed systems.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade dnsmasq to the latest stable release once a patch addressing the heap read overflow is published.
  • Configure network filtering or a DNS firewall to reject DNS responses that exceed the maximum allowed packet size or contain invalid record lengths.
  • Enable logging and monitoring of DNS traffic to detect anomalous responses that could indicate an exploitation attempt and apply appropriate incident response procedures.

Generated by OpenCVE AI on October 25, 2026 at 20:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6264-1 dnsmasq security update
Ubuntu USN Ubuntu USN USN-8268-1 Dnsmasq vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Dnsmasq
Dnsmasq dnsmasq
Weaknesses CWE-125
Vendors & Products Dnsmasq
Dnsmasq dnsmasq
Type Values Removed Values Added
Description 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.
Title CVE-2026-5172
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
certcc
Published
Updated
Sep 1, 2026, 12:04 PM
Reserved
Mar 30, 2026, 3:54 PM
Status
Awaiting Analysis
Published
May 11, 2026, 6:16 PM
Modified
Aug 24, 2026, 1:19 PM
Severity
Important
Public date
May 9, 2026, 12:00 AM