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

- Severity: Medium 5.9 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-06-22T13:55:05.406Z
- Modified: 2026-11-24T12:17:22.170Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- dnsmasq: no versions given
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given
- redhat openshift_container_platform: from 4.0 up to 4.22.1
- redhat enterprise_linux: 8.0; 9.0; 10.0
- thekelleys dnsmasq: before 2.93

## References

- <https://access.redhat.com/security/cve/CVE-2026-12725> (mitigation, vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2490763> (issue-tracking, vendor-advisory)

## Sources

- CVE List: [CVE-2026-12725](https://www.cve.org/CVERecord?id=CVE-2026-12725), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2026-12725](https://nvd.nist.gov/vuln/detail/CVE-2026-12725), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-12725 · Whole record: https://cve.day/CVE-2026-12725.json · Rebuilt by cve.day 2026-11-25T22:59:25.365Z
