# CVE-2026-40691: Packet of death for DNSCrypt over TCP

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 1.25.2 (CNA); fix release not confirmed
- Status: published
- Published: 2026-07-22 · Modified: 2026-07-22
- Aliases: UBUNTU-CVE-2026-40691, DEBIAN-CVE-2026-40691
- Record: https://cvemate.com/vulnerability/CVE-2026-40691 · JSON: https://cvemate.com/vulnerability/CVE-2026-40691/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.293%, percentile 23.531%, 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

- 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) \| \< 1.6.7-1ubuntu2.6+esm6 \| \< 1.9.4-2ubuntu1.11+esm3 \| \< 1.13.1-1ubuntu5.17 \| \< 1.19.2-1ubuntu3.12 \| \< 1.25.1-1ubuntu3.1 \| \< 1.24.2-1ubuntu2.4
- nlnet labs unbound: ≥ 1.9.0, \< 1.25.2
- nlnetlabs unbound: ≥ 1.9.0, \< 1.25.2

## References

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

---

Data as of 2026-12-05T03:09:08.413Z. 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
