Missing NUL Termination in GNOME libxml2 Affects Heavily Used Applications
CVE-2026-137075
2LOW
What is CVE-2026-137075?
The GNOME libxml2 library, specifically versions from 2.14.0 through 2.15.4, contains a flaw in the xmlBufferAddHead() function located in buf.c. This vulnerability arises from a missing NUL termination, which leaves uninitialized heap memory exposed as the terminator for storage-less buffers. When applications reuse an xmlBuffer, attackers can exploit this flaw by supplying crafted data, leading to potential over-reads when using xmlBufferCat() and xmlStrlen(). This could result in the disclosure of adjacent heap memory or may cause application crashes, thus affecting the stability and security of software that relies on this library.
Affected Version(s)
libxml2 2.14.0 <= 2.15.4