Logo
vulnerabilityCVE-2026-40691
Name
CVE-2026-40691
Source
NVD ( link)Debian ( link)
Description
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
unbound
Exploitable

Vulnerability Ratings#


7.5
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
master
1.25.1
Exploitable
openwrt
master
1.25.2-r1
Not Affected
openwrt
openwrt-25.12
1.25.2-r1
Not Affected
yocto
kirkstone
1.15.0
Exploitable
yocto
master
1.26.0
Not Affected
yocto
scarthgap
1.19.3
Exploitable