CVE-2025-6021
NixOS vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2025-6021) was discovered in libxml2's xmlBuildQName function on June 12, 2025. The flaw involves integer overflows in buffer size calculations that can lead to a stack-based buffer overflow in the libxml2 library. The vulnerability affects multiple Linux distributions and has been assigned a CVSS v3.1 base score of 7.5 (High) (NVD, Wiz).

Technical details

The vulnerability stems from unsafe arithmetic operations in the xmlBuildQName function when concatenating XML name components. The issue occurs when the lengths of prefix and local name, originally of type size_t, are cast to int, resulting in incorrect calculations for large values. The vulnerability has a CVSS vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, indicating it is network-accessible with low attack complexity and requires no privileges or user interaction (NVD, Wiz).

Impact

When exploited, this vulnerability can result in memory corruption or a denial of service condition when processing crafted input. The impact primarily affects the availability of the system, with the potential for total loss of availability while the attack is ongoing or even after it has completed (Wiz).

Mitigation and workarounds

As of the vulnerability disclosure, there is no fixed version available for some affected distributions, including Debian 11. The issue has been addressed in the upstream repository through commits on both the master branch (ad346c9a249c4b380bf73c460ad3e81135c5d781) and 2.14-branch (acbbeef9f5dcdcc901c5f3fa14d583ef8cfd22f0) (Debian Tracker).

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
  • gdb
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