CVE-2026-40691 json
Packet of death for DNSCrypt over TCP
published 2026-07-22 3 mo ago modified 2026-10-24 16 d ago also EUVD-2026-47664
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 22%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- NLnet Labs Unbound 1.25.2
- unbound Debian 13 1.26.1-0+deb13u1
- unbound Debian 14 1.25.2-1
debian advisories DEBIAN-CVE-2026-40691
- unbound Ubuntu 22.04 LTS 1.13.1-1ubuntu5.17
- unbound Ubuntu 24.04 LTS 1.19.2-1ubuntu3.12
- unbound Ubuntu 26.04 LTS 1.24.2-1ubuntu2.4
- unbound Ubuntu Pro 18.04 LTS 1.6.7-1ubuntu2.6+esm6
- unbound Ubuntu Pro 20.04 LTS 1.9.4-2ubuntu1.11+esm3
ubuntu advisories UBUNTU-CVE-2026-40691
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- unbound hummingbird 1 1.25.2-0.1.hum1
- unbound-libs hummingbird 1 1.25.2-0.1.hum1
- unbound-munin hummingbird 1 1.25.2-0.1.hum1
- unbound-utils hummingbird 1 1.25.2-0.1.hum1
- unbound-anchor hummingbird 1 1.25.2-0.1.hum1
- unbound-dracut hummingbird 1 1.25.2-0.1.hum1
- python3-unbound hummingbird 1 1.25.2-0.1.hum1
red hat advisories RHSA-2026:43588
- unbound SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Package Hub 15 SP7 +1 more 1.25.2-150600.23.19.1
- unbound SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +6 more 1.25.2-150100.10.28.1
- unbound Linux Micro 6.0 1.25.2-1.1
- unbound Linux Micro 6.1 1.25.2-slfo.1.1_1.1
- unbound SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 1.25.2-160000.1.1
suse advisories SUSE-SU-2026:3885-1SUSE-SU-2026:3884-1SUSE-SU-2026:23360-1SUSE-SU-2026:23349-1SUSE-SU-2026:23050-1SUSE-SU-2026:23215-1
- unbound openSUSE Leap 16.0 1.25.2-160000.1.1
- unbound openSUSE Tumbleweed 1.25.2-1.1
opensuse advisories openSUSE-SU-2026:21550-1openSUSE-SU-2026:11380-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-40691 updated cvss 7.5
unbound: Unbound: Denial of Service via crafted DNSCrypt query
-
Red Hat Hardened Images unbound 1.25.2-0.1.hum1, unbound-libs 1.25.2-0.1.hum1, unbound-munin 1.25.2-0.1.hum1, unbound-utils 1.25.2-0.1.hum1, unbound-anchor 1.25.2-0.1.hum1, unbound-dracut 1.25.2-0.1.hum1, +1 morefixed: vendor fix RHSA-2026:43588
-
Red Hat Enterprise Linux 6 unbound, unbound-libs, unbound-python Red Hat Enterprise Linux 7 unbound, unbound-libs, unbound-python Red Hat Enterprise Linux 8 unbound, unbound-libs, python3-unbound Red Hat Enterprise Linux 9 unbound, unbound-libs, unbound-dracut, python3-unbound Red Hat Enterprise Linux 10 unbound Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9not affected: vulnerable code not present
+1 more productsfewer
Red Hat OpenShift Container Platform 5 openshift/ose-rhel-coreos-9
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.29% chance of exploitation in the next 30 days, higher than 22% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected products
- NLnet Labs Unbound
Classification
References
-
nlnetlabs.nl
/downloads/unbound/CVE-2026-40691.txt
vendor-advisory
Sources
- CVE List CVE-2026-40691
- NVD CVE-2026-40691
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.