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.
Published: 2026-06-22
Score: 5.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A heap-based buffer overflow occurs in dnsmasq when DNSSEC validation and query logging are simultaneously enabled and an unsupported DS or DNSKEY reply is logged. The overflow writes past the end of an internal logging buffer, leading to a crash of the dnsmasq process. The resulting denial of service can disrupt DNS resolution for clients relying on the affected instance.

Affected Systems

Red Hat Enterprise Linux 6, 7, 8, 9, and 10, as well as Red Hat OpenShift Container Platform 4, all of which use the vulnerable dnsmasq version. The exact vulnerable dnsmasq version is not specified in the advisory, so the affected dnsmasq version is unknown.

Risk and Exploitability

The CVSS score of 5.9 indicates moderate severity, though the EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog. An attacker must remotely supply a DNS response containing an unsupported algorithm or digest type, and the target must have DNSSEC validation and query logging enabled. If these conditions are met, the attacker can cause a service outage by triggering the overflow, but no privilege escalation or data exfiltration results.

Generated by OpenCVE AI on June 22, 2026 at 16:52 UTC.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Update dnsmasq to a version that includes the upstream fix (commit 36d081e37477027fd721fea498f3760f529034ad).
  • If updating is not possible, disable query logging while keeping DNSSEC validation enabled to prevent the overflow.
  • Restart the dnsmasq service after applying the configuration change or upgrade.

Generated by OpenCVE AI on June 22, 2026 at 16:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 22 Jun 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 22 Jun 2026 15:45:00 +0000

Type Values Removed Values Added
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.
Title Dnsmasq: dnsmasq: heap buffer overflow in log_query() when logging unsupported ds/dnskey replies
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
Weaknesses CWE-122
CPEs cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

Redhat Enterprise Linux Openshift
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-06-22T18:20:30.315Z

Reserved: 2026-06-19T14:44:05.921Z

Link: CVE-2026-12725

cve-icon Vulnrichment

Updated: 2026-06-22T18:20:25.999Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-22T17:00:06Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow