CVE-2026-12725
Medium 5.9No known exploitationFix status unknownDnsmasq: dnsmasq: heap buffer overflow in log_query() when logging unsupported ds/dnskey replies
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 38% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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
Patching and mitigation
- Patch status
- Unknown: no source documents a fix
- Mitigation
- Mitigate this issue by updating to a version of dnsmasq that includes the upstream fix (commit 36d081e37477027fd721fea498f3760f529034ad), or by disabling query logging if DNSSEC validation must remain enabled. After changing the configuration, restart the dnsmasq service for the changes to take effect.
- Vendor guidance
- access.redhat.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 8 | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9 | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 4 | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 4 | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 5 | Not documented | Not documented | CVE Program |
| redhat | enterprise_linux | 10.0 | Not documented | NIST NVD |
| redhat | enterprise_linux | 8.0 | Not documented | NIST NVD |
| redhat | enterprise_linux | 9.0 | Not documented | NIST NVD |
| redhat | openshift_container_platform | from 4.0 up to and including 4.22.1 | Not documented | NIST NVD |
| thekelleys | dnsmasq | all versions before 2.93 | 2.93 | NIST NVD |
| Red Hat | Red Hat Enterprise Linux 6 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 7 (status unknown) | Not documented | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by redhat
Source: CVE Program (opens in a new tab)
Vendor guidance and references
- https://access.redhat.com/security/cve/CVE-2026-12725 (opens in a new tab)mitigation, vdb-entry, vendor advisory, x_refsource_redhat
- RHBZ#2490763 (opens in a new tab)issue tracking, issue-tracking, vendor advisory, x_refsource_redhat