CVE-2020-25637
NixOS vulnerability analysis and mitigation

Overview

A double free memory vulnerability (CVE-2020-25637) was discovered in the libvirt API before version 6.8.0. The vulnerability affects the polkit access control driver and specifically occurs in the qemuAgentGetInterfaces() function in qemu_agent.c when requesting information about network interfaces of a running QEMU domain (NVD, Red Hat).

Technical details

The vulnerability exists in the qemuAgentGetInterfaces() function where it interacts with the guest agent and receives JSON data containing network interface information. The function enumerates interfaces one by one, using a pointer to pointers to hold a split interface name (ifname). During each iteration, ifname is freed, but if an error occurs immediately after, a 'goto error' statement triggers the error handler to free ifname again, resulting in a double free condition. The flaw was introduced in libvirt v1.2.14 and persisted even after an update in version 6.7.0 that replaced virStringListFree with g_strfreev() (Red Hat).

Impact

Clients connecting to the read-write socket with limited ACL permissions could exploit this vulnerability to crash the libvirt daemon, resulting in a denial of service, or potentially escalate their privileges on the system. The highest threat from this vulnerability affects data confidentiality, integrity, and system availability (NVD, Red Hat).

Exploitability

The vulnerability is limited by the check in virDomainInterfaceAddresses() in libvirt-domain.c, which prevents read-only clients from exploiting this flaw. However, clients with read-write socket access and limited ACL permissions can still trigger the vulnerability (Red Hat).

Mitigation and workarounds

The vulnerability was fixed in libvirt version 6.8.0. Users are advised to upgrade to this version or later. Multiple distributions have released security updates to address this vulnerability, including Red Hat Enterprise Linux, Ubuntu, OpenSUSE, and Debian (Red Hat, Ubuntu).

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-2026-18713HIGH8.8
  • NixOS logoNixOS
  • i
NoNoAug 12, 2026
CVE-2026-18669HIGH8.8
  • NixOS logoNixOS
  • i
NoNoAug 12, 2026
CVE-2026-18235HIGH8.3
  • NixOS logoNixOS
  • i
NoNoAug 12, 2026
CVE-2026-17420MEDIUM6.3
  • NixOS logoNixOS
  • i
NoNoAug 12, 2026
CVE-2026-18250MEDIUM5
  • NixOS logoNixOS
  • i
NoNoAug 12, 2026

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