CVE-2026-12969
dnsmasq: dnsmasq: out-of-bounds read in find_soa() due to missing extrabytes validation
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · May 10, 2026
Updated · August 31, 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.
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.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
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.
CVSS / CWE
CVSS 3.1 · 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CWE-125 · Out-of-bounds Read