Vulnerability · Published May 20, 2026 · Assigned by NLnet Labs
CVE-2026-42944Heap overflow with multiple NSID, COOKIE, PADDING EDNS options
High 7.5
In plain English
A high-severity out-of-bounds write in Unbound from NLnet Labs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
NLnet Labs Unbound 1.14.0 up to and including version 1.25.0 has a vulnerability that results in heap overflow when encoding multiple NSID and/or DNS Cookie EDNS and/or EDNS Padding options in the reply packet. The relevant options ('nsid', 'answer-cookie', 'pad-responses' (default)) need to be enabled for the vulnerability to be exploited. An adversary who can query Unbound can exploit the vulnerability by attaching multiple NSID and/or DNS Cookie EDNS and/or EDNS Padding options to the query. A flaw in the size calculation of the EDNS field truncates the correct value which allows the encoder to overflow the available space when writing. Those two combined lead to a heap overflow write of Unbound controlled data and eventually a crash. Unbound 1.25.1 contains a patch with a fix to de-duplicate the EDNS options and a fix to prevent truncation of the EDNS field size calculation.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | python3-unbound | 1.24.2-7.el10_2.1 | ALSA-2026:23231 |
| AlmaLinux:8 | python3-unbound | 1.16.2-5.11.el8_10 | ALSA-2026:24365 |
| AlmaLinux:9 | python3-unbound | 1.24.2-3.el9_8.1 | ALSA-2026:24369 |
| AlmaLinux:10 | unbound | 1.24.2-7.el10_2.1 | ALSA-2026:23231 |
| AlmaLinux:8 | unbound | 1.16.2-5.11.el8_10 | ALSA-2026:24365 |
| AlmaLinux:9 | unbound | 1.24.2-3.el9_8.1 | ALSA-2026:24369 |
| AlmaLinux:10 | unbound-anchor | 1.24.2-7.el10_2.1 | ALSA-2026:23231 |
| AlmaLinux:10 | unbound-devel | 1.24.2-7.el10_2.1 | ALSA-2026:23231 |
| AlmaLinux:8 | unbound-devel | 1.16.2-5.11.el8_10 | ALSA-2026:24365 |
| AlmaLinux:9 | unbound-devel | 1.24.2-3.el9_8.1 | ALSA-2026:24369 |
| AlmaLinux:10 | unbound-dracut | 1.24.2-7.el10_2.1 | ALSA-2026:23231 |
| AlmaLinux:9 | unbound-dracut | 1.24.2-3.el9_8.1 | ALSA-2026:24369 |
| AlmaLinux:10 | unbound-libs | 1.24.2-7.el10_2.1 | ALSA-2026:23231 |
| AlmaLinux:8 | unbound-libs | 1.16.2-5.11.el8_10 | ALSA-2026:24365 |
| AlmaLinux:9 | unbound-libs | 1.24.2-3.el9_8.1 | ALSA-2026:24369 |
| AlmaLinux:10 | unbound-utils | 1.24.2-7.el10_2.1 | ALSA-2026:23231 |
| Alpine:v3.22 | unbound | 1.25.2-r0 | ALPINE-CVE-2026-42944 |
| Alpine:v3.23 | unbound | 1.25.2-r0 | ALPINE-CVE-2026-42944 |
| Alpine:v3.24 | unbound | 1.25.1-r0 | ALPINE-CVE-2026-42944 |
| Debian:12 | unbound | no fix listed | DEBIAN-CVE-2026-42944 |
| Debian:13 | unbound | 1.22.0-2+deb13u3 | DEBIAN-CVE-2026-42944 |
| Debian:14 | unbound | 1.25.1-1 | DEBIAN-CVE-2026-42944 |
| Rocky Linux:10 | unbound | 0:1.24.2-7.el10_2.1 | RLSA-2026:23231 |
| Rocky Linux:8 | unbound | 0:1.16.2-5.11.el8_10 | RLSA-2026:24365 |
| Rocky Linux:9 | unbound | 0:1.24.2-3.el9_8.1 | RLSA-2026:24369 |
| Ubuntu:24.04:LTS | unbound | 1.19.2-1ubuntu3.8 | UBUNTU-CVE-2026-42944 |
| Ubuntu:25.10 | unbound | 1.22.0-2ubuntu2.3 | UBUNTU-CVE-2026-42944 |
| Ubuntu:26.04:LTS | unbound | 1.24.2-1ubuntu2.1 | UBUNTU-CVE-2026-42944 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| NLnet Labs | Unbound | 1.14.0 – before 1.25.1 |
Weakness: CWE-197, CWE-787, CWE-131 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://www.nlnetlabs.nl/downloads/unbound/CVE-2026-42944.txt vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-42944 vdb-entry, x_refsource_REDHAT
- RHBZ#2479774 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42944.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:23231 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:24365 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:24369 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:19752 vendor-advisory, x_refsource_REDHAT