CVE-2026-40691Packet of death for DNSCrypt over TCP
In Unbound 1.9.0 up to and including 1.25.1, when a DNSCrypt query is received over TCP, the routine that encrypts the reply in place fails to bound the reply length against the destination buffer size. The size clamp that protects the UDP path is not applied on the TCP path, so a reply larger than 65504 bytes is shifted forward by 48 bytes inside a buffer of capacity equal to 'msg-buffer-size', writing past the end of the heap allocation. A single malicious encrypted query crashes the resolver and lead to denial of service. This vulnerability needs Unbound to be compiled with DNSCrypt support ('--enable-dnscrypt') and the 'dnscrypt:' clause to be configured and enabled for the listening interfaces.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | unbound | Fixed | 1.25.1-1ubuntu3.1 | UBUNTU-CVE-2026-40691 |
| Ubuntu 26.04 | unbound | Fixed | 1.24.2-1ubuntu2.4 | UBUNTU-CVE-2026-40691 |
| Ubuntu 24.04 | unbound | Fixed | 1.19.2-1ubuntu3.12 | UBUNTU-CVE-2026-40691 |
| Ubuntu 22.04 | unbound | Fixed | 1.13.1-1ubuntu5.17 | UBUNTU-CVE-2026-40691 |
| Ubuntu 20.04 | unbound | Fix pending | 1.9.4-2ubuntu1.11+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-40691 |
| Ubuntu 18.04 | unbound | Fix pending | 1.6.7-1ubuntu2.6+esm6 (Ubuntu Pro) | UBUNTU-CVE-2026-40691 |
| Debian 14 | unbound | Fixed | 1.25.2-1 | DEBIAN-CVE-2026-40691 |
| Debian 13 | unbound | Fixed | 1.26.1-0+deb13u1 | DEBIAN-CVE-2026-40691 |
| Debian 12 | unbound | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2026-40691 | |
| Red Hat Enterprise Linux 10 | python3-unbound | Not affected | ||
| Red Hat Enterprise Linux 10 | unbound | Not affected | ||
| Red Hat Enterprise Linux 10 | unbound-anchor | Not affected | ||
| Red Hat Enterprise Linux 10 | unbound-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | unbound-dracut | Not affected | ||
| Red Hat Enterprise Linux 10 | unbound-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | unbound-utils | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-unbound | Not affected | ||
| Red Hat Enterprise Linux 9 | unbound | Not affected | ||
| Red Hat Enterprise Linux 9 | unbound-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | unbound-dracut | Not affected | ||
| Red Hat Enterprise Linux 9 | unbound-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-unbound | Not affected | ||
| Red Hat Enterprise Linux 8 | unbound | Not affected | ||
| Red Hat Enterprise Linux 8 | unbound-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | unbound-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | unbound | Not affected | ||
| Red Hat Enterprise Linux 7 | unbound-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | unbound-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | unbound-python | Not affected | ||
| Red Hat Enterprise Linux 6 | unbound | Not affected | ||
| Red Hat Enterprise Linux 6 | unbound-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | unbound-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | unbound-python | Not affected |
What the vendor says
As published in the CVE record by NLnet Labs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- NLnet Labs Unbound: affected: 1.9.0 to before 1.25.2; fixed in
1.25.2
Solution: This issue is fixed starting with version 1.25.2
Vendor advisories:
- https://www.nlnetlabs.nl/downloads/unbound/CVE-2026-40691.txt (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.