Description
GNOME libxml2 2.12.6 through 2.15.4 contains a NULL pointer dereference vulnerability in xmlTextReaderConstEncoding() after a reader is reset with xmlReaderNewWalker(). Because xmlCtxtReset() leaves ctxt->input NULL, querying the document encoding makes xmlGetActualEncoding() read ctxt->input->flags without a check, crashing the application and causing denial of service.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
GNOME libxml2
Default version status: unaffected
2.12.6 to ≤ 2.15.4affected
pkg:github/gnome/libxml2References
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/1212 ↗
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/parserInternals.c#L1743 ↗
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L2856 ↗
- https://www.vulncheck.com/advisories/libxml2-2.12.6-through-2.15.4-null-pointer-dereference-via-xmltextreaderconstencoding ↗