cve.bz

CVE-2026-5172 dnsmasq dnsmasq: Out-of-bounds Read

7.3 highEPSS 2.7%

High (7.3) in dnsmasq dnsmasq. EPSS 2.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.3 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS
2.7% (unchanged from 2.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-5172 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-5172?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-5172?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-5172 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
dnsmasqbefore 2.92rel2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12dnsmasq2.90-4~deb12u2DEBIAN-CVE-2026-5172 DSA-6264-1
Debian13dnsmasq2.91-1+deb13u1DEBIAN-CVE-2026-5172 DSA-6264-1
Debian14dnsmasq2.92-5DEBIAN-CVE-2026-5172
Ubuntu22.04:LTSdnsmasq2.90-0ubuntu0.22.04.3UBUNTU-CVE-2026-5172
Ubuntu24.04:LTSdnsmasq2.90-2ubuntu0.3UBUNTU-CVE-2026-5172
Ubuntu25.10dnsmasq2.91-1ubuntu0.2UBUNTU-CVE-2026-5172
Ubuntu26.04:LTSdnsmasq2.92-1ubuntu0.2UBUNTU-CVE-2026-5172
UbuntuPro:16.04:LTSdnsmasq2.90-0ubuntu0.16.04.1+esm3UBUNTU-CVE-2026-5172
UbuntuPro:18.04:LTSdnsmasq2.90-0ubuntu0.18.04.1+esm3UBUNTU-CVE-2026-5172
UbuntuPro:20.04:LTSdnsmasq2.90-0ubuntu0.20.04.1+esm2UBUNTU-CVE-2026-5172
Red Hatenterprise_linux:10.2dnsmasq, dnsmasq-utils, dnsmasq-debuginfo and 2 more0:2.90-7.el10_2RHSA-2026:19158
Red Hatenterprise_linux_eus:10.0dnsmasq0:2.90-4.el10_0.1RHSA-2026:92677
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5dnsmasq2.92rel2-18.27.1SUSE-SU-2026:2458-1
openSUSETumbleweeddnsmasq2.92rel2-1.1openSUSE-SU-2026:10821-1
AlmaLinux10dnsmasq, dnsmasq-utils2.90-7.el10_2ALSA-2026:19158
Rocky Linux10dnsmasq0:2.90-7.el10_2RLSA-2026:19158
Alpinev3.22, v3.23dnsmasq2.91-r1ALPINE-CVE-2026-5172
Alpinev3.24dnsmasq2.92_p2-r0ALPINE-CVE-2026-5172
Azure Linux3dnsmasq2.92-1AZL-86766
Alpaquita23dnsmasq2.90-r1BELL-CVE-2026-5172
Alpaquita25dnsmasq2.91-r1BELL-CVE-2026-5172
Alpaquitastreamdnsmasq2.92_p2-r0BELL-CVE-2026-5172

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat rates this as Important. While this bug does not require any special dnsmasq configuration, the impact is limited to denial of service.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10dnsmasq-0:2.90-7.el10_2Fixed 2026-05-19RHSA-2026:19158
Red Hat Enterprise Linux 10.0 Extended Update Supportdnsmasq-0:2.90-4.el10_0.1Fixed 2026-10-29RHSA-2026:92677
Red Hat Enterprise Linux 6dnsmasqOut of support scope
Red Hat Enterprise Linux 7dnsmasqNot affected
Red Hat Enterprise Linux 8dnsmasqWill not fix
Red Hat Enterprise Linux 9dnsmasqWill not fix
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-5172.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • lottiedeyan/CVE20265172poc Harbor Check: matches CVE 0 stars, created
    CVE-2026-5172: buffer overflow in extract_addresses() on crafted resource record PoC

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON