CVE-2026-137074
libxml2 2.12.6 through 2.15.4 NULL Pointer Dereference via xmlTextReaderConstEncoding()
5.7
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 and versions
| Product / package | Ecosystem / vendor | Versions | Fixed in | Source |
|---|---|---|---|---|
| libxml2 | gnome | ≤2.15.4 | — | CVE.org |