REDHAT-BUG-2490763: Buffer Overflow

Published Jun 19, 2026
·
Updated

A heap buffer overflow exists in dnsmasq's logquery() function (src/cache.c). When query logging is enabled and dnsmasq logs DS or DNSKEY replies containing unsupported algorithm or digest types, the "(not supported)" suffix causes sprintf() to write past the end of daemon->addrbuff, a 46-byte heap buffer. Trigger example: a DS record with keytag=65535, algorithm=255, digesttype=255 (both algorithm 255 and digesttype 255 are IANA-unassigned), causing the "(not supported)" branch in dnssec.c to fire during logging. Prerequisites: - DNSSEC validation enabled - Query logging enabled (e.g. --log-queries) Impact: bounded heap write overflow (~12 bytes). Upstream maintainer Simon Kelley notes the overwrite is of bounded length, the bytes written are not attacker-controlled, and this is not considered a likely remote-execution vector. Practical impact is denial of service via process crash or heap corruption. Fixed upstream in commit 36d081e37477027fd721fea498f3760f529034ad (dnsmasq 2.92rel2).

Affected Software

1 affected component
Dnsmasq Dnsmasq<2.92rel2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade dnsmasq to a version that resolves this vulnerability.

    Fixed in 2.92rel2Patch 36d081e37477027fd721fea498f3760f529034ad
  2. Configuration

    Disable dnsmasq query logging (e.g., do not run with --log-queries). The heap buffer overflow is triggered in log_query() when query logging is enabled and dnsmasq logs DS or DNSKEY replies containing attacker-controlled unsupported algorithm/digest_type values.

    dnsmasq (logging) query logging (e.g., --log-queries) = disabled

Event History

Jun 19, 2026
Data Sourced
via Red Hat·02:44 PM
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-2490763?

The severity of REDHAT-BUG-2490763 is medium, rated at 4.

2

How do I fix REDHAT-BUG-2490763?

To fix REDHAT-BUG-2490763, update the Dnsmasq software to the latest patched version.

3

What kind of vulnerability is REDHAT-BUG-2490763?

REDHAT-BUG-2490763 is a heap buffer overflow vulnerability.

4

What causes the vulnerability in REDHAT-BUG-2490763?

The vulnerability in REDHAT-BUG-2490763 is caused by improper handling of unsupported algorithm or digest types when logging DNS queries.

5

What is affected by REDHAT-BUG-2490763?

The Dnsmasq software is affected by the vulnerability REDHAT-BUG-2490763.

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