CVE-2020-25682
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-25682 is a buffer overflow vulnerability discovered in dnsmasq before version 2.83. The vulnerability exists in the way dnsmasq extracts names from DNS packets before validating them with DNSSEC data. The flaw was discovered in January 2021 and affects the rfc1035.c:extract_name() function (NVD, Red Hat).

Technical details

The vulnerability occurs in the extractname() function, which writes data to memory pointed by name assuming MAXDNAME*2 bytes are available in the buffer. However, in some code execution paths, extractname() can be passed an offset from the base buffer, reducing the actual number of available bytes that can be written, potentially leading to a buffer overflow. The vulnerability has a CVSS v3.1 base score of 8.1 HIGH (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) (NVD).

Impact

An attacker who can create valid DNS replies could exploit this vulnerability to cause an overflow with arbitrary data in heap-allocated memory, potentially executing arbitrary code on the machine. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability (NVD, Red Hat).

Mitigation and workarounds

The vulnerability was fixed in dnsmasq version 2.83. For systems unable to update immediately, the only known mitigation is to disable DNSSEC altogether by removing the --dnssec command line option or the dnssec option from the dnsmasq configuration file (Red Hat).

Community reactions

The vulnerability was part of a larger set of vulnerabilities dubbed 'DNSpooq' discovered by researchers Moshe Kol and Shlomi Oberman from JSOF. Multiple vendors including Red Hat, Debian, and Fedora quickly released security advisories and patches to address the vulnerability (JSOF).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61804HIGH7.8
  • NixOSNixOS
  • animate
NoYesOct 15, 2025
CVE-2025-54279HIGH7.8
  • NixOSNixOS
  • animate
NoYesOct 15, 2025
CVE-2025-55039MEDIUM6.5
  • JavaJava
  • spark
NoYesOct 15, 2025
CVE-2025-54270MEDIUM5.5
  • NixOSNixOS
  • animate
NoYesOct 15, 2025
CVE-2025-11839MEDIUM4.8
  • NixOSNixOS
  • gcc-toolset-13-binutils-gold
NoNoOct 16, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management