CVE-2026-56416: Possible heap buffer overflow when validator canonicalizes RDATA that contains domain name

Published Jul 22, 2026
·
Updated

In NLnet Labs Unbound up to and including version 1.25.1, when the validator builds the canonical RDATA form for an RRSIG-covered PX/RP/MINFO/SOA RRset, it computes the address of the second embedded domain name as 'datstart + dnamevalid(datstart, ...)' and passes it straight to 'querydnametolower()' without checking that a second name is actually present in the RDATA. The wire-format parser accepts multi-dname RRs whose RDATA ends after the first name, so an attacker who runs a DNSSEC-signed authoritative server can deliver a record with an absent second domain name (e.g. SOA record) and cause 'querydnametolower()' to walk label-by-label through stale bytes in the per-worker 'env->scratchbuffer', past the end of that heap allocation if 'msg-buffer-size' has been lowered from the default. This leads to heap buffer overflow and on a release build the outcome relies heavily on the contents of the buffer tail and the adjacent heap chunk.

Other sources

Possible heap buffer overflow when validator canonicalizes RDATA that contains domain name

Microsoft

Affected Software

3 affected componentsFixes available
Nlnet Labs Unbound<=1.25.1
Microsoft azl3 unbound 1.25.1-1<1.25.2-1
1.25.2-1
nlnetlabs Unbound<1.25.2

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 1.25.2-1
  2. Upgrade

    Upgrade NLnet Labs Unbound to a version that resolves this vulnerability.

    Fixed in 1.25.2
  3. Compensating control

    If you cannot upgrade to Unbound 1.25.2 immediately, mitigate the risk by keeping the wire-format message buffer size at the default (avoid lowering 'msg-buffer-size'), since the overflow is triggered when 'msg-buffer-size' has been lowered from the default.

Event History

Jul 22, 2026
CVE Published
via MITRE·01:10 PM
Data Sourced
via MITRE·01:10 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeaknessAffected Software
Jul 23, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:03 AM
Affected Software
Updated
via Microsoft·08:03 AM
DescriptionSeverity
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 CVE-2026-56416?

The severity of CVE-2026-56416 is rated as medium with a score of 4.8.

2

What is the risk associated with CVE-2026-56416?

CVE-2026-56416 has a risk rating of 32.

3

How do I fix CVE-2026-56416?

To fix CVE-2026-56416, upgrade to the latest version of NLnet Labs Unbound beyond version 1.25.1.

4

What type of vulnerability is CVE-2026-56416?

CVE-2026-56416 is a possible heap buffer overflow vulnerability.

5

Which software is affected by CVE-2026-56416?

CVE-2026-56416 affects NLnet Labs Unbound versions up to and including 1.25.1.

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