Vigil@nce - libxml2: out-of-bounds memory reading via xmlBufAttrSerializeTxtContent
July 2016 by Vigil@nce
This bulletin was written by Vigil@nce : https://vigilance.fr/offer
SYNTHESIS OF THE VULNERABILITY
An attacker can force a read at an invalid address in
xmlBufAttrSerializeTxtContent() of libxml2, in order to trigger a
denial of service, or to obtain sensitive information.
Impacted products: Debian, libxml2, openSUSE, openSUSE Leap, SLES,
Ubuntu.
Severity: 2/4.
Creation date: 04/05/2016.
DESCRIPTION OF THE VULNERABILITY
The xmllint tool of libxml2 has the option "—recover" to try to
decode a malformed XML document.
However, the xmlBufAttrSerializeTxtContent() function of the
xmlsave.c file tries to read a memory area located outside the
expected range, which triggers a fatal error, or leads to the
disclosure of a memory fragment.
An attacker can therefore force a read at an invalid address in
xmlBufAttrSerializeTxtContent() of libxml2, in order to trigger a
denial of service, or to obtain sensitive information.
ACCESS TO THE COMPLETE VIGIL@NCE BULLETIN