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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-22 · Modified: 2026-07-22
- Aliases: ALPINE-CVE-2026-56416, UBUNTU-CVE-2026-56416, DEBIAN-CVE-2026-56416
- Record: https://cvemate.com/vulnerability/CVE-2026-56416 · JSON: https://cvemate.com/vulnerability/CVE-2026-56416/json

## Description

```text
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 + dname_valid(datstart, ...)' and passes it straight to 'query_dname_tolower()' 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 'query_dname_tolower()' to walk label-by-label through stale bytes in the per-worker 'env->scratch_buffer', 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.
```

## Signals

- CVSS: 4.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
- EPSS: 0.124%, percentile 2.293%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine unbound (Alpine Linux): \< 1.25.2-r0
- debian unbound (Debian): All versions (No fix recorded) \| \< 1.26.1-0+deb13u1 \| \< 1.25.2-1
- ubuntu unbound (Ubuntu): All versions (No fix recorded)
- nlnet labs unbound: \< 1.25.2
- nlnetlabs unbound: \< 1.25.2

## References

- <https://www.nlnetlabs.nl/downloads/unbound/CVE-2026-56416.txt>
- <https://security.alpinelinux.org/vuln/CVE-2026-56416>
- <https://ubuntu.com/security/CVE-2026-56416>
- <https://www.cve.org/CVERecord?id=CVE-2026-56416>
- <https://community.nlnetlabs.nl/t/unbound-1-25-2-released/3430>
- <https://security-tracker.debian.org/tracker/CVE-2026-56416>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-56416>

---

Data as of 2026-12-05T06:22:05.787Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
