CVEfocus › CVE database › CVE-2026-5172

CVE-2026-5172CVE-2026-5172

CVSS 7.3 HighEPSS 0.7% (higher than 48% of CVEs)Published 2026-05-11Updated 2026-09-01Assigner: certcc

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.

CWE-125

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed
3Fix pending
6Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04dnsmasqFixed2.92-1ubuntu0.2UBUNTU-CVE-2026-5172
Ubuntu 25.10dnsmasqFixed2.91-1ubuntu0.2UBUNTU-CVE-2026-5172
Ubuntu 24.04dnsmasqFixed2.90-2ubuntu0.3UBUNTU-CVE-2026-5172
Ubuntu 22.04dnsmasqFixed2.90-0ubuntu0.22.04.3UBUNTU-CVE-2026-5172
Ubuntu 20.04dnsmasqFix pending2.90-0ubuntu0.20.04.1+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-5172
Ubuntu 18.04dnsmasqFix pending2.90-0ubuntu0.18.04.1+esm3 (Ubuntu Pro)UBUNTU-CVE-2026-5172
Ubuntu 16.04dnsmasqFix pending2.90-0ubuntu0.16.04.1+esm3 (Ubuntu Pro)UBUNTU-CVE-2026-5172
Debian 14dnsmasqFixed2.92-5DEBIAN-CVE-2026-5172
Debian 13dnsmasqFixed2.91-1+deb13u1DEBIAN-CVE-2026-5172
Debian 12dnsmasqFixed2.90-4~deb12u2DEBIAN-CVE-2026-5172
Red Hat Enterprise Linux 10dnsmasqFixed0:2.90-7.el10_2RHSA-2026:19158
Red Hat Enterprise Linux 10dnsmasq-utilsFixed0:2.90-7.el10_2RHSA-2026:19158
Red Hat Enterprise Linux 9dnsmasqWill not fix
Will not fix
Red Hat Enterprise Linux 9dnsmasq-utilsWill not fix
Will not fix
Red Hat Enterprise Linux 8dnsmasqWill not fix
Will not fix
Red Hat Enterprise Linux 8dnsmasq-utilsWill not fix
Will not fix
Red Hat Enterprise Linux 7dnsmasqNot affected
Red Hat Enterprise Linux 7dnsmasq-utilsNot affected
Red Hat Enterprise Linux 6dnsmasqWill not fix
Out of support scope
Red Hat Enterprise Linux 6dnsmasq-utilsWill not fix
Out of support scope
AlmaLinux 10dnsmasqFixed2.90-7.el10_2ALSA-2026:19158
AlmaLinux 10dnsmasq-utilsFixed2.90-7.el10_2ALSA-2026:19158
Rocky Linux 10dnsmasqFixed0:2.90-7.el10_2RLSA-2026:19158
Alpine Linux 3.24dnsmasqFixed2.92_p2-r0ALPINE-CVE-2026-5172
Alpine Linux 3.23dnsmasqFixed2.91-r1ALPINE-CVE-2026-5172
Alpine Linux 3.22dnsmasqFixed2.91-r1ALPINE-CVE-2026-5172

What the vendor says

As published in the CVE record by certcc, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.