CVE-2026-40691

EUVD-2026-47664
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 21.51%
Affected Products (NVD)
VendorProductVersion
nlnetlabsunbound
1.9.0 ≤
𝑥
< 1.25.2
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
unbound
bookworm
vulnerable
bookworm (security)
vulnerable
forky
1.26.0-2
fixed
sid
1.26.0-2
fixed
trixie
vulnerable
trixie (security)
vulnerable
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
unbound
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
noble
needs-triage
resolute
needs-triage
trusty
needs-triage
xenial
needs-triage
openSUSE logo
openSUSE / SLES Releases
openSUSE Product
Release
libunbound8
suse enterprise desktop 15 SP7
1.25.2-150600.23.19.1
fixed
suse enterprise sap 15 SP4
1.25.2-150100.10.28.1
fixed
suse enterprise sap 15 SP5
1.25.2-150100.10.28.1
fixed
suse enterprise sap 15 SP6
1.25.2-150600.23.19.1
fixed
suse enterprise sap 15 SP7
1.25.2-150600.23.19.1
fixed
suse enterprise server 15 SP4
1.25.2-150100.10.28.1
fixed
suse enterprise server 15 SP5
1.25.2-150100.10.28.1
fixed
suse enterprise server 15 SP6
1.25.2-150600.23.19.1
fixed
suse enterprise server 15 SP7
1.25.2-150600.23.19.1
fixed
unbound-anchor
suse enterprise desktop 15 SP7
1.25.2-150600.23.19.1
fixed
suse enterprise sap 15 SP4
1.25.2-150100.10.28.1
fixed
suse enterprise sap 15 SP5
1.25.2-150100.10.28.1
fixed
suse enterprise sap 15 SP6
1.25.2-150600.23.19.1
fixed
suse enterprise sap 15 SP7
1.25.2-150600.23.19.1
fixed
suse enterprise server 15 SP4
1.25.2-150100.10.28.1
fixed
suse enterprise server 15 SP5
1.25.2-150100.10.28.1
fixed
suse enterprise server 15 SP6
1.25.2-150600.23.19.1
fixed
suse enterprise server 15 SP7
1.25.2-150600.23.19.1
fixed
unbound-devel
suse enterprise desktop 15 SP7
1.25.2-150600.23.19.1
fixed
suse enterprise sap 15 SP4
1.25.2-150100.10.28.1
fixed
suse enterprise sap 15 SP5
1.25.2-150100.10.28.1
fixed
suse enterprise sap 15 SP6
1.25.2-150600.23.19.1
fixed
suse enterprise sap 15 SP7
1.25.2-150600.23.19.1
fixed
suse enterprise server 15 SP4
1.25.2-150100.10.28.1
fixed
suse enterprise server 15 SP5
1.25.2-150100.10.28.1
fixed
suse enterprise server 15 SP6
1.25.2-150600.23.19.1
fixed
suse enterprise server 15 SP7
1.25.2-150600.23.19.1
fixed
Azure Linux logo
Azure Linux Releases
Azure Package
Release
unbound
Azure Linux 3.0
0:1.25.2-1.azl3
fixed