Original description
A flaw was found in dnsmasq. After a reduction of internal domain-name buffer sizes, the DNSSEC validator can write a few bytes past a name buffer when converting names to and from DNS wire format. An attacker who can cause the server to validate a crafted DNSSEC response may overwrite a small amount of adjacent heap metadata. DNSSEC support is not compiled in by default and must also be enabled at runtime.
Vendor workaround
The following measures reduce risk:
1. Do not enable --dnssec or --trust-anchor unless DNSSEC validation is required.
2. Omit -DHAVE_DNSSEC from COPTS (this is the default build).
3. If DNSSEC validation is required, restrict dnsmasq to trusted upstream resolvers.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- Low impact
- Availability
- None
Weakness type (CWE)
- CWE-787 Out-of-bounds Write
References
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Summaries are AI-written under strict rules; always check the vendor's official advisory.