CVE-2026-12725 Dnsmasq: dnsmasq: heap buffer overflow in log_query() when logging unsupported ds/dnskey replies

Medium 5.9 Published Updated

Remote attackers can crash the dnsmasq service via heap buffer overflow in logging when DNSSEC and query logging are enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-12725?

CVE-2026-12725 is a medium-severity memory corruption vulnerability in Redhat Enterprise Linux, published on 22 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A heap-based buffer overflow was found in dnsmasq. When DNSSEC validation and query logging are both enabled, logging of DS or DNSKEY replies containing unsupported algorithm or digest types can cause dnsmasq to write past the end of an internal logging buffer. A remote attacker able to supply such a DNS response may crash the dnsmasq process, resulting in denial of service.

Weakness: CWE-122

Which versions are affected by CVE-2026-12725?

It affects 3 products.

Linux distribution packages (1)
dnsmasq openSUSE:TumbleweedAll versions2.93-1.1

Products include Redhat Enterprise Linux, Redhat Openshift Container Platform, Thekelleys Dnsmasq.

How do I fix CVE-2026-12725?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-12725 being exploited?

There is no known exploitation of CVE-2026-12725 in the wild and no public exploit code.

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as AZL-91167, BELL-CVE-2026-12725, CLSA-2026-1784640629, CLSA-2026-1784645899, DEBIAN-CVE-2026-12725, ECHO-6187-52bc-032f and 5 more.

Is CVE-2026-12725 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free