Back

MEDIUM

Dnsmasq: dnsmasq: out-of-bounds read in find_soa() due to missing extrabytes validation

Published Jun 23, 2026

Description

An out-of-bounds read vulnerability exists in dnsmasq's find_soa() function in src/rfc1035.c. When parsing NS section records, extract_name() is called with extrabytes=0, failing to validate that 10 additional bytes exist for fixed-length DNS record fields. A remote attacker controlling a DNS zone can exploit this via a crafted NXDOMAIN response to cause a 10-byte heap out-of-bounds read, potentially accessing stale data from prior transactions.

Affected products

Remediation

Vendor solution

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. The fix is available in dnsmasq 2.93rc1 and later.

Red Hat statement

Red Hat rates this issue as Low impact. While the vulnerability is remotely triggerable without authentication, the 10-byte out-of-bounds read stays within the over-allocated packet buffer in default dnsmasq configurations (1035 bytes of headroom beyond the logical packet boundary). A crash is not achievable in practice, and the potential information disclosure is limited to stale heap data within the same buffer allocation. The fix is available in dnsmasq 2.93rc1 and later.

Red Hat mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. The fix is available in dnsmasq 2.93rc1 and later.

References (5)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner redhat
Published Jun 23, 2026
Updated Aug 31, 2026
Reserved Jun 23, 2026
CISA Vulnrichment
Updated Jun 23, 2026
NVD
Status Analyzed
Modified Aug 31, 2026
Red Hat
Severity Low
Public date May 10, 2026
ENISA EUVD
Assigner redhat
Published Jun 23, 2026
Updated Aug 31, 2026
Exploited since n/a
EUVD-2026-38449