Skip to main content
Public proof of conceptFix available

CVE-2026-5172

A public proof of concept exists; no exploitation attested.

  • Published2026-05-11
  • WeaknessCWE-125

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-05-1118:16CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-10-23 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2026-5172?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2026-5172?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • dnsmasqAlmaLinux:10all versions · fixed in 2.90-7.el10_2and 1 other package

Vendor advisories

  • CVE-2026-5172 Red Hat Product Security21 products fixed · 10 known affected

    dnsmasq: extract_addresses() OOB read via malformed rdlen

    dnsmasq as a component of Red Hat Enterprise Linux 6 · dnsmasq-utils as a component of Red Hat Enterprise Linux 6 · dnsmasq.src as a component of Red Hat Enterprise Linux 6 · +7 more

  • RHSA-2026:19158 Red Hat Product Security21 products fixed

    Red Hat Security Advisory: dnsmasq security update

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2026:19158 · 21 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  2. No fix available, says the vendor Red Hat Product Security CVE-2026-5172 · 1 productAffected
  3. No fix planned, says the vendor Red Hat Product Security CVE-2026-5172 · 3 productsOut of support scope
  4. No fix planned, says the vendor Red Hat Product Security CVE-2026-5172 · 6 productsWill not fix

Detection

read 2026-10-23 19:25 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
1 repository, unverifiedlottiedeyan/CVE20265172poc
PoC-in-GitHub

Sources

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2026-05-11
Last Modified
2026-08-24
NVD status
Awaiting Analysis
MSRC Title
CVE-2026-5172

Frequently asked questions

What is CVE-2026-5172?

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.

Is CVE-2026-5172 actively exploited?

Active exploitation of CVE-2026-5172 has not been confirmed. Its EPSS score was 0.7% on 2026-10-23, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-5172?

CVE-2026-5172 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running dnsmasq? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month