CVE-2026-5172

NameCVE-2026-5172
DescriptionA 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-6264-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
dnsmasq (PTS)bullseye2.85-1vulnerable
bullseye (security)2.85-1+deb11u1vulnerable
bookworm, bookworm (security)2.90-4~deb12u2fixed
trixie (security), trixie2.91-1+deb13u1fixed
forky, sid2.92-5fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
dnsmasqsourcebookworm2.90-4~deb12u2DSA-6264-1
dnsmasqsourcetrixie2.91-1+deb13u1DSA-6264-1
dnsmasqsource(unstable)2.92-5

Notes

https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2026q2/018471.html
https://xchglabs.com/blog/dnsmasq-five-cves.html
Fixed by: https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=073082ddc0aba7b8efa15a688d6183463b65effa (v2.93rc1)

Search for package or bug name: Reporting problems