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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GNOME | libxml2 | 2.12.6 – ≤ 2.15.4 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libxml2 | No fix yet | — |
| Debian 13 | libxml2 | No fix yet | — |
| Debian 12 | libxml2 | No fix yet | — |
Advisories 1
- WID-SEC-2026-4814 libxml2: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 25, 2026
References
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/1212 issue-tracking
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/parserInternals.c#L1743 technical-description
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L2856 technical-description
- VulnCheck Advisory: libxml2 2.12.6 through 2.15.4 NULL Pointer Dereference via xmlTextReaderConstEncoding() third-party-advisory