CWE-197: Numeric Truncation Error in NLnet Labs Unbound (CVE-2026-42944)
NLnet Labs Unbound versions 1.14.0 through 1.25.0 contain a heap overflow vulnerability triggered by encoding multiple NSID, DNS Cookie EDNS, and/or EDNS Padding options in reply packets. This occurs due to a numeric truncation error in the size calculation of the EDNS field, allowing an attacker who can query Unbound with these options to cause a heap overflow and crash. The vulnerability requires the relevant EDNS options to be enabled. Unbound 1.25.1 includes a patch that fixes this issue by de-duplicating EDNS options and correcting the size calculation to prevent truncation.
AI Analysis
Technical Summary
CVE-2026-42944 is a heap overflow vulnerability in NLnet Labs Unbound DNS resolver affecting versions 1.14.0 up to and including 1.25.0. The flaw arises from a numeric truncation error in the calculation of the size of EDNS fields when encoding multiple NSID, DNS Cookie EDNS, and EDNS Padding options in the reply packet. When these options ('nsid', 'answer-cookie', 'pad-responses') are enabled, an attacker capable of sending queries with multiple such EDNS options can exploit this truncation to overflow the heap with attacker-controlled data, leading to a crash. The vulnerability is fixed in Unbound version 1.25.1 by implementing de-duplication of EDNS options and correcting the size calculation to prevent truncation and overflow.
Potential Impact
Successful exploitation allows an unauthenticated attacker who can send DNS queries to cause a heap overflow in Unbound, resulting in a denial of service (crash). The vulnerability does not require privileges or user interaction and can be triggered remotely. There is no confirmed exploitation in the wild. The CVSS v4.0 base score is 8.7 (high severity), reflecting network attack vector, low complexity, no privileges required, no user interaction, and high impact on availability.
Mitigation Recommendations
A fixed version, Unbound 1.25.1, is available which addresses the vulnerability by de-duplicating EDNS options and fixing the size calculation to prevent truncation and heap overflow. Users should upgrade to version 1.25.1 or later. Red Hat has issued security advisories and updates for affected Red Hat Enterprise Linux 10 packages that include this fix. Applying these vendor-provided updates is the recommended remediation. No additional mitigations are specified or required beyond applying the official patch.
CWE-197: Numeric Truncation Error in NLnet Labs Unbound (CVE-2026-42944)
Description
NLnet Labs Unbound versions 1.14.0 through 1.25.0 contain a heap overflow vulnerability triggered by encoding multiple NSID, DNS Cookie EDNS, and/or EDNS Padding options in reply packets. This occurs due to a numeric truncation error in the size calculation of the EDNS field, allowing an attacker who can query Unbound with these options to cause a heap overflow and crash. The vulnerability requires the relevant EDNS options to be enabled. Unbound 1.25.1 includes a patch that fixes this issue by de-duplicating EDNS options and correcting the size calculation to prevent truncation.
CVSS v4.0
Score 8.7high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42944 is a heap overflow vulnerability in NLnet Labs Unbound DNS resolver affecting versions 1.14.0 up to and including 1.25.0. The flaw arises from a numeric truncation error in the calculation of the size of EDNS fields when encoding multiple NSID, DNS Cookie EDNS, and EDNS Padding options in the reply packet. When these options ('nsid', 'answer-cookie', 'pad-responses') are enabled, an attacker capable of sending queries with multiple such EDNS options can exploit this truncation to overflow the heap with attacker-controlled data, leading to a crash. The vulnerability is fixed in Unbound version 1.25.1 by implementing de-duplication of EDNS options and correcting the size calculation to prevent truncation and overflow.
Potential Impact
Successful exploitation allows an unauthenticated attacker who can send DNS queries to cause a heap overflow in Unbound, resulting in a denial of service (crash). The vulnerability does not require privileges or user interaction and can be triggered remotely. There is no confirmed exploitation in the wild. The CVSS v4.0 base score is 8.7 (high severity), reflecting network attack vector, low complexity, no privileges required, no user interaction, and high impact on availability.
Mitigation Recommendations
A fixed version, Unbound 1.25.1, is available which addresses the vulnerability by de-duplicating EDNS options and fixing the size calculation to prevent truncation and heap overflow. Users should upgrade to version 1.25.1 or later. Red Hat has issued security advisories and updates for affected Red Hat Enterprise Linux 10 packages that include this fix. Applying these vendor-provided updates is the recommended remediation. No additional mitigations are specified or required beyond applying the official patch.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_security_advisory
- Csaf Version
- 2.0
- Publisher
- Red Hat Product Security
- Advisory Id
- RHSA-2026:24365
- Cve Count
- 2
- Additional Cves
- ["CVE-2026-42959"]
- Cvss Version
- null
Threat ID: 6a27320ee29bf47b509bf305
Added to database: 06/08/2026, 21:20:14 UTC
Last enriched: 07/15/2026, 15:41:20 UTC
Last updated: 07/31/2026, 19:55:24 UTC
Views: 606
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.