CVE-2026-55973: 'dns-error-reporting: yes' leads to stack buffer overflow
'dns-error-reporting: yes' leads to stack buffer overflow
Other sources
In NLnet Labs Unbound 1.23.0 up to and including 1.25.1, when 'dns-error-reporting: yes' is set, the EDNS Report-Channel option (code 18) from the last upstream response is read and uses the option's length as the length of the agent domain. When a domain name check is performed on the agent domain, the returned lenght is not used and if the agent domain is followed by garbage, those bytes are moved onto the tail of the synthetic 'er.' report query name. That query name is later used in the iterator via a subquery to send out the DNS Error Report and when Unbound tries to walk that query name during 'findclosestoftype()', it strips labels using the query name length rather than stopping at the embedded root, walks one byte past it, and feeds the first garbage byte to 'dnamequeryhash()' as a label length writing over the stack variable 'labuf'. One ordinary upstream response from a delegated zone the attacker controls is sufficient to terminate the daemon.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.25.2-1 - Upgrade
Upgrade
unboundto a version that resolves this vulnerability.Fixed in 1.25.2 - Configuration
Set 'dns-error-reporting: no' to prevent the EDNS Report-Channel option (code 18) from being read and the subsequent stack buffer overflow triggered when walking the constructed report query name.
Unbound dns-error-reporting = no
Event History
Frequently Asked Questions
What is the severity of CVE-2026-55973?
The severity of CVE-2026-55973 is rated as high with a score of 7.5.
How do I fix CVE-2026-55973?
To fix CVE-2026-55973, update NLnet Labs Unbound to version 1.25.2 or later where the vulnerability has been addressed.
What causes CVE-2026-55973?
CVE-2026-55973 is caused by a stack buffer overflow that occurs when 'dns-error-reporting: yes' is enabled and an improperly handled EDNS Report-Channel option is processed.
Which versions of NLnet Labs Unbound are affected by CVE-2026-55973?
NLnet Labs Unbound versions 1.23.0 through 1.25.1 are affected by CVE-2026-55973.
Is CVE-2026-55973 an input validation issue?
Yes, CVE-2026-55973 is classified under input validation issues leading to a stack buffer overflow.