REDHAT-BUG-2491663: Low severity Dnsmasq Dnsmasq vulnerability

Published Jun 23, 2026
·
Updated

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

Affected Software

1 affected component
Dnsmasq Dnsmasq<2.93rc1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade dnsmasq to a version that resolves this vulnerability.

    Fixed in 2.93rc1Patch 14094e88beca519c53151184cc4553656672b54f

Event History

Jun 23, 2026
Data Sourced
via Red Hat·09:43 AM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2491663?

The severity of REDHAT-BUG-2491663 is low.

2

What type of vulnerability is REDHAT-BUG-2491663?

REDHAT-BUG-2491663 is classified as an out-of-bounds read vulnerability in dnsmasq.

3

How does REDHAT-BUG-2491663 affect dnsmasq functionality?

REDHAT-BUG-2491663 affects dnsmasq by allowing improper handling of NS section records in NXDOMAIN/NODATA responses.

4

What function is impacted by REDHAT-BUG-2491663?

The find_soa() function in dnsmasq is impacted by REDHAT-BUG-2491663.

5

How can I mitigate the effects of REDHAT-BUG-2491663?

Mitigation for REDHAT-BUG-2491663 can be achieved by applying appropriate patches or updates to dnsmasq once they are available.

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