CVE catalog

CVE-2026-40691

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 siz

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.29% · Oct 27, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianunboundsid1.26.2-1fixed
Debianunboundforky1.26.2-1fixed
Debianunboundtrixie1.22.0-2+deb13u3vulnerable
Debianunboundtrixie-security1.26.2-0+deb13u1fixed
Debianunboundbookworm1.17.1-2+deb12u4vulnerable
Debianunboundbookworm-security1.17.1-2+deb12u3vulnerable
Suseunboundlinux enterprise micro 5.51.25.2-150100.10.28.1fixed
Suseunboundlinux enterprise high performance computing 15 sp4-espos1.25.2-150100.10.28.1fixed
Suseunboundlinux enterprise high performance computing 15 sp4-ltss1.25.2-150100.10.28.1fixed
Suseunboundlinux enterprise high performance computing 15 sp5-espos1.25.2-150100.10.28.1fixed
Suseunboundlinux enterprise high performance computing 15 sp5-ltss1.25.2-150100.10.28.1fixed
Suseunboundlinux enterprise server 15 sp4-ltss1.25.2-150100.10.28.1fixed
Suseunboundlinux enterprise server 15 sp5-ltss1.25.2-150100.10.28.1fixed
Suseunboundlinux enterprise server for sap applications 15 sp41.25.2-150100.10.28.1fixed
Suseunboundlinux enterprise server for sap applications 15 sp51.25.2-150100.10.28.1fixed
Ubuntuunboundpro1.9.0-2ubuntu1vulnerable
Ubuntuunboundpro1.9.0-2ubuntu2vulnerable
Ubuntuunboundpro1.9.4-2vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1.1vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1.2vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1.3vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1.4vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1.5vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1.6vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1.8vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1.9vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1.11vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1.11+esm1vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1.11+esm2vulnerable
Ubuntuunboundpro1.9.4-2ubuntu1.11+esm3fixed
Ubuntuunbound22.041.13.1-1ubuntu1vulnerable
Ubuntuunbound22.041.13.1-1ubuntu3vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.1vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.2vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.3vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.4vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.5vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.7vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.8vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.10vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.11vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.12vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.13vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.14vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.15vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.16vulnerable
Ubuntuunbound22.041.13.1-1ubuntu5.17fixed
Ubuntuunbound24.041.17.1-2vulnerable
Ubuntuunbound24.041.18.0-2ubuntu1vulnerable
Ubuntuunbound24.041.18.0-2ubuntu2vulnerable
Ubuntuunbound24.041.19.1-1ubuntu1vulnerable
Ubuntuunbound24.041.19.2-1ubuntu1vulnerable
Ubuntuunbound24.041.19.2-1ubuntu3vulnerable
Ubuntuunbound24.041.19.2-1ubuntu3.1vulnerable
Ubuntuunbound24.041.19.2-1ubuntu3.2vulnerable
Ubuntuunbound24.041.19.2-1ubuntu3.3vulnerable
Ubuntuunbound24.041.19.2-1ubuntu3.4vulnerable
Ubuntuunbound24.041.19.2-1ubuntu3.5vulnerable
Ubuntuunbound24.041.19.2-1ubuntu3.6vulnerable
Ubuntuunbound24.041.19.2-1ubuntu3.7vulnerable
Ubuntuunbound24.041.19.2-1ubuntu3.8vulnerable
Ubuntuunbound24.041.19.2-1ubuntu3.9vulnerable
Ubuntuunbound24.041.19.2-1ubuntu3.10vulnerable
Ubuntuunbound24.041.19.2-1ubuntu3.12fixed
Ubuntuunbound26.101.24.2-1ubuntu2vulnerable
Ubuntuunbound26.101.25.1-1ubuntu1vulnerable
Ubuntuunbound26.101.25.1-1ubuntu3vulnerable
Ubuntuunbound26.041.22.0-2ubuntu2vulnerable
Ubuntuunbound26.041.22.0-2ubuntu4vulnerable
Ubuntuunbound26.041.24.2-1ubuntu1vulnerable
Ubuntuunbound26.041.24.2-1ubuntu2vulnerable
Ubuntuunbound26.041.24.2-1ubuntu2.1vulnerable
Ubuntuunbound26.041.24.2-1ubuntu2.2vulnerable
Ubuntuunbound26.041.24.2-1ubuntu2.3vulnerable
Ubuntuunbound26.041.24.2-1ubuntu2.4fixed
CpeunboundNot reported1.25.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianunboundsourcesid1.25.2-1not yet assignedNot reportedNot reported
Debianunboundsourceforky1.25.2-1not yet assignedNot reportedNot reported
Debianunboundsourcetrixie1.26.1-0+deb13u1not yet assignedNot reportedNot reported
Debianunboundsourcebookworm(unfixed)not yet assignedNot reportedNot reported
Suseunboundrpmlinux enterprise micro 5.51.25.2-150100.10.28.1Not reportedSUSE-SU-2026:3884-1Not reported
Suseunboundrpmlinux enterprise high performance computing 15 sp4-espos1.25.2-150100.10.28.1Not reportedSUSE-SU-2026:3884-1Not reported
Suseunboundrpmlinux enterprise high performance computing 15 sp4-ltss1.25.2-150100.10.28.1Not reportedSUSE-SU-2026:3884-1Not reported
Suseunboundrpmlinux enterprise high performance computing 15 sp5-espos1.25.2-150100.10.28.1Not reportedSUSE-SU-2026:3884-1Not reported
Suseunboundrpmlinux enterprise high performance computing 15 sp5-ltss1.25.2-150100.10.28.1Not reportedSUSE-SU-2026:3884-1Not reported
Suseunboundrpmlinux enterprise server 15 sp4-ltss1.25.2-150100.10.28.1Not reportedSUSE-SU-2026:3884-1Not reported
Suseunboundrpmlinux enterprise server 15 sp5-ltss1.25.2-150100.10.28.1Not reportedSUSE-SU-2026:3884-1Not reported
Suseunboundrpmlinux enterprise server for sap applications 15 sp41.25.2-150100.10.28.1Not reportedSUSE-SU-2026:3884-1Not reported
Suseunboundrpmlinux enterprise server for sap applications 15 sp51.25.2-150100.10.28.1Not reportedSUSE-SU-2026:3884-1Not reported
Ubuntuunbounddebpro1.9.4-2ubuntu1.11+esm3Not reportedUBUNTU-CVE-2026-40691Not reported
Ubuntuunbounddeb22.041.13.1-1ubuntu5.17Not reportedUBUNTU-CVE-2026-40691Not reported
Ubuntuunbounddeb24.041.19.2-1ubuntu3.12Not reportedUBUNTU-CVE-2026-40691Not reported
Ubuntuunbounddeb26.041.24.2-1ubuntu2.4Not reportedUBUNTU-CVE-2026-40691Not reported
CpeunboundcpeNot reported1.25.2Not reportedNVD-CVE-2026-40691Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libunbound8]Affected

    Source package: [unbound]

    Details (4)
    • 1.17.1-2+deb12u4 · amd64 · bookworm

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u4 · arm64 · bookworm

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u3 · amd64 · bookworm-security

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u3 · arm64 · bookworm-security

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

  • [libunbound-dev]Affected

    Source package: [unbound]

    Details (4)
    • 1.17.1-2+deb12u4 · amd64 · bookworm

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u4 · arm64 · bookworm

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u3 · amd64 · bookworm-security

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u3 · arm64 · bookworm-security

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

  • [python3-unbound]Affected

    Source package: [unbound]

    Details (4)
    • 1.17.1-2+deb12u4 · amd64 · bookworm

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u4 · arm64 · bookworm

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u3 · amd64 · bookworm-security

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u3 · arm64 · bookworm-security

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

  • [unbound]Affected
    Details (4)
    • 1.17.1-2+deb12u4 · amd64 · bookworm

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u4 · arm64 · bookworm

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u3 · amd64 · bookworm-security

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u3 · arm64 · bookworm-security

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

  • [unbound-anchor]Affected

    Source package: [unbound]

    Details (4)
    • 1.17.1-2+deb12u4 · amd64 · bookworm

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u4 · arm64 · bookworm

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u3 · amd64 · bookworm-security

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u3 · arm64 · bookworm-security

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

  • [unbound-host]Affected

    Source package: [unbound]

    Details (4)
    • 1.17.1-2+deb12u4 · amd64 · bookworm

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u4 · arm64 · bookworm

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u3 · amd64 · bookworm-security

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

    • 1.17.1-2+deb12u3 · arm64 · bookworm-security

      Affected

      nvd · unbound · debian · bookworm; nvd · unbound · debian · 12

[Debian 13 (Trixie)]

  • [libunbound8]Affected

    Source package: [unbound]

    Details (6)
    • 1.22.0-2+deb13u3 · amd64 · trixie

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · arm64 · trixie

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · amd64 · trixie-security · Historical version

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · arm64 · trixie-security

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.26.1-0+deb13u1 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.26.2-0+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

  • [libunbound-dev]Affected

    Source package: [unbound]

    Details (6)
    • 1.22.0-2+deb13u3 · amd64 · trixie

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · arm64 · trixie

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · amd64 · trixie-security · Historical version

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · arm64 · trixie-security

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.26.1-0+deb13u1 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.26.2-0+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

  • [python3-unbound]Affected

    Source package: [unbound]

    Details (6)
    • 1.22.0-2+deb13u3 · amd64 · trixie

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · arm64 · trixie

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · amd64 · trixie-security · Historical version

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · arm64 · trixie-security

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.26.1-0+deb13u1 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.26.2-0+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

  • [unbound]Affected
    Details (6)
    • 1.22.0-2+deb13u3 · amd64 · trixie

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · arm64 · trixie

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · amd64 · trixie-security · Historical version

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · arm64 · trixie-security

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.26.1-0+deb13u1 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.26.2-0+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

  • [unbound-anchor]Affected

    Source package: [unbound]

    Details (6)
    • 1.22.0-2+deb13u3 · amd64 · trixie

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · arm64 · trixie

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · amd64 · trixie-security · Historical version

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · arm64 · trixie-security

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.26.1-0+deb13u1 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.26.2-0+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

  • [unbound-host]Affected

    Source package: [unbound]

    Details (6)
    • 1.22.0-2+deb13u3 · amd64 · trixie

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · arm64 · trixie

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · amd64 · trixie-security · Historical version

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.22.0-2+deb13u3 · arm64 · trixie-security

      Affected · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.26.1-0+deb13u1 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

    • 1.26.2-0+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.26.1-0+deb13u1

      nvd · unbound · debian · 13

Observed:

References