p PatchFirst

CVE-2026-50046

CVE-2026-50046 · Possible heap use-after-free in an error path when a DoT forwarded query is jostled out

This page contains facts from public vulnerability sources. Check the original advisory before updating.

In NLnet Labs Unbound 1.15.0 up to and including 1.25.1, the TLS server name used for DNS-over-TLS (DoT) forwarded queries is tied to a struct's ('serviced_query') lifetime but also referenced by another struct ('waiting_tcp'). When the owning struct is jostled out of the mesh while the DoT TCP stream is still handshaking it frees the storage behind the referenced string and if the TLS stream then errors out, it dereferences the freed pointer. The dereference is read-only and the practical impact is a daemon crash resulting in denial of service. A malicious actor that knows a DoT forwarding/stub Unbound's configuration could exploit the vulnerability by quering records in the appropriate zone while keeping Unbound uder pressure so that the jostle logic kicks in. If answers for the vulnerable zone are slow, the likelihood of jostling such queries is higher, although the timing of the jostle needs to be precise. Requirements for a vulnerable Unbound is the existence of a stub/forward zone configured for DoT together with a configured '#authname' suffix on the server identification. The connectivity to the server needs to exhibit a transient failure at the correct time in order to kick off the vulnerable error path.

CVSS 5.9 · Medium · EPSS 0.2% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • unbound

    Versions
    • ≥ 1.15.0, < 1.25.2: Affected (semver)

    Update to 1.25.2

  • unbound Debian:12

    Versions
    • 1.17.1-2
    • 1.17.1-2+deb12u1
    • 1.17.1-2+deb12u2
    • 1.17.1-2+deb12u3
    • 1.17.1-2+deb12u4
    • 1.17.1-2+loong64
    • 1.18.0-1
    • 1.18.0-2
    • 1.19.1-1
    • 1.19.2-1
    • 1.20.0-1
    • 1.21.1-1
    • 1.22.0-1
    • 1.22.0-2
    • 1.23.1-1
    • 1.24.0-1
    • 1.24.0-2
    • 1.24.1-1
    • 1.24.1-2
    • 1.24.2-1
    • 1.25.0-1
    • 1.25.1-1
    • 1.25.2-1
    • 1.26.0-1
    • 1.26.0-2
    • 1.26.1-1
    • 1.26.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • unbound Debian:13

    Versions
    • 1.22.0-2
    • 1.22.0-2+deb13u1
    • 1.22.0-2+deb13u2
    • 1.22.0-2+deb13u3
    • 1.23.1-1
    • 1.24.0-1
    • 1.24.0-2
    • 1.24.1-1
    • 1.24.1-2
    • 1.24.2-1
    • 1.25.0-1
    • 1.25.1-1
    • 1.25.2-1
    • 1.26.0-1
    • 1.26.0-2
    Affected ranges
    • ECOSYSTEM: < 1.26.1-0+deb13u1

    Update to 1.26.1-0+deb13u1

  • unbound Debian:14

    Versions
    • 1.22.0-2
    • 1.23.1-1
    • 1.24.0-1
    • 1.24.0-2
    • 1.24.1-1
    • 1.24.1-2
    • 1.24.2-1
    • 1.25.0-1
    • 1.25.1-1
    Affected ranges
    • ECOSYSTEM: < 1.25.2-1

    Update to 1.25.2-1

  • unbound Ubuntu:Pro:14.04:LTS

    Versions
    • 1.4.20-1
    • 1.4.21-1
    • 1.4.21-1ubuntu1
    • 1.4.21-1ubuntu2
    • 1.4.22-1ubuntu1
    • 1.4.22-1ubuntu2
    • 1.4.22-1ubuntu3
    • 1.4.22-1ubuntu4
    • 1.4.22-1ubuntu4.14.04.1
    • 1.4.22-1ubuntu4.14.04.2
    • 1.4.22-1ubuntu4.14.04.3
    • 1.4.22-1ubuntu4.14.04.3+esm1
    • 1.4.22-1ubuntu4.14.04.3+esm2
    • 1.4.22-1ubuntu4.14.04.3+esm3
    • 1.4.22-1ubuntu4.14.04.3+esm4
    • 1.4.22-1ubuntu4.14.04.3+esm5
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • unbound Ubuntu:Pro:16.04:LTS

    Versions
    • 1.4.22-1ubuntu6
    • 1.5.7-1ubuntu1
    • 1.5.7-1ubuntu2
    • 1.5.8-1ubuntu1
    • 1.5.8-1ubuntu1.1
    • 1.5.8-1ubuntu1.1+esm1
    • 1.5.8-1ubuntu1.1+esm2
    • 1.5.8-1ubuntu1.1+esm3
    • 1.5.8-1ubuntu1.1+esm4
    • 1.5.8-1ubuntu1.1+esm5
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • unbound Ubuntu:Pro:18.04:LTS

    Versions
    • 1.6.5-1
    • 1.6.7-1
    • 1.6.7-1build1
    • 1.6.7-1ubuntu1
    • 1.6.7-1ubuntu2
    • 1.6.7-1ubuntu2.1
    • 1.6.7-1ubuntu2.2
    • 1.6.7-1ubuntu2.3
    • 1.6.7-1ubuntu2.4
    • 1.6.7-1ubuntu2.5
    • 1.6.7-1ubuntu2.6
    • 1.6.7-1ubuntu2.6+esm2
    • 1.6.7-1ubuntu2.6+esm3
    • 1.6.7-1ubuntu2.6+esm4
    • 1.6.7-1ubuntu2.6+esm5
    • 1.6.7-1ubuntu2.6+esm6
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • unbound Ubuntu:Pro:20.04:LTS

    Versions
    • 1.9.0-2ubuntu1
    • 1.9.0-2ubuntu2
    • 1.9.4-2
    • 1.9.4-2ubuntu1
    • 1.9.4-2ubuntu1.1
    • 1.9.4-2ubuntu1.2
    • 1.9.4-2ubuntu1.3
    • 1.9.4-2ubuntu1.4
    • 1.9.4-2ubuntu1.5
    • 1.9.4-2ubuntu1.6
    • 1.9.4-2ubuntu1.8
    • 1.9.4-2ubuntu1.9
    • 1.9.4-2ubuntu1.11
    • 1.9.4-2ubuntu1.11+esm1
    • 1.9.4-2ubuntu1.11+esm2
    • 1.9.4-2ubuntu1.11+esm3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • unbound Ubuntu:22.04:LTS

    Versions
    • 1.13.1-1ubuntu1
    • 1.13.1-1ubuntu3
    • 1.13.1-1ubuntu5
    • 1.13.1-1ubuntu5.1
    • 1.13.1-1ubuntu5.2
    • 1.13.1-1ubuntu5.3
    • 1.13.1-1ubuntu5.4
    • 1.13.1-1ubuntu5.5
    • 1.13.1-1ubuntu5.7
    • 1.13.1-1ubuntu5.8
    • 1.13.1-1ubuntu5.10
    • 1.13.1-1ubuntu5.11
    • 1.13.1-1ubuntu5.12
    • 1.13.1-1ubuntu5.13
    • 1.13.1-1ubuntu5.14
    • 1.13.1-1ubuntu5.15
    • 1.13.1-1ubuntu5.16
    • 1.13.1-1ubuntu5.17
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • unbound Ubuntu:24.04:LTS

    Versions
    • 1.17.1-2
    • 1.18.0-2ubuntu1
    • 1.18.0-2ubuntu2
    • 1.19.1-1ubuntu1
    • 1.19.2-1ubuntu1
    • 1.19.2-1ubuntu3
    • 1.19.2-1ubuntu3.1
    • 1.19.2-1ubuntu3.2
    • 1.19.2-1ubuntu3.3
    • 1.19.2-1ubuntu3.4
    • 1.19.2-1ubuntu3.5
    • 1.19.2-1ubuntu3.6
    • 1.19.2-1ubuntu3.7
    • 1.19.2-1ubuntu3.8
    • 1.19.2-1ubuntu3.9
    • 1.19.2-1ubuntu3.10
    • 1.19.2-1ubuntu3.12
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • unbound Ubuntu:26.10

    Versions
    • 1.24.2-1ubuntu2
    • 1.25.1-1ubuntu1
    • 1.25.1-1ubuntu3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • unbound Ubuntu:26.04:LTS

    Versions
    • 1.22.0-2ubuntu2
    • 1.22.0-2ubuntu4
    • 1.24.2-1ubuntu1
    • 1.24.2-1ubuntu2
    • 1.24.2-1ubuntu2.1
    • 1.24.2-1ubuntu2.2
    • 1.24.2-1ubuntu2.3
    • 1.24.2-1ubuntu2.4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →