Skip to content
OpenAdvisories
Medium · 4.7 CVE-2026-137074 EUVD-2026-135772GHSA-868x-42j3-ghpw

libxml2 2.12.6 through 2.15.4 NULL Pointer Dereference via xmlTextReaderConstEncoding()

Published Nov 25, 2026 · Updated Nov 25, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 libxml2 No fix yet —
Debian 13 libxml2 No fix yet —
Debian 12 libxml2 No fix yet —

Advisories 1

References