cve.bz

CVE-2026-12725 Heap-based Buffer Overflow

5.9 mediumEPSS 0.5%

Medium (5.9). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-06-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-12725 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-12725?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-12725?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-12725 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:openshift_container_platformfrom 4.0 through 4.22.1
redhat:enterprise_linux8.0
redhat:enterprise_linux9.0
redhat:enterprise_linux10.0
thekelleys:dnsmasqbefore 2.93

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12dnsmasqno fix listedDEBIAN-CVE-2026-12725
Debian13dnsmasq2.91-1+deb13u2DEBIAN-CVE-2026-12725
Debian14dnsmasq2.93-1DEBIAN-CVE-2026-12725
Ubuntu22.04:LTSdnsmasq2.90-0ubuntu0.22.04.4UBUNTU-CVE-2026-12725 USN-8542-1
Ubuntu24.04:LTSdnsmasq2.90-2ubuntu0.4UBUNTU-CVE-2026-12725 USN-8542-1
Ubuntu25.10dnsmasqno fix listedUBUNTU-CVE-2026-12725
Ubuntu26.04:LTSdnsmasq2.92-1ubuntu0.4UBUNTU-CVE-2026-12725 USN-8542-1
UbuntuPro:16.04:LTSdnsmasq2.90-0ubuntu0.16.04.1+esm4UBUNTU-CVE-2026-12725 USN-8542-1
UbuntuPro:18.04:LTSdnsmasq2.90-0ubuntu0.18.04.1+esm4UBUNTU-CVE-2026-12725 USN-8542-1
UbuntuPro:20.04:LTSdnsmasq2.90-0ubuntu0.20.04.1+esm3UBUNTU-CVE-2026-12725 USN-8542-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 11 morednsmasq2.93-150400.16.17.1SUSE-SU-2026:3028-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5dnsmasq2.93-18.32.1SUSE-SU-2026:2974-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0dnsmasq2.93-160000.1.1SUSE-SU-2026:22496-1
SUSELinux Micro 6.0dnsmasq2.93-1.1SUSE-SU-2026:22706-1
SUSELinux Micro 6.1dnsmasq2.93-slfo.1.1_1.1SUSE-SU-2026:22454-1
openSUSELeap 16.0dnsmasq2.93-160000.1.1openSUSE-SU-2026:21192-1
openSUSETumbleweeddnsmasq2.93-1.1openSUSE-SU-2026:11116-1
Azure Linux3dnsmasq2.93-1AZL-91167
Alpaquita23dnsmasq2.90-r2BELL-CVE-2026-12725
Alpaquita25dnsmasq2.91-r2BELL-CVE-2026-12725
Alpaquitastreamdnsmasq2.93-r0BELL-CVE-2026-12725

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security rates this issue as Moderate. The overflow occurs in

the query logging path only, requires both DNSSEC validation and query logging

to be enabled, involves a bounded overwrite with non-attacker-controlled data,

and is most appropriately characterized as a denial of service rather than a

confidentiality, integrity, or code execution issue. This assessment is

consistent with the upstream maintainer's analysis.

Red Hat's 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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10dnsmasqFix deferred
Red Hat Enterprise Linux 6dnsmasqNot affected
Red Hat Enterprise Linux 7dnsmasqNot affected
Red Hat Enterprise Linux 8dnsmasqFix deferred
Red Hat Enterprise Linux 9dnsmasqFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-12725.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON