Skip to content
OpenAdvisories
High · 7.3 Public exploit CVE-2026-5172 EUVD-2026-29156GHSA-57vp-ffx7-7gm6

CVE-2026-5172

Published May 11, 2026 · Updated Sep 1, 2026 · Assigned by certcc

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.

Affected products

VendorProductAffectedFixed
dnsmasq dnsmasq < 2.92rel2 2.92rel2

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 dnsmasq 2.92-5 —
Debian 13 dnsmasq 2.91-1+deb13u1 —
Debian 12 dnsmasq 2.90-4~deb12u2 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS dnsmasq 2.92-1ubuntu0.2 —
Ubuntu 25.10 dnsmasq 2.91-1ubuntu0.2 —
Ubuntu 24.04 LTS dnsmasq 2.90-2ubuntu0.3 —
Ubuntu 22.04 LTS dnsmasq 2.90-0ubuntu0.22.04.3 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS dnsmasq 2.90-0ubuntu0.20.04.1+esm2 —
Ubuntu Pro 18.04 LTS dnsmasq 2.90-0ubuntu0.18.04.1+esm3 —
Ubuntu Pro 16.04 LTS dnsmasq 2.90-0ubuntu0.16.04.1+esm3 —
ReleasePackageFixed inAdvisory
RHEL 10 dnsmasq +1 2.90-7.el10_2 RHSA-2026:19158

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 dnsmasq +1 2.90-7.el10_2 ALSA-2026:19158

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 dnsmasq 2.90-7.el10_2 RLSA-2026:19158
ReleasePackageFixed inAdvisory
SLES 12 SP5 dnsmasq 2.92rel2-18.27.1 SUSE-SU-2026:2458-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed dnsmasq 2.92rel2-1.1 openSUSE-SU-2026:10821-1
ReleasePackageFixed inAdvisory
Alpine v3.24 dnsmasq 2.92_p2-r0 —
Alpine v3.23 dnsmasq 2.91-r1 —
Alpine v3.22 dnsmasq 2.91-r1 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 dnsmasq +1 2.90-1.amzn2023.0.3 ALAS2023-2026-1729

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 dnsmasq 2.92-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 dnsmasq +1 2.90-7.el10_2 ELSA-2026-19158

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling dnsmasq +1 2.93-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • lottiedeyan/CVE20265172poc ★ 0 · May 27, 2026

    CVE-2026-5172: buffer overflow in extract_addresses() on crafted resource record PoC

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 10

References