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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-22 · Modified: 2026-11-24
- Aliases: UBUNTU-CVE-2026-12725, DEBIAN-CVE-2026-12725, openSUSE-SU-2026:11116-1
- Record: https://cvemate.com/vulnerability/CVE-2026-12725 · JSON: https://cvemate.com/vulnerability/CVE-2026-12725/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.479%, percentile 42.972%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian dnsmasq (Debian): All versions (No fix recorded) \| \< 2.91-1+deb13u2 \| \< 2.93-1
- ubuntu dnsmasq (Ubuntu): \< 2.90-0ubuntu0.16.04.1+esm4 \| \< 2.90-0ubuntu0.18.04.1+esm4 \| \< 2.90-0ubuntu0.20.04.1+esm3 \| \< 2.90-0ubuntu0.22.04.4 \| \< 2.90-2ubuntu0.4 \| All versions (No fix recorded) \| \< 2.92-1ubuntu0.4
- redhat enterprise\_linux: 8.0 \| 9.0 \| 10.0
- redhat openshift\_container\_platform: ≥ 4.0, ≤ 4.22.1
- opensuse dnsmasq&distro=openSUSE Tumbleweed (openSUSE): \< 2.93-1.1
- thekelleys dnsmasq: \< 2.93

## References

- <https://access.redhat.com/security/cve/CVE-2026-12725>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2490763>
- <https://ubuntu.com/security/CVE-2026-12725>
- <https://www.cve.org/CVERecord?id=CVE-2026-12725>
- <https://ubuntu.com/security/notices/USN-8542-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-12725>
- <https://www.suse.com/security/cve/CVE-2026-12725>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-12725>

---

Data as of 2026-12-05T03:10:08.541Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
