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

Published Jun 23, 2026
·
Updated

An out-of-bounds read vulnerability exists in dnsmasq's findsoa() function in src/rfc1035.c. When parsing NS section records, extractname() 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.

Other sources

An out-of-bounds read vulnerability was found in dnsmasq's findsoa() function in src/rfc1035.c. The function calls extractname() with extrabytes=0 when parsing NS section records in NXDOMAIN/NODATA responses, which only validates that the DNS name fits within the packet but does not verify that 10 additional bytes exist for the fixed-length fields (type, class, TTL, rdlen). The subsequent GETSHORT/GETLONG macros then unconditionally read 10 bytes past the valid packet boundary.

An attacker controlling a DNS zone can trigger this by returning a crafted NXDOMAIN response where the NS record name (a compression pointer) extends to the packet boundary. The 10-byte over-read typically stays within dnsmasq's over-allocated packet buffer (headroom of 1035 bytes), limiting crash risk, but accesses data outside the logical packet boundary and may read stale heap data from prior DNS transactions.

Upstream fix: https://repo.or.cz/dnsmasq.mirror.git/commit/14094e88beca519c53151184cc4553656672b54f Fixed in: dnsmasq 2.93rc1

— Red Hat

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

— Microsoft

Affected Software

15 affected componentsFixes available
Dnsmasq Dnsmasq<2.93rc1
Microsoft azl3 dnsmasq 2.92-1<2.93-1
2.93-1
redhat Enterprise Linux=10.0
thekelleys dnsmasq<2.93
debian/dnsmasq*
debian/dnsmasq<2.91-1+deb13u2
2.91-1+deb13u2
debian/dnsmasq<2.93-1
2.93-1
debian/dnsmasq<=2.90-4~deb12u2, <=2.91-1+deb13u1
2.91-1+deb13u22.93-1
ubuntu/dnsmasq<2.90-0ubuntu0.16.04.1+esm4
2.90-0ubuntu0.16.04.1+esm4
ubuntu/dnsmasq<2.90-0ubuntu0.18.04.1+esm4
2.90-0ubuntu0.18.04.1+esm4
ubuntu/dnsmasq<2.90-0ubuntu0.20.04.1+esm3
2.90-0ubuntu0.20.04.1+esm3
ubuntu/dnsmasq<2.90-0ubuntu0.22.04.4
2.90-0ubuntu0.22.04.4
ubuntu/dnsmasq<2.90-2ubuntu0.4
2.90-2ubuntu0.4
ubuntu/dnsmasq*
ubuntu/dnsmasq<2.92-1ubuntu0.4
2.92-1ubuntu0.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.93-1
  2. Upgrade

    Upgrade debian/dnsmasq to a version that resolves this vulnerability.

    Fixed in 2.91-1+deb13u2
  3. Upgrade

    Upgrade debian/dnsmasq to a version that resolves this vulnerability.

    Fixed in 2.93-1
  4. Upgrade

    Upgrade debian/dnsmasq to a version that resolves this vulnerability.

    Fixed in 2.91-1+deb13u2Fixed in 2.93-1
  5. Upgrade

    Upgrade ubuntu/dnsmasq to a version that resolves this vulnerability.

    Fixed in 2.90-0ubuntu0.16.04.1+esm4
  6. Upgrade

    Upgrade ubuntu/dnsmasq to a version that resolves this vulnerability.

    Fixed in 2.90-0ubuntu0.18.04.1+esm4
  7. Upgrade

    Upgrade ubuntu/dnsmasq to a version that resolves this vulnerability.

    Fixed in 2.90-0ubuntu0.20.04.1+esm3
  8. Upgrade

    Upgrade ubuntu/dnsmasq to a version that resolves this vulnerability.

    Fixed in 2.90-0ubuntu0.22.04.4
  9. Upgrade

    Upgrade ubuntu/dnsmasq to a version that resolves this vulnerability.

    Fixed in 2.90-2ubuntu0.4
  10. Upgrade

    Upgrade ubuntu/dnsmasq to a version that resolves this vulnerability.

    Fixed in 2.92-1ubuntu0.4
  11. Upgrade

    Upgrade dnsmasq to a version that resolves this vulnerability.

    Fixed in 2.93rc1
  12. Compensating control

    Mitigate exploitation of the NXDOMAIN-crafted response by restricting which DNS zones/authoritative servers you trust to answer for your clients (prevent attackers from controlling the DNS zone whose NXDOMAIN/NODATA responses can be returned to dnsmasq).

Event History

Jun 23, 2026
Data Sourced
via Red Hat·09:43 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·01:28 PM
Data Sourced
via MITRE·01:28 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·02:17 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeakness
Jun 27, 2026
Data Sourced
via Microsoft·08:04 AM
DescriptionSeverityWeaknessAffected Software
Jul 8, 2026
Data Sourced
via NVD·03:10 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-12969?

CVE-2026-12969 has a medium severity rating of 5.3.

2

How does CVE-2026-12969 affect Dnsmasq users?

CVE-2026-12969 can lead to out-of-bounds read vulnerabilities when parsing DNS records, potentially exposing user information.

3

How do I fix CVE-2026-12969?

Users should update Dnsmasq to the latest version where the out-of-bounds read vulnerability is addressed.

4

Is CVE-2026-12969 exploitable remotely?

Yes, CVE-2026-12969 can be exploited by a remote attacker controlling a DNS zone.

5

What components of Dnsmasq are affected by CVE-2026-12969?

The vulnerability in CVE-2026-12969 specifically affects the find_soa() function in the Dnsmasq source code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203