CVE-2026-42944: Heap overflow with multiple NSID, COOKIE, PADDING EDNS options
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.
Security readout for executives and security teams
Plain-English summary
This affects NLnet Labs Unbound DNS resolvers. A remote unauthenticated requester can trigger a heap overflow when specific EDNS reply options are enabled, causing Unbound to crash. The main business risk is DNS resolver outage, not confirmed data theft or code execution.
Executive priority
Treat as high-priority availability risk for DNS infrastructure. Patch exposed or shared resolvers quickly because exploitation requires only query access when the affected options are enabled.
Technical view
Unbound 1.14.0 through 1.25.0 can miscalculate EDNS field size when multiple NSID, DNS Cookie, or EDNS Padding options are encoded. With relevant options enabled, crafted queries can cause a heap overflow write of Unbound-controlled data and eventual crash. Version 1.25.1 fixes de-duplication and truncation handling.
Likely exposure
Internet-facing or broadly reachable Unbound resolvers are most exposed, especially where nsid, answer-cookie, or pad-responses are enabled. pad-responses is described as default. Internal-only resolvers still matter if untrusted clients can query them.
Exploitation context
The source bundle says an adversary who can query Unbound can exploit this by sending multiple relevant EDNS options. KEV is false, and the supplied sources do not show active exploitation in the wild.
Researcher notes
Evidence supports denial of service via heap overflow and crash. The bundle does not support claiming active exploitation, arbitrary code execution, or data compromise. Product scope should stay limited to NLnet Labs Unbound and vendor-packaged Unbound builds referenced by advisories.
Mitigation direction
Upgrade Unbound to 1.25.1 or a vendor package containing the backported fix.
Check NLnet Labs and OS vendor advisories for platform-specific update guidance.
Restrict resolver query access to trusted networks where operationally possible.
Consider disabling unneeded affected EDNS options while awaiting patch guidance.
Prioritize highly reachable recursive resolvers and DNS infrastructure dependencies.
Validation and detection
Inventory Unbound versions and flag 1.14.0 through 1.25.0.
Confirm whether nsid, answer-cookie, or pad-responses are enabled.
Verify installed vendor packages against listed Red Hat or platform errata.
Review resolver monitoring for abnormal Unbound crashes or DNS availability drops.
Confirm updated instances report Unbound 1.25.1 or a fixed vendor build.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-197: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-197 · source CWE mapping
Numeric Truncation Error
Numeric Truncation Error represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Out-of-bounds Write represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.