CVE-2026-137075: GNOME libxml2 2.14.0 through 2.15.4 Missing NUL Termination in xmlBufferAddHead()
GNOME libxml2 2.14.0 through 2.15.4 contains a missing NUL termination flaw in xmlBufferAddHead() in buf.c that leaves uninitialized heap bytes as the terminator for storage-less buffers. Attackers supplying data to applications reusing an xmlBuffer can trigger over-reads via xmlBufferCat() and xmlStrlen(), disclosing adjacent heap memory or causing crashes.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this flaw?
Applications using GNOME libxml2 versions 2.14.0 through 2.15.4 are affected when they reuse an xmlBuffer and process attacker-supplied data in a way that reaches xmlBufferAddHead() followed by xmlBufferCat() or xmlStrlen().
What must an attacker be able to do to trigger the issue?
An attacker needs to supply data to an application that reuses an xmlBuffer. Exploitation also requires the relevant buffer-handling path to invoke xmlBufferAddHead() and subsequently use xmlBufferCat() or xmlStrlen().
What is the practical impact?
The missing NUL terminator can cause reads past the intended buffer boundary into adjacent heap memory. This may disclose uninitialized heap data or cause the application to crash.