Skip to content
Threat Brief

← All advisories

CVE-2026-12725

Medium 5.9No known exploitationFix status unknown

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

Record last updated

CVSS score

5.9

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.5%

Higher than 38% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

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

VendorProductAffected versionsFixed inPer
Red HatRed Hat Enterprise Linux 10Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 8Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 9Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift Container Platform 4Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift Container Platform 4Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift Container Platform 5Not documentedNot documentedCVE Program
redhatenterprise_linux10.0Not documentedNIST NVD
redhatenterprise_linux8.0Not documentedNIST NVD
redhatenterprise_linux9.0Not documentedNIST NVD
redhatopenshift_container_platformfrom 4.0 up to and including 4.22.1Not documentedNIST NVD
thekelleysdnsmasqall versions before 2.932.93NIST NVD
Red HatRed Hat Enterprise Linux 6 (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 7 (status unknown)Not documentedNot documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by redhat

    Source: CVE Program (opens in a new tab)

Vendor guidance and references