Red Hat Bugzilla – Bug 1462225
CVE-2017-0663 libxml2: Heap buffer overflow in xmlAddID
Last modified: 2017-12-14 00:38:54 EST
A heap-based buffer overflow vulnerability in libxml2 in xmlValidateOneNamespace function due to incorrect casting was found.
Upstream bug (private at this moment):
Oss-fuzz bug report:
Created libxml2 tracking bugs for this issue:
Affects: fedora-all [bug 1462226]
Created mingw-libxml2 tracking bugs for this issue:
Affects: epel-7 [bug 1462227]
Affects: fedora-all [bug 1462228]
Potential RCE through pointer confusion: passing an xmlNs* where an xmlAttr* was intended .. xmlNs is a smaller structure with some overlap, so opportunity potentially exists to overwrite some juicy pointers after the end of the structure.
The flaw exists in validation (xmlValidateDtd(), xmlValidateDocument()), so applications that do not attempt to validate untrusted documents are not impacted.
This vulnerability exists in the DTD validation functionality of libxml2. Applications that do not attempt to validate untrusted documents are not impacted.